# CarDekho New Car On-Road Price API Documentation

Return the on-road price of every variant of a new car in one city, with the full price breakup: ex-showroom, RTO, insurance, other charges, optional accessories, on-road price and EMI. Use the combined model slug such as tata-sierra.

- **Documentation:** [https://scrappa.co/docs/cardekho-api/cardekho_new_price](https://scrappa.co/docs/cardekho-api/cardekho_new_price)
- **API group:** CarDekho API
- **Endpoint:** `GET https://scrappa.co/api/cardekho/v1/new-cars/{model_slug}/price`

## 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 |
| --- | --- | --- | --- |
| `model_slug` | string | Yes | Combined brand and model slug such as tata-sierra. Sent in the path. |
| `city` | string | No | City slug. Defaults to new-delhi. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/cardekho/v1/new-cars/{model_slug}/price?model_slug=tata-sierra&city=new-delhi"
```

## Example response

```json
{
    "success": true,
    "data": {
        "model_id": 3566,
        "name": "Tata Sierra",
        "city": "New Delhi",
        "variants": [
            {
                "name": "Tata Sierra Smart Plus",
                "fuel": "Petrol",
                "price_breakup": {
                    "ex_showroom": 1149000,
                    "rto": 119700,
                    "insurance": 55041,
                    "other_charges": 11490,
                    "on_road": 1357731,
                    "currency": "INR"
                }
            }
        ]
    },
    "meta": {
        "endpoint_family": "new_car_price",
        "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)
