Getting Started
The RatingHub Public API is REST-based and returns JSON. All endpoints are served over HTTPS. No API key is required for basic usage, but authenticated requests get higher rate limits.
Base URL
https://theratinghub.com/api/public/v1Authentication
Pass your API key in the X-API-Key header. Keys can be generated from your dashboard.
curl https://theratinghub.com/api/public/v1/company/cloudcraft-au \
-H "X-API-Key: rh_your_key_here"Rate Limits
| Tier | Limit | Auth |
|---|---|---|
| Anonymous | 100 req/min | None |
| API Key | 1,000 req/min | X-API-Key header |
| Partner | Custom | Contact us |
Rate limit status is returned in X-Rate-Limit-Remaining header.
Endpoints
Company
/company/:slugFull company data with DNA scores and recent reviews
/widget/:slugEmbeddable widget (SVG, HTML, or JSON). Accepts ?format= and ?theme=
GET /company/:slug
curl https://theratinghub.com/api/public/v1/company/cloudcraft-au{
"company": {
"id": "clx...",
"name": "CloudCraft AU",
"slug": "cloudcraft-au",
"tagline": "Build, deploy and scale at the speed of thought",
"overallScore": 82,
"performanceScore": 88,
"valueScore": 75,
"reliabilityScore": 91,
"supportScore": 79,
"experienceScore": 77,
"reviewCount": 128,
"isVerified": true,
"isPremium": true,
"category": { "name": "SaaS", "slug": "saas" }
},
"recentReviews": [
{ "id": "...", "title": "Excellent platform", "overallScore": 88, "createdAt": "..." }
],
"meta": {
"generatedAt": "2026-06-17T00:00:00.000Z",
"profileUrl": "https://theratinghub.com/company/cloudcraft-au",
"widgetUrl": "https://theratinghub.com/api/public/v1/widget/cloudcraft-au"
}
}V2 Endpoints
NewVersion 2 exposes richer data: full DNA breakdowns per review, paginated review lists, company discovery, and more. Same authentication and rate limits as v1.
Base URL
https://theratinghub.com/api/public/v2V2 Routes
/company/:slugEnhanced company profile with dnaBreakdown object, recentReviews, and mostHelpfulReviews
/reviews?companySlug=...Paginated reviews with full DNA scores, pros/cons/tags, and author trust info
/companies?category=...Paginated company discovery with search, category filter, and sort options
GET /v2/reviews
Required: companySlug. Optional: page, limit (max 50), sort (recent|high|low)
curl "https://theratinghub.com/api/public/v2/reviews?companySlug=cloudcraft-au&page=1&limit=10&sort=recent"{
"company": { "name": "CloudCraft AU", "slug": "cloudcraft-au" },
"reviews": [
{
"id": "clx...",
"title": "Best cloud platform for startups",
"body": "We migrated from AWS and halved our infrastructure costs...",
"overallScore": 88,
"performanceScore": 92,
"valueScore": 84,
"reliabilityScore": 91,
"supportScore": 83,
"experienceScore": 85,
"tags": ["cloud", "devops", "pricing"],
"pros": ["Fast deploys", "Great DX", "Transparent pricing"],
"cons": ["Limited AU regions"],
"helpfulCount": 14,
"isVerifiedPurchase": true,
"author": { "name": "Sarah K.", "trustScore": 91, "isVerifiedProfessional": true },
"reviewUrl": "https://theratinghub.com/company/cloudcraft-au#review-clx..."
}
],
"pagination": { "page": 1, "limit": 10, "total": 128, "pages": 13, "hasNext": true },
"meta": { "generatedAt": "2026-06-20T00:00:00.000Z", "apiVersion": "v2" }
}GET /v2/companies
Optional: q, category (slug), sort (score|reviews|newest), page, limit
curl "https://theratinghub.com/api/public/v2/companies?category=saas&sort=score&limit=10"Widget Badge
Our widget endpoint returns a ready-to-embed badge showing your DNA score. Supports three formats:
SVG Image
Embed as <img> tag. Cached by browser.
HTML Widget
Rich interactive badge via <iframe>.
JSON Data
Raw data + pre-built embed code.
Parameters
| Param | Values | Default |
|---|---|---|
| format | svg | html | json | svg |
| theme | light | dark | light |
Embed Code
SVG Image (simplest)
<img src="https://theratinghub.com/api/public/v1/widget/your-slug?format=svg"
alt="Rated on RatingHub"
width="280" height="96">Interactive HTML Widget
<iframe
src="https://theratinghub.com/api/public/v1/widget/your-slug?format=html&theme=light"
width="280" height="96"
frameborder="0" scrolling="no"
style="border:none;overflow:hidden"
title="Rated on RatingHub">
</iframe>Dark Theme
<img src="https://theratinghub.com/api/public/v1/widget/your-slug?format=svg&theme=dark"
alt="Rated on RatingHub" width="280" height="96">Response Schema
DNA Score Fields (all 0–100)
overallScoreWeighted composite of all 5 DNA axes
performanceScoreSpeed, efficiency, technical quality
valueScoreValue for money relative to alternatives
reliabilityScoreUptime, consistency, trust over time
supportScoreCustomer support quality and responsiveness
experienceScoreUX, ease of use, onboarding