# coches.net Dealer Listings

Returns one page of a dealer's stock list, 30 vehicles per page, addressed by the dealer slug and a 1-based page number. has_more comes from the real totalPages signal, never from the item count.

- **Documentation:** [https://scrappa.co/docs/coches-net-api/coches_net_dealer_listings](https://scrappa.co/docs/coches-net-api/coches_net_dealer_listings)
- **API group:** coches.net API
- **Endpoint:** `GET https://scrappa.co/api/coches-net/dealer-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 |
| --- | --- | --- | --- |
| `slug` | string | Yes | Dealer slug from any dealer listing's stock page URL, for example crestanevadamadridvo. Required. |
| `page` | integer | No | 1-based page number. Default 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/coches-net/dealer-listings?slug=crestanevadamadridvo&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "items": [
            {
                "id": "71617238",
                "title": "MG HS 1.5 Turbo GDI Comfort",
                "url": "https://www.coches.net/mg-hs-15-turbo-gdi-comfort-5p-gasolina-2024-en-a_coruna-71617238-covo.aspx",
                "price": {
                    "amount": 16000,
                    "currency": "EUR"
                },
                "mileage": {
                    "value": 66193,
                    "unit": "km"
                },
                "first_registration": {
                    "year": 2024
                },
                "make": {
                    "id": 31,
                    "label": "MG"
                },
                "model": {
                    "id": 1362,
                    "label": "HS"
                },
                "fuel": {
                    "id": 2,
                    "label": "Gasolina"
                }
            }
        ],
        "pagination": {
            "page": 1,
            "page_size": 30,
            "total_items": 369,
            "total_pages": 13,
            "has_more": true
        }
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing or dealer was not found. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid, including a listing path that is not a coches.net listing url. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from coches.net. 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)
