TikTok API endpoint
Returns the content categories shown on TikTok's Explore page. Each entry has the category name and its numeric type code. Takes no parameters.
/tiktok/category| Field | Filled in, of 21 checked | Values in the sample |
|---|---|---|
| name | 21 | |
| type | 21 | 100 to 120, median 110 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tiktok/category" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"name": "All",
"type": "120"
}Request schema
No body schema
Response schema
#/definitions/tiktok.categoryResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | array | No | ||||
| data[].name | string | No | Category name as shown on TikTok's Explore page. | |||
| data[].type | string | No | Numeric category type code, as a string. Use it as the `id` of the explore endpoint. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tiktok/category" \
-H "x-api-key: $CRAWLORA_API_KEY"