Trustpilot API endpoint
Lists the Trustpilot category index grouped by top-level category. Each group has its name, slug and URL, and an `items` list of subcategories with their own name, slug and URL. It takes no parameters.
/trustpilot/categories| Field | Filled in, of 22 checked | Values in the sample |
|---|---|---|
| name | 22 | “Animals & Pets” and 21 other values |
| slug | 22 | |
| url | 22 | trustpilot.com |
| items | 22 | median 8 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/trustpilot/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"groups": [
{
"name": "Electronics & Technology",
"slug": "electronics_technology",
"items": []
}
]
}
}Request schema
No body schema
Response schema
#/definitions/trustpilot.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | trustpilot.CategoriesResponse | No | ||||
| data.groups | array | No | Top-level category groups, each with the categories it contains. | |||
| data.groups[].items | array | No | Categories that belong to this group. | |||
| data.groups[].items[].name | string | No | Software Company | Display name of the category. | ||
| data.groups[].items[].slug | string | No | software_company | Category slug. Use it with the category endpoint. | ||
| data.groups[].items[].url | string | No | https://www.trustpilot.com/categories/software_company | URL of the category page on Trustpilot. | ||
| data.groups[].name | string | No | Electronics & Technology | Display name of the category group. | ||
| data.groups[].slug | string | No | electronics_technology | Slug of the category group, such as `electronics_technology`. | ||
| data.groups[].url | string | No | https://www.trustpilot.com/categories/electronics_technology | URL of the category group page on Trustpilot. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 404 | Categories not found | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
| 503 | Trustpilot upstream request failed | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/trustpilot/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"