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

CarWale India used cars & auto dealerships scraper: extract second-hand car listings across 20+ Indian cities with exact INR & Lakh prices, mileage (km), model year, fuel type, transmission, dealer/seller name, locality, ownership count & full photo galleries. Export JSON/CSV.

- **URL**: https://apify.com/haketa/carwale-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

<h1 align="center">🚗 CarWale Scraper — India Used Cars, Prices, Dealers & Specs</h1>

<p align="center">
  <img src="https://img.shields.io/badge/Market-India%20Automotive-critical?style=for-the-badge" alt="Market India Auto" />
  <img src="https://img.shields.io/badge/Data-INR%20Prices%20%2B%20Mileage%20%2B%20Dealers-blue?style=for-the-badge" alt="Data Fields" />
  <img src="https://img.shields.io/badge/Setup-Zero%20Coding%20Required-success?style=for-the-badge" alt="No Code" />
  <img src="https://img.shields.io/badge/Export-JSON%20%7C%20CSV%20%7C%20Excel%20%7C%20API-orange?style=for-the-badge" alt="Export Formats" />
</p>

<p align="center">
  <strong>Extract structured second-hand car listings and auto dealership inventories from CarWale.com across 20+ major Indian cities. Collect exact INR asking prices, Lakh formatting, odometer mileage (km), model year, trim, fuel type, transmission, body style, previous owner count, auto dealer names, localities, and multi-angle vehicle photo galleries.</strong>
</p>

***

### ⚡ At a Glance

| Feature | Details |
|---|---|
| **Target Platform** | CarWale (`carwale.com`) — India's leading automotive marketplace (CarTrade Tech group) |
| **Core Data Extracted** | Stock ID, Vehicle Title, Full Trim Name, Brand, Model, Year, Exact Price (`INR` & `Lakh`), Odometer Mileage (`km`), Fuel Type, Transmission, Body Type, Seating Capacity, Color, Previous Owners Count, **Dealer / Seller Name**, Locality, City, State & Photo URLs |
| **Geographic Coverage** | 20+ Indian metro & Tier-1/Tier-2 cities (Mumbai, Delhi, Bangalore, Hyderabad, Chennai, Pune, Ahmedabad, Kolkata, Gurgaon, Noida, etc.) + Custom URLs |
| **Brand Filtering** | Filter by Maruti Suzuki, Hyundai, Tata, Mahindra, Honda, Toyota, Kia, MG, Volkswagen, Skoda, Mercedes-Benz, BMW, Audi, or All Brands |
| **Speed & Pagination** | Pure HTTP extraction (~32 listings per page) with automatic multi-page crawling and zero browser overhead |
| **Export Formats** | JSON, CSV, Excel (XLSX), XML, HTML, or direct API integration |

***

### 🎯 Why Scrape CarWale India?

India's pre-owned passenger vehicle market is expanding rapidly past 5 million annual transactions, driven by organized dealerships, auto fintech lenders, and digital marketplaces. **CarWale.com** aggregates tens of thousands of verified used car listings from thousands of local auto dealerships across every major Indian city.

**CarWale Scraper** turns this massive automotive inventory into clean, structured market intelligence:

1. **Exact Numeric INR Prices + Lakh Display (`priceInr` & `priceFormatted`)** — Get both the raw integer price in Indian Rupees (e.g., `1999999`) for quantitative valuation models and the human-readable Indian Lakh format (`₹ 20.00 Lakh`).
2. **Complete Vehicle Specifications** — Every record includes `brand`, `model`, `fullTrimName`, `year`, `mileageKm`, `fuelType` (`Petrol`, `Diesel`, `CNG`, `Electric`, `Hybrid`), `transmission` (`Automatic`, `Manual`), `bodyType` (`SUV`, `Sedan`, `Hatchback`), `seatingCapacity`, `color`, and `ownersCount`.
3. **Auto Dealership Lead Generation (`dealerName`, `locality`, `city`)** — Every listing identifies the selling dealership (e.g., `Arihant Motors` in `Mulund (W), Mumbai, Maharashtra`), making it effortless to map used-car dealers and their inventory size by neighbourhood.
4. **Multi-Angle Vehicle Galleries (`images`)** — Extracts the full array of high-resolution CDN image URLs for every vehicle.

***

### 🚀 High-Value Use Cases

