# Universal.at Categories API Documentation

Scrappa's `GET /api/universal-at/categories` returns the public top navigation as `category_id`, `name`, `uri` and `root_category_id`. It is the id source for the category routes. No parameters are needed.

## Credits

A successful request costs **1 credit**. Errors and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/universal-at-api/universal_at_categories](https://scrappa.co/docs/universal-at-api/universal_at_categories)
- **API group:** Universal.at API
- **Endpoint:** `GET https://scrappa.co/api/universal-at/categories`

## 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.

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/universal-at/categories"
```

## Example response

```json
{
    "success": true,
    "categories": [
        {
            "category_id": "115872",
            "id": "115872",
            "name": "Mode",
            "uri": "/mode/",
            "root_category_id": "115872",
            "path": "/mode/"
        }
    ],
    "total": 17,
    "meta": {
        "endpoint_family": "universal-at-categories",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Universal.at could not be reached in time. Retryable and never billed. Clients are never rate limited. |
| 503 | Unexpected Answer Shape | Universal.at answered with an unknown shape. Not retryable and never billed: a retry of the same call cannot change the shape. |

## 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)
