# Semrush Facets

Reference data for the Semrush API: the 17 sensor databases and 25 sensor categories used by the sensor endpoints, and the 240 trending countries and 111 trending categories used by the trending endpoint.

- **Documentation:** [https://scrappa.co/docs/semrush-api/semrush_facets](https://scrappa.co/docs/semrush-api/semrush_facets)
- **API group:** Semrush API
- **Endpoint:** `GET https://scrappa.co/api/semrush/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 request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/semrush/facets"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "semrush_facets"
    },
    "sensor": {
        "dbs": [
            "US",
            "MOBILE-US"
        ],
        "categories": [
            1,
            2
        ],
        "date_format": "YYYY-MM-DD"
    },
    "trending": {
        "countries": [
            "global",
            "us"
        ],
        "categories": [
            "all",
            "arts_and_entertainment"
        ]
    }
}
```

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