| Use Case | How Teams Use This Data |
|---|---|
| 📈 **Used Car Valuation & Depreciation Models** | Train pricing algorithms and residual-value models on thousands of live Indian vehicle listings segmented by make, model, trim, year, city, mileage, and ownership count. |
| 🎯 **B2B Auto Dealer Lead Generation** | Aggregate listings by `dealerName`, `locality`, and `city` to identify the largest used-car dealerships in Mumbai, Delhi NCR, Bangalore, and Pune for auto-loan, warranty, insurance, or DMS software sales. |
| 🔄 **Dealership Inventory & Price Benchmarking** | Track competitor inventory turnover and price positioning across specific car brands and cities in real time. |
| 🤖 **Consumer Auto Portals & AI Buying Assistants** | Power Indian car comparison tools, WhatsApp auto-buying bots, and LLM search agents with fresh, structured inventory feeds. |

***

### 📊 Extracted Data Fields & Coverage

#### 🚘 Vehicle Identity & Specifications

| Field | Type | Coverage | Description |
|---|---|---|---|
| `stockId` | `string` | 🟢 **100%** | Unique CarWale stock identifier (e.g., `hxr5ubal`) |
| `title` | `string` | 🟢 **100%** | Listing title (e.g., `2016 Used Audi Q7 in Mumbai`) |
| `fullTrimName` | `string` | 🟢 **98%** | Full model and variant/trim name (e.g., `Audi Q7 45 TDI Technology Pack`) |
| `brand` | `string` | 🟢 **100%** | Vehicle manufacturer (`Maruti Suzuki`, `Hyundai`, `Tata`, `Audi`, etc.) |
| `model` | `string` | 🟢 **100%** | Vehicle model generation (e.g., `Q7 [2015-2020]`, `Creta [2020-2024]`) |
| `year` | `number` | 🟢 **100%** | Manufacturing / registration year |
| `mileageKm` | `number` | 🟢 **100%** | Odometer reading in kilometers |
| `fuelType` | `string` | 🟢 **100%** | Fuel type (`Petrol`, `Diesel`, `CNG`, `Electric`, `LPG`, `Hybrid`) |
| `transmission` | `string` | 🟢 **100%** | Transmission type (`Manual`, `Automatic`, `Automatic (DCT)`, `Automatic (CVT)`) |
| `bodyType` | `string` | 🟢 **99%** | Body style (`SUV`, `CompactSuv`, `Sedan`, `Hatchback`, `MUV`, etc.) |
| `seatingCapacity` | `number` | 🟢 **99%** | Number of seats (`5`, `7`, etc.) |
| `color` | `string` | 🟢 **98%** | Exterior color of the car |
| `ownersCount` | `number` | 🟢 **99%** | Number of previous owners (`1`, `2`, `3`) |

#### 💰 Pricing, Dealership & Location

| Field | Type | Coverage | Description |
|---|---|---|---|
| `priceInr` | `number` | 🟢 **100%** | Exact asking price in Indian Rupees (INR) |
| `priceCurrency` | `string` | 🟢 **100%** | Always `INR` |
| `priceFormatted` | `string` | 🟢 **100%** | Formatted price in Lakhs (e.g., `₹ 20.00 Lakh`) |
| `dealerName` | `string` | 🟢 **95%** | Name of the auto dealership or seller |
| `sellerType` | `string` | 🟢 **100%** | Seller classification (e.g., `AutoDealer`) |
| `locality` | `string` | 🟢 **95%** | Specific neighbourhood / locality within the city (e.g., `Andheri (W)`, `Mulund (W)`) |
| `city` | `string` | 🟢 **100%** | City name (`Mumbai`, `Delhi`, `Bangalore`, etc.) |
| `state` | `string` | 🟢 **99%** | Indian State (`Maharashtra`, `Karnataka`, `Delhi`, etc.) |
| `availability` | `string` | 🟢 **100%** | Stock status (`InStock`) |

#### 🖼️ Media & Links

| Field | Type | Coverage | Description |
|---|---|---|---|
| `primaryImage` | `string` | 🟢 **99%** | Main vehicle photo URL |
| `images` | `array` | 🟢 **99%** | Array of all high-resolution vehicle photo URLs |
| `imageCount` | `number` | 🟢 **100%** | Total number of photos in the gallery |
| `description` | `string` | 🟢 **100%** | Summary description of the vehicle |
| `url` | `string` | 🟢 **100%** | Direct link to the CarWale listing page |
| `scrapedAt` | `string` | 🟢 **100%** | ISO 8601 extraction timestamp |

***

