# Media Expert Category API Documentation

<p><strong>Media Expert Category API Documentation</strong> Browse one Media Expert category by its numeric id. The id is optional and defaults to a public category id shipped by the app. Returns ids, names, full-size image URLs, numeric PLN prices, old price, discount, 1 to 5 rating, review count and pagination. Page, page size, price bounds and sort filters are honoured. Cost: 1 credit per successful request with results. Failed, empty and validation responses are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/mediaexpert-api/mediaexpert_category](https://scrappa.co/docs/mediaexpert-api/mediaexpert_category)
- **API group:** Media Expert API
- **Endpoint:** `GET https://scrappa.co/api/mediaexpert/category`

## 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 |
| --- | --- | --- | --- |
| `categoryId` | string | No | Numeric category id from a live item. Optional; defaults to 253362. |
| `page` | integer | No | Page number from 1. |
| `limit` | integer | No | Items per page: 5, 10, 15, 20, 30 or 50. |
| `price_min` | number | No | Minimum price in PLN. |
| `price_max` | number | No | Maximum price in PLN. |
| `sort` | string | No | default, price_asc, price_desc or opinion_score_desc. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "7817815",
                "name": "Dmuchawa NAVITEL TF3",
                "price": 399.99,
                "currency": "PLN",
                "categories": [
                    {
                        "id": 253362,
                        "url": null,
                        "main": true,
                        "name": "Mini dmuchawy"
                    }
                ]
            }
        ],
        "currency": "PLN",
        "pagination": {
            "has_next": true,
            "per_page": 20,
            "total_pages": 14,
            "current_page": 1,
            "total_results": 280
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "category"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The category id, page size or filter is invalid. Not billed. |
| 502 | Upstream Unavailable | Media Expert could not be reached. Retry. Not billed. |

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