# Wish Facets API Documentation

<p><strong>Wish Facets API Documentation</strong> Read the public facet tree Wish ships, with exact filter ids and their public display names. Applying a filter to the search endpoint is a named follow-up because Wish has no verified apply-back parameter; this endpoint exposes the ids for inspection. Empty and failed requests are never charged. 1 credit per answer with data.</p>

- **Documentation:** [https://scrappa.co/docs/wish-api/wish_facets](https://scrappa.co/docs/wish-api/wish_facets)
- **API group:** Wish API
- **Endpoint:** `GET https://scrappa.co/api/wish/facets`

## 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": {
        "categories": [
            {
                "title": "Popular",
                "filter_groups": [
                    {
                        "title": "Color",
                        "filters": [
                            {
                                "title": "Gray",
                                "value": "Gray",
                                "filter_id": "color_53dc217e21a8632b3c6e0738"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "facets"
    },
    "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)
