# AutoTrack Dealer Listings

Search one dealer's current listings with the same filters, sorting and pagination as search. has_more is computed from the live total.

- **Documentation:** [https://scrappa.co/docs/autotrack-nl-api/autotrack_nl_dealer_listings](https://scrappa.co/docs/autotrack-nl-api/autotrack_nl_dealer_listings)
- **API group:** AutoTrack API
- **Endpoint:** `GET https://scrappa.co/api/autotrack-nl/dealers/{dealerId}/listings`

## 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 |
| --- | --- | --- | --- |
| `dealerId` | integer | Yes | Dealer id returned by a listing. |
| `pageNumber` | integer | No | Page number, starting at 1. |
| `pageSize` | integer | No | Listings per page, 1 to 100. Defaults to 30. |
| `sortField` | string | No | relevance, bouwjaar, datumGeplaatst, kilometerstand, merkModelUitvoering, prijs or afstand. |
| `sortOrder` | string | No | asc or desc. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/autotrack-nl/dealers/{dealerId}/listings?dealerId=96283&pageSize=2"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 3,
        "page_number": 1,
        "page_size": 2,
        "has_more": false,
        "listings": [
            {
                "id": 60203016,
                "price": 350,
                "currency": "EUR"
            }
        ]
    },
    "meta": {
        "endpoint_family": "dealer_listings"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. 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)
