# Kick Subcategory API Documentation

Retrieve one subcategory with its tags, banner, viewer count, and parent category. Always answered by the detail endpoint: the taxonomy cache holds only the thin short row, so a known subcategory is still one upstream call and is billed as one.

- **Documentation:** [https://scrappa.co/docs/kick-api/kick_subcategory](https://scrappa.co/docs/kick-api/kick_subcategory)
- **API group:** Kick API
- **Endpoint:** `GET https://scrappa.co/api/kick/v1/subcategories/{subcategory_slug}`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `subcategory_slug` | string | Yes | Subcategory slug from the subcategories endpoint. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kick/v1/subcategories/{subcategory_slug}?subcategory_slug=just-chatting"
```

## Example response

```json
{
    "success": true,
    "data": {
        "subcategory": {
            "id": 1,
            "name": "Just Chatting",
            "slug": "just-chatting",
            "viewers": 51234
        },
        "search_parameters": {
            "subcategory_slug": "just-chatting"
        }
    },
    "meta": {
        "upstream_family": "subcategory"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested channel, clip, video, or subcategory does not exist. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid, such as an unsupported clip sort or an empty search query. This response is not billable. |
| 502 | Invalid Source Response | Kick returned a response shape the API does not recognise. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from Kick. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
