# TrustedShops Categories

Get available TrustedShops shop categories for a specific market and return category names, IDs, total shop counts, and URL path values as structured JSON.

Use [TrustedShops Markets](/docs/trustedshops-api/trustedshops_markets) to choose a supported country code first. Then pass a returned `urlPath` value to [TrustedShops Category Shops](/docs/trustedshops-api/trustedshops_category_shops) to browse shops inside that category.

- **Documentation:** [https://scrappa.co/docs/trustedshops-api/trustedshops_categories](https://scrappa.co/docs/trustedshops-api/trustedshops_categories)
- **API group:** TrustedShops API
- **Endpoint:** `GET https://scrappa.co/api/trustedshops/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.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `market` | string | No | Market code filter (DEU, GBR, AUT, CHE, NLD, ESP, ITA, FRA, BEL, POL, PRT). Default: DEU |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/trustedshops/categories?market=DEU"
```

## Example response

```json
{
    "categories": [
        {
            "name": "Bekleidung",
            "urlPath": "bekleidung",
            "id": 23,
            "totalCount": 9678
        }
    ]
}
```

## Frequently asked questions

### What does the TrustedShops Categories API return?

The Categories endpoint returns category names, IDs, total shop counts, and `urlPath` values for a selected TrustedShops market.

### How do I use a TrustedShops category URL path?

Pass the returned `urlPath` value as the `category` parameter to the Category Shops endpoint to browse merchants in that category.

### Should I call Markets before Categories?

Yes. Use the Markets endpoint to confirm the supported country code, then pass that code to Categories for market-specific category paths.

## Related endpoints

- [TrustedShops Markets](https://scrappa.co/docs/trustedshops-api/trustedshops_markets)
- [TrustedShops Category Shops](https://scrappa.co/docs/trustedshops-api/trustedshops_category_shops)
- [TrustedShops Search](https://scrappa.co/docs/trustedshops-api/trustedshops_search)

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