Returns matching Twitch categories with id, name and box art. Use the id in the live and channel search endpoints.
POST
/api/v1/twitch/search/categoriesQuota usage: Each successful request to this endpoint deducts 1 quota units from your plan.
Request Parameters
Required Parameters
| Name | In | Type | Description |
|---|---|---|---|
query | body | string | Search query example: string |
Optional Parameters
| Name | In | Type | Description |
|---|---|---|---|
first | body | integer | Maximum number of items per page. Minimum 1, maximum 100, default 20 example: 0 |
after | body | object | Next page cursor example: string |
Response Fields
| Name | Type | Description |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.more | boolean | Has more |
data.offset | string | offset |
data.data | array<object> | data |
Try It
https://openapi.scdata.cc/api/v1/twitch/search/categories
Select an API key from Dashboard
Add an API key before sending a request.Go to Dashboard
JSON Body
cURL Example
bash
curl -X POST "https://openapi.scdata.cc/api/v1/twitch/search/categories" \-H "Authorization: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"query":"string","first":0,"after":"string"}'
Response Example (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"more": true,"offset": "string","data": [{"box_art_url": "string","id": 0,"name": "string"}]}}
Use Cases
- Game-based targeting — Resolve a game title to its category id before searching for streamers who play it.
- Category autocomplete — Power a category picker in an internal tool.