# CarDekho India Used Cars Scraper — Prices, Specs & Dealers (`haketa/cardekho-scraper`) Actor

CarDekho India used cars & auto dealerships scraper: extract second-hand car listings across 20+ Indian cities with exact INR & Lakh prices, market benchmark price (MSP), monthly EMI, mileage (km), model year, variant, fuel, transmission, body type, locality, seller type & photos.

- **URL**: https://apify.com/haketa/cardekho-scraper.md
- **Developed by:** [Haketa](https://apify.com/haketa) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🚗 CarDekho India Used Cars Scraper — Prices, MSP Benchmark, EMI, Specs & Dealers

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-00C853?style=for-the-badge\&logo=apify)](https://apify.com)
[![India Automotive](https://img.shields.io/badge/Region-India%20\(IN\)-FF9933?style=for-the-badge)](https://apify.com)
[![Used Cars](https://img.shields.io/badge/Coverage-20%2B%20Indian%20Cities%20%7C%2015%2B%20Brands-2962FF?style=for-the-badge)](https://apify.com)
[![Export Formats](https://img.shields.io/badge/Export-JSON%20%7C%20CSV%20%7C%20Excel%20%7C%20API-FF6D00?style=for-the-badge)](https://apify.com)

Extract second-hand vehicle listings across **20+ major Indian cities** and **15+ car manufacturers** from **CarDekho.com**—India's leading automotive discovery and used car marketplace.

Unlike basic scrapers that only grab a title and display price, **CarDekho India Used Cars Scraper** extracts CarDekho's complete structured vehicle telemetry: **exact INR integer price (`priceInr`)**, **CarDekho Market Benchmark Price (`marketBenchmarkPriceInr` / MSP)**, **calculated monthly loan EMI (`monthlyEmiInr`)**, **odometer mileage (`mileageKm`)**, **make, model, generation & exact trim (`variantName`, `centralVariantId`)**, **fuel type**, **transmission**, **body type**, **dealer/store identifier (`storeId`, `sellerType`)**, **neighborhood (`locality`, `city`)**, and **photo counts**.

***

### ⚡ At a Glance

| Feature | Details |
|---|---|
| **Supported Indian Markets** | Mumbai, Bangalore, Delhi NCR, New Delhi, Gurgaon, Noida, Pune, Hyderabad, Chennai, Kolkata, Ahmedabad, Jaipur, Chandigarh, Lucknow, Surat, Indore, Kochi, Coimbatore, Nagpur, Thane + any custom CarDekho URL |
| **Supported Manufacturers** | Maruti Suzuki, Hyundai, Tata, Mahindra, Honda, Toyota, Kia, MG Motor, Volkswagen, Skoda, Renault, BMW, Mercedes-Benz, Audi, Jeep & more |
| **Financial & Pricing Data** | Asking Price (`priceInr`, `priceLakhs`, `formattedPrice`), **Market Benchmark Price (`marketBenchmarkPriceInr`)**, **Monthly EMI (`monthlyEmiInr`, `emiTerms`)** |
| **Technical Specifications** | Manufacturing Year (`year`), Make (`brand`), Model (`model`), Generation (`modelGeneration`), Exact Trim (`variantName`), Mileage (`mileageKm`), Fuel (`fuelType`), Transmission (`transmission`), Body Type (`bodyType`) |
| **Dealer & Location Data** | Seller Type (`Dealer` vs. `Individual`), Inventory Tier (`carType`, `inventoryType`), Store Hash (`storeId`), Corporate ID (`corporateId`), Locality (`locality`), City (`city`) |
| **Pagination & Speed** | 20 vehicles per page (`/page-2`, `/page-3`...); **180+ vehicles extracted in ~15–25 seconds** |

***

### 🎯 Why CarDekho Automotive Data Is High-Value

India's organized pre-owned car market is scaling rapidly across Tier-1 and Tier-2 cities, driven by multi-brand dealerships, online platforms (Cars24, Spinny, Mahindra First Choice, Maruti True Value), and NBFC auto financing.

**CarDekho India Used Cars Scraper** delivers unique data points critical for pricing models, dealership intelligence, and auto fintech:

1. **Asking Price vs. Market Benchmark Price (`priceInr` vs. `marketBenchmarkPriceInr`):** Every CarDekho listing includes an internal reference valuation (`msp` / `marketBenchmarkPriceInr`) alongside the seller's asking price (`priceInr`), allowing instant detection of underpriced inventory or dealer markups.
2. **Pre-Calculated Auto Loan EMI (`monthlyEmiInr` + `emiTerms`):** Captures the exact monthly financing installment in INR and interest/tenure assumptions (e.g., `14.5% for 48 months`) for consumer affordability benchmarking.
3. **Granular Trim & Variant Identification (`centralVariantId` + `variantName`):** Matches vehicles down to the exact factory trim (e.g., `Tata Nexon 1.2 Revotron XMA`, `centralVariantId: 6499`) rather than lumping base and top-end trims together.
4. **Store & Corporate Inventory Tracking (`storeId` + `corporateId`):** Track active lot inventory across specific dealership stores (`storeId`) and organized corporate partners across Indian neighborhoods (`locality`).

***

### 📊 Complete Output Fields Reference

#### 🚘 Vehicle Identity & Taxonomy

| Field | Type | Coverage | Description |
|---|---|---|---|
| `usedCarId` | `string` | 100% | Unique CarDekho listing ID (e.g., `5668756`) |
| `skuId` | `string` | 100% | UUID SKU identifier (`usedCarSkuId`, e.g., `3931d238-31c9-4018-b611-d12a3ea0b00b`) |
| `fullTitle` | `string` | 100% | Combined year, brand, model, and variant title (e.g., `2018 Tata Nexon 1.2 Revotron XMA`) |
| `brand` | `string` | 100% | OEM manufacturer name (e.g., `Tata`, `Maruti`, `Hyundai`, `Toyota`) |
| `model` | `string` | 100% | Model name (e.g., `Tata Nexon`, `Hyundai Creta`) |
| `modelGeneration` | `string` | 100% | Production generation series (e.g., `Nexon 2017-2020`) |
| `variantName` | `string` | 100% | Exact factory trim / variant specification (e.g., `1.2 Revotron XMA`) |
| `centralVariantId` | `integer` | 100% | CarDekho canonical variant catalog ID (e.g., `6499`) |
| `year` | `integer` | 100% | Manufacturing year (`myear`, e.g., `2018`) |

#### 💰 Pricing, Valuation Benchmark & Auto Financing

| Field | Type | Coverage | Description |
|---|---|---|---|
| `priceInr` | `integer` | 100% | Exact asking price in Indian Rupees (`INR`, e.g., `504122`) |
| `priceLakhs` | `number` | 100% | Numeric price normalized in Indian Lakhs (e.g., `5.04`) |
| `formattedPrice` | `string` | 100% | Display price string (e.g., `₹5.04 Lakh`) |
| `marketBenchmarkPriceInr` | `integer` | ~98% | CarDekho internal market reference valuation (`msp`) in INR (e.g., `504242`) |
| `monthlyEmiInr` | `integer` | ~99% | Estimated monthly auto loan EMI in INR (e.g., `12513`) |
| `emiTerms` | `string` | ~99% | Loan interest rate and tenure assumption (e.g., `Interest calculated at 14.5% for 48 months`) |

#### ⚙️ Technical Specs & Powertrain

| Field | Type | Coverage | Description |
|---|---|---|---|
| `mileageKm` | `integer` | 100% | Odometer reading in kilometers (e.g., `42974`) |
| `fuelType` | `string` | 100% | Fuel / powertrain category (`Petrol`, `Diesel`, `CNG`, `Electric`, `LPG`, `Hybrid`) |
| `transmission` | `string` | 100% | Gearbox type (`Manual`, `Automatic`) |
| `bodyType` | `string` | ~99% | Vehicle body style (`SUV`, `Sedan`, `Hatchback`, `MUV`, `Minivan`, `Luxury`, `Coupe`) |

#### 🏪 Dealership, Store & Location Attributes

| Field | Type | Coverage | Description |
|---|---|---|---|
| `sellerType` | `string` | 100% | Seller classification (`Dealer`, `Individual`) |
| `carType` | `string` | 100% | Listing channel (`corporate`, `retail`, `partner`) |
| `inventoryType` | `string` | ~95% | Inventory tier (`enterprise`, `classified`, `retail`) |
| `storeId` | `string` | ~90% | Unique dealership store hash ID (e.g., `2BE9BCEA66635A7BFC1003470A78D0BF`) |
| `corporateId` | `integer` | ~85% | Corporate partner network ID |
| `locality` | `string` | ~96% | Neighborhood or locality where the vehicle is parked (e.g., `Sharma Estate`, `Andheri West`) |
| `city` | `string` | 100% | Indian city name (e.g., `Mumbai`) |
| `cityId` | `integer` | 100% | CarDekho internal city ID (e.g., `201`) |
| `imageCount` | `integer` | ~98% | Total number of inspection/gallery photos uploaded for the vehicle (e.g., `33`) |
| `primaryImage` | `string` | ~99% | High-resolution primary vehicle photo URL |
| `url` | `string` | 100% | Direct link to the CarDekho vehicle detail page |
| `sourceUrl` | `string` | 100% | Search pagination page URL |
| `scrapedAt` | `string` | 100% | ISO 8601 extraction timestamp |

***

### 📦 Sample Output JSON

```json
{
  "usedCarId": "5668756",
  "skuId": "3931d238-31c9-4018-b611-d12a3ea0b00b",
  "fullTitle": "2018 Tata Nexon 1.2 Revotron XMA",
  "brand": "Tata",
  "model": "Tata Nexon",
  "modelGeneration": "Nexon 2017-2020",
  "variantName": "1.2 Revotron XMA",
  "centralVariantId": 6499,
  "year": 2018,
  "priceInr": 504122,
  "priceLakhs": 5.04,
  "formattedPrice": "₹5.04 Lakh",
  "marketBenchmarkPriceInr": 504242,
  "monthlyEmiInr": 12513,
  "emiTerms": "Interest calculated at 14.5% for 48 months",
  "mileageKm": 42974,
  "fuelType": "Petrol",
  "transmission": "Automatic",
  "bodyType": "SUV",
  "sellerType": "Dealer",
  "carType": "corporate",
  "inventoryType": "enterprise",
  "storeId": "2BE9BCEA66635A7BFC1003470A78D0BF",
  "corporateId": 17,
  "locality": "Sharma Estate",
  "city": "Mumbai",
  "cityId": 201,
  "imageCount": 33,
  "primaryImage": "https://images10.gaadi.com/usedcar_image/5668756/original/043c7cb37683c2e3a9dac8f59c3da164.jpg?imwidth=420",
  "url": "https://www.cardekho.com/used-car-details/used-Tata-nexon-12-revotron-xma-cars-Mumbai_3931d238-31c9-4018-b611-d12a3ea0b00b.htm",
  "sourceUrl": "https://www.cardekho.com/used-cars+in+mumbai",
  "scrapedAt": "2026-11-08T14:15:00.000Z"
}
```

***

### 🏙️ Supported Indian Cities & Automotive Markets

| Region | Cities Included in Dropdown |
|---|---|
| **West India** | Mumbai (`mumbai`), Thane (`thane`), Pune (`pune`), Ahmedabad (`ahmedabad`), Surat (`surat`), Indore (`indore`), Nagpur (`nagpur`) |
| **North India** | Delhi NCR (`delhi-ncr`), New Delhi (`new-delhi`), Gurgaon (`gurgaon`), Noida (`noida`), Jaipur (`jaipur`), Chandigarh (`chandigarh`), Lucknow (`lucknow`) |
| **South India** | Bangalore (`bangalore`), Hyderabad (`hyderabad`), Chennai (`chennai`), Kochi (`kochi`), Coimbatore (`coimbatore`) |
| **East India** | Kolkata (`kolkata`) |

***

### 🛠️ Input Parameters Guide

| Parameter | Type | Default | Description |
|---|---|---|---|
| `city` | `string` | `"mumbai"` | Target Indian city from the 20-city dropdown. |
| `brand` | `string` | `""` | Optional car manufacturer filter (`maruti`, `hyundai`, `tata`, `mahindra`, `toyota`, `honda`, `kia`, etc.). |
| `customUrls` | `array<string>` | `[]` | Optional list of exact CarDekho search URLs (e.g., `["https://www.cardekho.com/used-suv+cars+in+delhi-ncr"]`). |
| `maxItems` | `integer` | `100` | Maximum number of vehicles to extract (`1` to `10,000`). |
| `maxPagesPerUrl` | `integer` | `15` | Maximum pagination depth per URL (`20` vehicles per page). |
| `useApifyProxy` | `boolean` | `true` | Enable Apify Proxy fallback for multi-page runs. |

***

### 💡 High-Value Use Cases

#### 1. Used Car Price vs. Benchmark Spread Analysis

Compare `priceInr` against `marketBenchmarkPriceInr` across thousands of listings to identify vehicles priced below fair market value or quantify regional pricing premiums between Bangalore, Mumbai, and Delhi NCR.

#### 2. Dealership Lot Sizing & Store Footprint Tracking

Group listings by `storeId`, `corporateId`, `locality`, and `city` to measure inventory concentration, average lot price (`AVG(priceLakhs)`), and body-type mix (`SUV` vs. `Hatchback` vs. `Sedan`) per dealership store.

#### 3. Auto Loan & Insurance Actuarial Modeling

NBFCs, banks, and motor insurers use `centralVariantId`, `year`, `mileageKm`, `fuelType`, and `priceInr` to calibrate loan-to-value (LTV) ratios and Insured Declared Value (IDV) depreciation tables.

***

### 🐍 Python Analytics Example: Finding Underpriced SUVs Below Benchmark

```python
import pandas as pd
import requests

dataset_url = "https://api.apify.com/v2/datasets/YOUR_DATASET_ID/items?format=json"
cars = requests.get(dataset_url).json()
df = pd.DataFrame(cars)

## Calculate discount below CarDekho Market Benchmark Price (MSP)
df["discount_inr"] = df["marketBenchmarkPriceInr"] - df["priceInr"]
underpriced_suvs = df[
    (df["bodyType"] == "SUV")
    & (df["discount_inr"] > 0)
    & (df["mileageKm"] < 60000)
].sort_values("discount_inr", ascending=False)

print(
    underpriced_suvs[
        [
            "fullTitle",
            "year",
            "mileageKm",
            "priceInr",
            "marketBenchmarkPriceInr",
            "discount_inr",
            "locality",
            "city",
            "url",
        ]
    ].head(20)
)
```

***

### ❓ Frequently Asked Questions (FAQ)

#### Can I scrape multiple Indian cities or specific body types in one run?

Yes! Pass an array of CarDekho search URLs in `customUrls`, such as:

```json
{
  "customUrls": [
    "https://www.cardekho.com/used-cars+in+mumbai",
    "https://www.cardekho.com/used-cars+in+bangalore",
    "https://www.cardekho.com/used-cars+in+delhi-ncr"
  ],
  "maxItems": 400
}
```

#### How does pagination work?

The scraper automatically appends `/page-2`, `/page-3`, etc. to each search URL and deduplicates every vehicle by `usedCarId`.

***

### 🔗 Enterprise Automotive & Fintech Workflows

| Workflow | Stack | Implementation |
|---|---|---|
| **Instant Undervalued Car Arbitrage** | CarDekho Scraper + Make / n8n / Telegram | Schedule hourly or daily runs, compute `marketBenchmarkPriceInr - priceInr`, and push instant alerts to procurement buyers whenever a vehicle lists >₹40,000 below CarDekho's MSP benchmark. |
| **Cross-Portal Inventory Benchmarking** | CarDekho Scraper + CarWale Scraper + BigQuery | Join vehicle cohorts by `brand`, `model`, `year`, `fuelType`, and `city` across both CarDekho and CarWale to build a unified national used-car price index. |
| **Dealership Store Lot Valuation** | CarDekho Scraper + HubSpot / Salesforce | Group records by `storeId`, `locality`, and `city` to identify high-inventory dealer stores (`COUNT(usedCarId) >= 15`) for B2B inventory financing, warranty SaaS, or inspection services. |
| **Auto Loan EMI Affordability Analytics** | CarDekho Scraper + Python / Tableau | Analyze `monthlyEmiInr` vs. `priceInr` across `Hatchback`, `Sedan`, and `SUV` segments to model borrower monthly cash-flow thresholds across Tier-1 and Tier-2 Indian cities. |

***

### 📊 Data Quality & Field Coverage Benchmarks

Based on live multi-page extraction across Mumbai, Delhi NCR, and Bangalore on CarDekho.com:

| Output Field | Typical Fill Rate | Primary Business Value |
|---|---|---|
| `usedCarId` / `skuId` | **100%** | Unique vehicle identifiers for deduplication and historical tracking |
| `fullTitle` / `brand` / `model` | **100%** | Standardized OEM make and model taxonomy |
| `modelGeneration` / `variantName` / `centralVariantId` | **100%** | Exact factory trim and generation ID for precise valuation comps |
| `year` / `mileageKm` | **100%** | Vehicle age and odometer reading in kilometers |
| `priceInr` / `priceLakhs` / `formattedPrice` | **100%** | Normalized integer INR price, numeric Lakh value, and display string |
| `marketBenchmarkPriceInr` | **~98%** | CarDekho's internal fair-market reference price (`msp`) in INR |
| `monthlyEmiInr` / `emiTerms` | **~99%** | Pre-calculated monthly auto loan installment and rate/tenure terms |
| `fuelType` / `transmission` / `bodyType` | **~99–100%** | Complete powertrain and chassis classification |
| `sellerType` / `carType` / `storeId` | **~90–100%** | Distinguishes organized corporate/dealer stores from individual sellers |
| `locality` / `city` / `cityId` | **~96–100%** | Granular neighborhood and city location |
| `primaryImage` / `imageCount` / `url` | **~99–100%** | Direct vehicle URL, cover photo, and total inspection photo count |

***

### 🔧 Integration Examples (cURL & Node.js)

#### 1. Trigger via Apify REST API (cURL)

```bash
curl -X POST "https://api.apify.com/v2/acts/haketa~cardekho-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "city": "mumbai",
    "brand": "",
    "maxItems": 180,
    "maxPagesPerUrl": 10
  }'
```

#### 2. Node.js (`apify-client`) Example

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('haketa/cardekho-scraper').call({
    city: 'delhi-ncr',
    brand: 'hyundai',
    maxItems: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} Hyundai used cars in Delhi NCR:`, items.slice(0, 3));
```

***

### 🧭 Indian Used Car Market Segmentation Reference

| Segment (`bodyType`) | Top Models on CarDekho | Typical Price Band (`priceLakhs`) |
|---|---|---|
| **Hatchback** | Maruti Swift, Baleno, Wagon R, Hyundai i20, Grand i10, Tata Tiago | `₹ 2.50 Lakh` – `₹ 7.50 Lakh` |
| **Compact & Mid-Size SUV** | Tata Nexon, Hyundai Creta, Venue, Kia Seltos, Sonet, Maruti Brezza, Mahindra XUV700, Scorpio-N | `₹ 5.50 Lakh` – `₹ 18.00 Lakh` |
| **Sedan** | Honda City, Amaze, Hyundai Verna, Maruti Dzire, Ciaz, Skoda Slavia, Volkswagen Virtus | `₹ 4.00 Lakh` – `₹ 13.00 Lakh` |
| **MUV / MPV** | Toyota Innova Crysta, Hycross, Maruti Ertiga, XL6, Kia Carens | `₹ 6.50 Lakh` – `₹ 24.00 Lakh` |
| **Luxury** | BMW 3 Series, 5 Series, X1, Mercedes-Benz C-Class, E-Class, GLA, Audi A4, Q3 | `₹ 15.00 Lakh` – `₹ 65.00+ Lakh` |

#### 3. Python (`apify-client`) Example

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("haketa/cardekho-scraper").call(
    run_input={
        "city": "bangalore",
        "brand": "tata",
        "maxItems": 160,
        "maxPagesPerUrl": 8,
    }
)

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Fetched {len(items)} Tata used cars in Bangalore")
for car in items[:5]:
    print(car["fullTitle"], "|", car["formattedPrice"], "| MSP:", car["marketBenchmarkPriceInr"], "| km:", car["mileageKm"])
```

***

### 📋 Ready-to-Use Input Recipes

#### Recipe 1: Scrape All Used Cars in Mumbai

```json
{
  "city": "mumbai",
  "brand": "",
  "maxItems": 200,
  "maxPagesPerUrl": 10
}
```

#### Recipe 2: Compare Maruti Suzuki Pricing in Delhi NCR

```json
{
  "city": "delhi-ncr",
  "brand": "maruti",
  "maxItems": 200,
  "maxPagesPerUrl": 10
}
```

#### Recipe 3: Multi-City Luxury Used Cars (BMW, Mercedes-Benz, Audi)

```json
{
  "customUrls": [
    "https://www.cardekho.com/used-BMW+cars+in+mumbai",
    "https://www.cardekho.com/used-mercedes-benz+cars+in+delhi-ncr",
    "https://www.cardekho.com/used-audi+cars+in+bangalore"
  ],
  "maxItems": 300,
  "maxPagesPerUrl": 6
}
```

***

### ⚠️ Limitations

- Direct seller phone numbers require OTP verification on CarDekho's lead modal; however, `storeId`, `corporateId`, `sellerType`, `locality`, and `city` are extracted on ~95–100% of records.

***

### 📝 Changelog

#### v1.1 (November 2026)

- **Deep Pagination Unlocked:** Set `maxPagesPerUrl` and `maxItems` defaults to `0` (unlimited auto-pagination governed by requested items).
- Removed restrictive caps to support 1,000+ vehicle extraction runs across multiple cities and custom search URLs.
- Enhanced prefill configuration for fast sub-minute verification runs.

#### v1.0 (November 2026)

- Initial release of **CarDekho India Used Cars Scraper**.
- Added 20-city dropdown, 15-brand filter, custom URLs, `marketBenchmarkPriceInr` (MSP), `monthlyEmiInr`, `centralVariantId`, and `storeId` extraction.

# Actor input Schema

## `city` (type: `string`):

Select an Indian city to extract used car listings from CarDekho.

## `brand` (type: `string`):

Optionally filter by car manufacturer or leave empty to scrape all brands.

## `customUrls` (type: `array`):

Optional list of CarDekho search URLs (e.g. https://www.cardekho.com/used-cars+in+bangalore). Overrides City/Brand dropdowns if provided.

## `maxItems` (type: `integer`):

Maximum number of used car listings to extract. 0 = unlimited, governed by available listings.

## `maxPagesPerUrl` (type: `integer`):

Maximum number of pagination pages (~20 vehicles per page) to crawl per URL. 0 = unlimited, governed by Max Vehicles.

## `useApifyProxy` (type: `boolean`):

Use Apify Proxy for reliable extraction.

## Actor input object example

```json
{
  "city": "mumbai",
  "brand": "",
  "customUrls": [],
  "maxItems": 60,
  "maxPagesPerUrl": 0,
  "useApifyProxy": true
}
```

# Actor output Schema

## `usedCarId` (type: `string`):

Unique CarDekho vehicle listing identifier.

## `fullTitle` (type: `string`):

Year, make, model, and variant name.

## `formattedPrice` (type: `string`):

Formatted vehicle price in Indian Lakhs/Crores.

## `mileageKm` (type: `string`):

Odometer reading in kilometers.

## `locality` (type: `string`):

Vehicle neighborhood and city in India.

## `url` (type: `string`):

Direct link to the CarDekho vehicle page.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "city": "mumbai",
    "brand": "",
    "maxItems": 60,
    "maxPagesPerUrl": 0,
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/cardekho-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "city": "mumbai",
    "brand": "",
    "maxItems": 60,
    "maxPagesPerUrl": 0,
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/cardekho-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "city": "mumbai",
  "brand": "",
  "maxItems": 60,
  "maxPagesPerUrl": 0,
  "useApifyProxy": true
}' |
apify call haketa/cardekho-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,haketa/cardekho-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ygtz47UQZMWzcOA38/builds/im2zsJ9wcV7r3Z5Vb/openapi.json
