# Kijiji Category API Documentation

<p><strong>Kijiji Category API</strong> returns the name, parent id and full path of one Kijiji category id, so you can label category_id values from search and listing results. The root id 0 is Classifieds and has no parent. An unknown category id returns a non-billable 404. Common ids: Canada 0, Alberta 9003, Ontario 9004, Calgary 1700199, Toronto 1700273; Buy & Sell 10, Cars & Vehicles 27, Cars & Trucks 174, Bikes 644, Cell phones 760.</p>

- **Documentation:** [https://scrappa.co/docs/kijiji-api/kijiji_category](https://scrappa.co/docs/kijiji-api/kijiji_category)
- **API group:** Kijiji API
- **Endpoint:** `GET https://scrappa.co/api/kijiji/category`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | Yes | Numeric Kijiji category id, e.g. 644. Example: 644. |

## Example response

```json
{
    "data": {
        "id": 644,
        "name": "Bikes",
        "path": [
            {
                "id": 10,
                "name": "Buy & Sell"
            },
            {
                "id": 644,
                "name": "Bikes"
            }
        ],
        "parent_id": 10
    },
    "meta": {
        "billable": true,
        "endpoint_family": "category"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id is missing or not a non-negative integer. This response is not billable. |
| 404 | Category Not Found | No Kijiji category exists for the id. This response is not billable. |
| 503 | Upstream Unavailable | Kijiji is temporarily unreachable, blocked the request or answered with data that does not match the documented shape (error code PARSER_DRIFT). Retry later; 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)