### 📥 Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `cities` | `array` | `["mumbai"]` | Select one or more Indian cities from the 20-city dropdown |
| `brand` | `string` | `""` (All) | Optional car make filter (`maruti-suzuki`, `hyundai`, `tata`, `mahindra`, etc.) |
| `customUrls` | `array` | `[]` | Optional custom CarWale search URLs |
| `maxItems` | `integer` | `0` | Maximum number of car listings to collect (0 = unlimited deep pagination, default prefill `60`) |
| `proxyConfiguration` | `object` | Apify Proxy | Optional proxy settings |

***

### 💻 Configuration Examples

#### 1. Scrape Used Cars Across India's Top 4 Metro Cities

```json
{
  "cities": ["mumbai", "delhi", "bangalore", "hyderabad"],
  "brand": "",
  "maxItems": 500
}
```

#### 2. Scrape Used Hyundai & Tata SUVs in Pune and Chennai

```json
{
  "cities": ["pune", "chennai"],
  "brand": "hyundai",
  "maxItems": 250
}
```

***

### 📤 Sample Output Record

```json
{
  "stockId": "hxr5ubal",
  "title": "2016 Used Audi Q7 in Mumbai",
  "fullTrimName": "Audi Q7 45 TDI Technology Pack",
  "alternateTitle": "2016 Second Hand Audi Q7 in Mumbai",
  "brand": "Audi",
  "model": "Q7 [2015-2020]",
  "year": 2016,
  "priceInr": 1999999,
  "priceCurrency": "INR",
  "priceFormatted": "₹ 20.00 Lakh",
  "mileageKm": 66000,
  "fuelType": "Diesel",
  "transmission": "Automatic (EV)",
  "bodyType": "FullSizeSuv",
  "seatingCapacity": 7,
  "color": "Black",
  "ownersCount": 1,
  "dealerName": "Arihant Motors",
  "sellerType": "AutoDealer",
  "locality": "Mulund (W)",
  "city": "Mumbai",
  "state": "Maharashtra",
  "availability": "InStock",
  "description": "2016 Second Hand Audi Q7 is available at 20 Lakh in Mumbai. Its manufacturer is Audi. It was made in 2016. Its fuel type is Diesel. It has run for 66,000 km.",
  "primaryImage": "https://imgd.aeplcdn.com/400x300/vimages/202610/4886841_2427_1_1792069784771.jpg?q=80",
  "images": [
    "https://imgd.aeplcdn.com/400x300/vimages/202610/4886841_2427_1_1792069784771.jpg?q=80",
    "https://imgd.aeplcdn.com/400x300/vimages/202610/4886841_2427_2_1792069784924.jpg?q=80"
  ],
  "imageCount": 7,
  "url": "https://www.carwale.com/used/mumbai/audi-q7/hxr5ubal/",
  "scrapedAt": "2026-11-08T12:45:00.000Z"
}
```

***

***

### 🛠️ Step-by-Step Guide: How to Scrape CarWale Used Cars

1. **Open the Actor in Apify Console** — Click **Try for free** or open the Input configuration tab.
2. **Select Target Indian Cities (`cities`)** — Pick one or more cities from the 20-city dropdown (`mumbai`, `delhi`, `bangalore`, `hyderabad`, `chennai`, `pune`, `ahmedabad`, `kolkata`, `gurgaon`, `noida`, etc.).
3. **Optional Brand Filter (`brand`)** — Choose a specific make (`maruti-suzuki`, `hyundai`, `tata`, `mahindra`, `toyota`, `kia`, `bmw`, `mercedes-benz`, `audi`) or leave on `All Brands`.
4. **Or Paste Custom CarWale URLs (`customUrls`)** — Paste any filtered search URL from `carwale.com/used/...`.
5. **Set `maxItems`** — Choose `60`–`100` for a fast snapshot or `1,000`–`10,000` for multi-city inventory extraction.
6. **Run & Export** — Download the results in **Excel (XLSX), CSV, or JSON**, or connect via API/Webhooks to your BI dashboard.

***

### 🔌 API & Programmatic Integration (Node.js & Python)

<details>
<summary><strong>🟢 Run with Node.js (`apify-client`)</strong></summary>

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

const client = new ApifyClient({ token: 'YOUR_APIFY_API_TOKEN' });

