Trustpilot API endpoint
Search Trustpilot categories
Returns normalized category search results from Trustpilot's JSON category search API.
GETapiKey3 credits/requesttrustpilot.categorySearchResponseDoc
/trustpilot/categories/searchParameters
| Name | In | Type | Required | Enum | Example | Description |
|---|---|---|---|---|---|---|
| q | query | string | Yes | openai | Search query | |
| country | query | string | No | US | Two-letter country code; defaults to US | |
| locale | query | string | No | en-US | Locale in ll-CC format; defaults to en-US | |
| size | query | integer | No | 3 | Maximum number of categories; defaults to 20 | |
| x-api-key | header | string | Yes | API key required |
Authentication
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Billing
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
- Credit cost
- 3 credits/request
- Charged response
- Successful 2xx responses
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
Failure responses
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid query parameters | #/definitions/app.Response |
| 404 | No results found | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
| 502 | Trustpilot upstream request failed | #/definitions/app.Response |
Example response
{
"code": 200,
"msg": "OK",
"data": {
"query": "software",
"country": "US",
"locale": "en-US",
"size": 3,
"categories": []
}
}Request schema
No body schema
Response schema
#/definitions/trustpilot.categorySearchResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | trustpilot.CategorySearchResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].category_id | string | No | software_company | |||
| data.categories[].display_name | string | No | Software Company | |||
| data.categories[].top_level_category_id | string | No | electronics_technology | |||
| data.country | string | No | US | |||
| data.locale | string | No | en-US | |||
| data.query | string | No | openai | |||
| data.size | integer | No | 3 | |||
| msg | string | No | OK |
Example request
curl -X GET "https://api.crawlora.net/api/v1/trustpilot/categories/search?q=openai&country=US&locale=en-US&size=3" -H "x-api-key: <api-key>"
TypeScript fetch
const url = new URL("https://api.crawlora.net/api/v1/trustpilot/categories/search");
url.searchParams.set("q", "openai");
url.searchParams.set("country", "US");
url.searchParams.set("locale", "en-US");
url.searchParams.set("size", "3");
const headers = new Headers();
headers.set("x-api-key", "<api-key>");
const response = await fetch(url, {
method: "GET",
headers,
});
const payload = await response.json();