# CarDekho Used Car Dealers API Documentation

Return used car dealers near a city centre, with address, coordinates, phone, email, number of cars and profile link. Without parameters the Delhi centre is used. Some cities have no listed dealers; that returns an empty list.

- **Documentation:** [https://scrappa.co/docs/cardekho-api/cardekho_used_dealers](https://scrappa.co/docs/cardekho-api/cardekho_used_dealers)
- **API group:** CarDekho API
- **Endpoint:** `GET https://scrappa.co/api/cardekho/v1/used-cars/dealers`

## 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 |
| --- | --- | --- | --- |
| `city_id` | integer | No | CarDekho city id from the cities endpoint. Defaults to 49 (Delhi). |
| `latitude` | number | No | Latitude of the search centre. Needs longitude. |
| `longitude` | number | No | Longitude of the search centre. Needs latitude. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/cardekho/v1/used-cars/dealers?city_id=105&latitude=12.9716&longitude=77.5946"
```

## Example response

```json
{
    "success": true,
    "data": {
        "city": {
            "id": 105,
            "name": "Bangalore"
        },
        "total": 31,
        "dealers": [
            {
                "dealer_id": 2607,
                "name": "Bagga Motors",
                "address": "18/2 Main Arya Samaj Road, Karol Bagh|110005",
                "phone": "9899927799",
                "car_count": 8
            }
        ]
    },
    "meta": {
        "endpoint_family": "used_dealers",
        "market": "IN"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 404 | Not Found | CarDekho has no listing, price or result for the request. This response is not billable. |
| 422 | Unknown Filter | CarDekho did not recognise the city, make, fuel, transmission, body type, owner or seats value. This response is not billable. |
| 503 | Unexpected Upstream Response | CarDekho returned an unrecognized response shape. This response is not billable. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

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