# Wish Categories API Documentation

<p><strong>Wish Categories API Documentation</strong> Read the public Wish browse category tree and its trending ids. Ids are returned unchanged. Names come from the public id lookup Wish ships with the tree; no name is invented. Empty and failed requests are never charged. 1 credit per answer with data.</p>

- **Documentation:** [https://scrappa.co/docs/wish-api/wish_categories](https://scrappa.co/docs/wish-api/wish_categories)
- **API group:** Wish API
- **Endpoint:** `GET https://scrappa.co/api/wish/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 response

```json
{
    "data": {
        "trending": [],
        "categories": [
            {
                "id": "62636051d83c5947237a3da3",
                "name": "Trending",
                "children": [
                    {
                        "id": "6263605185df80dc632f3e8f",
                        "name": "Phones",
                        "children": []
                    }
                ]
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | Wish did not return usable data. 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)