const run = await client.actor('haketa/carwale-scraper').call({
    cities: ['mumbai', 'delhi', 'bangalore'],
    brand: 'mahindra',
    maxItems: 400,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} used cars from CarWale:`, items[0]);
```

</details>

<details>
<summary><strong>🐍 Run with Python (`apify-client`)</strong></summary>

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run = client.actor("haketa/carwale-scraper").call(run_input={
    "cities": ["mumbai", "pune", "ahmedabad"],
    "brand": "",
    "maxItems": 500,
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Extracted {len(items)} car listings. Sample:", items[0])
```

</details>

***

### 🏙️ All 20 Supported Indian Metro & Tier-1/Tier-2 Cities

| Region | Supported Cities (`cities` enum) |
|---|---|
| **West India** | `mumbai`, `thane`, `navi-mumbai`, `pune`, `ahmedabad`, `surat`, `nagpur`, `indore` |
| **North India (Delhi NCR & North)** | `delhi`, `gurgaon`, `noida`, `chandigarh`, `jaipur`, `lucknow` |
| **South India** | `bangalore`, `hyderabad`, `chennai`, `kochi`, `coimbatore` |
| **East India** | `kolkata` |

***

### 💡 Pro Tips for Automotive Valuation & Dealership Intelligence

> 💡 **Tip 1: Build Used Car Depreciation Curves by City & Fuel Type**
> Group `priceInr` by `brand`, `model`, `year`, `fuelType`, and `mileageKm` across cities. You can immediately quantify how diesel vs. petrol SUVs depreciate in Delhi NCR (where 10-year diesel rules apply) compared to Mumbai, Bangalore, or Hyderabad.

> 💡 **Tip 2: Map Top Auto Dealerships by Inventory Volume**
> Group the scraped dataset by `dealerName` and `locality` to rank every used-car dealership by active stock count and average portfolio value (`SUM(priceInr)`). This creates a high-converting B2B lead list for auto finance, used-car warranty providers, and dealership SaaS.

> 💡 **Tip 3: Computer Vision & Listing Quality Analysis**
> Every record includes the full `images` array (`400x300` / high-res CDN URLs) and `imageCount`, enabling automated visual inspection or training datasets for Indian vehicle models.

***

### 🔍 SEO Keywords & Search Tags

`CarWale scraper`, `CarWale used cars API`, `India used car prices dataset`, `scrape second hand cars India`, `Indian auto dealerships lead generation`, `CarDekho Spinny Cars24 alternative scraper`, `Indian automotive market intelligence`, `used car valuation dataset India`.

***

### ❓ Frequently Asked Questions (FAQ)

#### How many used cars are available on CarWale?

Major metros like Mumbai and Delhi NCR have **8,000–12,000+ active used car listings each**, and the nationwide inventory exceeds 60,000 vehicles.

#### Does the scraper deduplicate listings across pages?

Yes. Every vehicle is deduplicated by its unique `stockId` so promoted or featured listings never appear twice in your dataset.

#### How are Indian Lakh / Crore prices converted into `priceInr`?

CarWale displays prices in Indian numbering units (e.g., `₹ 6.75 Lakh` or `₹ 1.25 Crore`) alongside numeric schema offers. **CarWale Scraper** normalizes every price into an exact integer `priceInr` (`675000` or `12500000`) as well as `priceLakhs` (`6.75` or `125.0`) so you can run SQL aggregations, regression models, and cross-city comparisons without string parsing.

#### Can I scrape multiple cities and brands in a single run?

For single-city or single-brand runs, use the `city` and `brand` dropdowns. To scrape **10+ cities or specific price/fuel combinations in a single run**, pass an array of URLs in `customUrls` (for example, `["https://www.carwale.com/used/mumbai/", "https://www.carwale.com/used/bangalore/", "https://www.carwale.com/used/delhi-ncr/"]`). The scraper will paginate through each URL until `maxItems` is reached.

***

### 🏙️ Supported Indian Cities & Automotive Hubs

The `city` dropdown includes 20 top Indian automotive markets out of the box, and any other Indian city can be scraped via `customUrls`:

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

***

### 🔗 Automotive Intelligence & Dealership Workflows

| Workflow | Target Users | Implementation |
|---|---|---|
| **Residual Value & Depreciation Curves** | Auto Lenders, NBFCs, Insurers | Group records by `brand`, `model`, `year`, and `fuelType` to calculate depreciation curves per 10,000 `mileageKm` across Tier-1 vs. Tier-2 Indian cities. |
| **Regional Price Arbitrage Detection** | Used Car Aggregators & Wholesale Buyers | Compare median `priceLakhs` for identical `model` + `year` combinations between high-supply markets (Delhi NCR, Mumbai) and high-price markets (Bangalore, Hyderabad). |
| **Dealership Inventory & Footprint Mapping** | Automotive SaaS, DMS & Financing Sales | Aggregate listings by `dealerName`, `locality`, and `city` to identify high-volume multi-brand used car dealerships and estimate their total lot value (`SUM(priceInr)`). |

***

### 🐍 Python Depreciation & Dealership Analytics Snippet

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

## 1. Top dealerships by active inventory count and total lot value (in INR Crores)
dealer_summary = (
    df[df["sellerType"] == "Dealer"]
    .groupby(["dealerName", "city", "locality"])
    .agg(
        listings_count=("stockId", "count"),
        avg_price_lakhs=("priceLakhs", "mean"),
        total_inventory_crores=("priceInr", lambda x: round(x.sum() / 1e7, 2)),
    )
    .sort_values("listings_count", ascending=False)
)
print(dealer_summary.head(15))

## 2. Average price by model and manufacturing year
model_matrix = (
    df.groupby(["brand", "model", "year"])
    .agg(
        count=("stockId", "count"),
        median_lakhs=("priceLakhs", "median"),
        avg_km=("mileageKm", "mean"),
    )
    .reset_index()
)
print(model_matrix.head(20))
```

***

### 📊 Field-by-Field Data Quality & Coverage Benchmarks

Based on live multi-page extraction across major Indian cities on CarWale:

| Output Field | Typical Fill Rate | Primary Business Use |
|---|---|---|
| `stockId` | **100%** | Unique vehicle listing key for deduplication and time-series tracking |
| `title` / `fullTrimName` | **100%** | Exact model year, make, model, and variant specification |
| `brand` / `model` / `year` | **100%** | Structured vehicle taxonomy for cohort and depreciation analysis |
| `priceInr` / `priceLakhs` | **100%** | Normalized numeric pricing in Indian Rupees and Lakhs |
| `mileageKm` | **100%** | Odometer reading in kilometers for wear-and-tear adjustment |
| `fuelType` / `transmission` | **~99%** | Powertrain segmentation (Petrol, Diesel, CNG, Electric; Manual vs. Automatic) |
| `dealerName` | **~95%+** (on dealer listings) | Dealership business name for B2B lead generation and lot sizing |
| `city` / `locality` / `state` | **100%** | Granular geographic attribution across Indian states and neighborhoods |
| `imageUrl` / `images` | **~99%** | High-resolution exterior and interior vehicle photo URLs |

***

### ⚠️ Limitations

- Direct dealer phone numbers require interactive lead-form submission on CarWale; however, `dealerName`, `locality`, `city`, and `state` are captured on ~95%+ of dealer listings.

***

### 📋 Changelog

#### v1.2 (2026-11)

- **Unlocked 1,000+ Deep Pagination**: Removed the 150-page ceiling; page loops now automatically traverse all available vehicle inventory across designated Indian cities.
- **Fast Prefill Execution**: Optimized prefill configuration to collect 60 vehicles in ~15–30 seconds.
- **Proxy Acceleration**: Implemented immediate proxy rotation on initial connections, eliminating direct connection timeout latencies.
- **Schema Standardization**: Set `maxItems` to `0` (unlimited auto-pagination) with `minimum: 0`.
- **Enhanced Data Quality**: Standardized multi-angle photo array extraction and normalized fuel/transmission specification tokens.

#### v1.0 (2026-11)

- Initial release of **CarWale Scraper**.
- Added 20-city dropdown, 15-brand filter, custom URL support, and automatic multi-page extraction of prices, specs, dealer names, and photo galleries.

# Actor input Schema

## `cities` (type: `array`):

Select one or more Indian cities to scrape used car listings from. Leave empty to scrape Mumbai and Delhi by default.

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

Filter by car manufacturer in the selected cities.

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

Optional. Paste full CarWale used-car search URLs with custom filters (e.g., https://www.carwale.com/used/cars-in-mumbai/).

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

Maximum number of vehicle listings to extract (~32 cars per page). Set to 0 for unlimited automated pagination governed by city availability.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Standard Apify Proxy works out of the box.

## Actor input object example

```json
{
  "cities": [
    "mumbai"
  ],
  "brand": "",
  "customUrls": [],
  "maxItems": 60,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

All scraped Indian used car listings, prices, specifications, and dealer profiles

## `datasetUi` (type: `string`):

Interactive table view in Apify Console

## `output` (type: `string`):

Execution summary and statistics

# 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 = {
    "cities": [
        "mumbai"
    ],
    "maxItems": 60,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/carwale-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 = {
    "cities": ["mumbai"],
    "maxItems": 60,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/carwale-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 '{
  "cities": [
    "mumbai"
  ],
  "maxItems": 60,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call haketa/carwale-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,haketa/carwale-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/FyYeT8EmPEqBfraXy/builds/KlNdhymz4RmLWoaQ9/openapi.json
