# CarAndBike India Used Car Scraper (`maximedupre/carandbike`) Actor

Collect public used-car listings from CarAndBike.com search, city or model pages, and individual listing pages. Get structured fields for each listing, including make, model, price, year, mileage, fuel type, transmission, seller, city, and image links.

- **URL**: https://apify.com/maximedupre/carandbike.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** E-commerce, Business, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.30 / 1,000 used cars

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

### 🚗 CarAndBike used-car listings for India

Car buyers, market researchers, and dealers can collect public used-car listings from CarAndBike.com. Each saved row keeps the vehicle details, asking price, mileage, seller, city, and image links in a structured dataset. Use the data to compare inventory, study prices, or build a sourcing list.

**Try these tasks**

- Collect [**Used Hyundai Cars**](https://apify.com/maximedupre/carandbike/examples/used-hyundai-cars) from a CarAndBike city or model page.
- Review [**Used Cars In Mumbai**](https://apify.com/maximedupre/carandbike/examples/used-cars-in-mumbai) to compare Mumbai listing rows.
- Review [**Used Cars In Delhi**](https://apify.com/maximedupre/carandbike/examples/used-cars-in-delhi) to compare Delhi listing rows.
- Export [**Used Car Listings**](https://apify.com/maximedupre/carandbike/examples/used-car-listings) as structured records for research.
- Read [**Used Cars For Sale**](https://apify.com/maximedupre/carandbike/examples/used-cars-for-sale) from the main used-car search page.

#### 📋 CarAndBike listing rows

Each dataset row represents one used-car listing. The row keeps the source listing ID and URL, vehicle fields such as make, model, year, mileage, fuel type, and transmission, plus price, seller, city, and image links when available. If the same source listing appears again through another submitted URL, the Actor keeps the first eligible match and ignores later matches.

#### ▶️ Run a CarAndBike page

**Steps**

1. Choose `Search page`, `City or model page`, or `Listing page` to match the page you want to read.
2. Add one or more public CarAndBike.com URLs that match the selected method.
3. Set `Maximum listings` when you want a cap. Leave it empty to return all available results until the source is exhausted.
4. Run the Actor and open the dataset to review the saved listing rows.

#### ⚙️ Input

Choose one discovery method for the URLs in a run. Search, city, and model pages can return many listings. A listing page returns one record. The first two fields are required, and `maxItems` is optional.

**Input fields**

| Field | Type | What it does |
|---|---|---|
| `discoveryMethod` | string | Chooses `searchPage`, `cityOrModelPage`, or `listingPage`. |
| `startUrls` | array of objects | Adds one or more public CarAndBike.com URLs that match the selected method. |
| `startUrls[].url` | string | Gives a public CarAndBike.com page URL for the selected method. |
| `maxItems` | integer | Sets an optional cap on saved listing records. Leave it empty to return all available results until the source is exhausted. |

**Example input**

This small example is copied from a successful current-beta listing-page run:

```json
{
  "discoveryMethod": "listingPage",
  "startUrls": [
    {
      "url": "https://www.carandbike.com/used/hyundai-creta-cars-in-new-delhi-135613"
    }
  ]
}
```

#### 🧾 Output

The Actor provides a link to the default dataset and saves one listing row for each first eligible source listing.

**Run output**

| Field | Type | What it does |
|---|---|---|
| `results` | string | Links to the extracted used-car listings in the default dataset overview. |

**Listing row fields**

| Field | Type | What it does |
|---|---|---|
| `listingId` | string | Stable identifier assigned to the listing by CarAndBike.com. |
| `listingUrl` | string | URL of the CarAndBike.com listing page. |
| `title` | string | Listing title shown on the source page. |
| `make` | string | Vehicle make shown on the listing. |
| `model` | string | Vehicle model shown on the listing. |
| `variant` | string | Vehicle variant or trim when available. |
| `bodyType` | string | Vehicle body type when available. |
| `price` | number | Asking price as a number in the currency field. |
| `currency` | string | Currency code for the asking price. |
| `year` | integer | Vehicle year reported on the listing. |
| `mileage` | integer | Vehicle mileage in kilometers when reported. |
| `fuelType` | string | Fuel type shown on the listing. |
| `transmission` | string | Transmission type shown on the listing. |
| `sellerName` | string | Seller name when available. |
| `city` | string | City shown for the listing or seller location. |
| `primaryImageUrl` | string | URL of the main vehicle image when available. |
| `galleryImageUrls` | array of strings | Other vehicle image URLs from the listing gallery when available. |

**Example listing row**

This unshortened row is copied from the successful current-beta listing-page run. Optional fields that the source did not provide are not present in this row.

```json
{
  "listingId": "135613",
  "listingUrl": "https://www.carandbike.com/used/hyundai-creta-cars-in-new-delhi-135613",
  "title": "2022 Hyundai Creta 1.5 EX Petrol [2020-2023]",
  "make": "Hyundai",
  "model": "Creta",
  "variant": "1.5 EX Petrol [2020-2023]",
  "bodyType": "SUV",
  "price": 1075000,
  "currency": "INR",
  "year": 2022,
  "mileage": 14000,
  "fuelType": "Petrol",
  "transmission": "Manual",
  "sellerName": "Sri Durga Automobiles/RTS Automobiles.",
  "city": "new delhi",
  "galleryImageUrls": []
}
```

#### 💳 Pricing

One `Used car` charge applies to each used-car listing saved to the dataset. A run with no saved listing has no used-car listing charge. Current tier prices are shown in the Store pricing panel.

#### 🔌 Integrations

Use the Apify API to start runs and read the default dataset. You can also export the saved rows from Apify.

https://www.youtube.com/watch?v=bNACk1\_S\_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Can I use a CarAndBike search page?

Yes. Choose `searchPage` and add a public CarAndBike.com search URL. The Actor saves listing rows from the results it can read.

##### Can I use a city or model page?

Yes. Choose `cityOrModelPage` and add a matching public CarAndBike.com city or model URL.

##### Can I submit a single listing page?

Yes. Choose `listingPage` and add a public listing URL. That page returns one listing record.

##### What happens when Maximum listings is empty?

The Actor returns all available results until the source is exhausted. The source can still provide fewer listings than expected.

##### Why is a listing saved only once?

The Actor saves the first eligible occurrence of a source listing and ignores later matches for that same listing. The saved row reflects the first match, not a combination of later matches.

##### Do I need a login or credentials?

No. The Actor reads publicly accessible CarAndBike.com pages and does not ask for buyer-supplied credentials.

##### Does the Actor value or recommend cars?

No. It extracts public listing data. It does not value vehicles, recommend purchases, arrange financing, or manage transactions.

### 📝 Changelog

**v0.0** (20-09-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~carandbike/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [Carsales.com.au Scraper](https://apify.com/maximedupre/carsales-scraper) - Compare Australian vehicle listings with prices, specs, sellers, locations, and images.
- [Autotrader Scraper](https://apify.com/maximedupre/autotrader-scraper) - Collect US car listings with prices, mileage, sellers, specs, and photos.
- [CarAndBike India Used Car Scraper](https://apify.com/rainminer/carandbike-scraper) - Collect used-car listings from CarAndBike.com for India-focused inventory research.
- [India Used Cars Listings Scraper](https://apify.com/neuton/india-used-cars-listings-scraper) - Compare Indian used-car listings from CarWale and CarDekho.
- [Cars24 Cars Scraper: India Used Car Listings](https://apify.com/getascraper/cars24-cars-scraper) - Collect India used-car prices, years, mileage, cities, makes, models, and image galleries.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

## `discoveryMethod` (type: `string`):

Choose how to find public used-car listings on CarAndBike.com.

## `startUrls` (type: `array`):

Add one or more public CarAndBike.com URLs that match the selected method. Search, city, and model pages can return many listings. A listing page returns one listing.

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

Set an optional cap on saved listing records. Leave it empty to return all available results until the source is exhausted.

## Actor input object example

```json
{
  "discoveryMethod": "searchPage",
  "startUrls": [
    {
      "url": "https://www.carandbike.com/used/cars-for-sale"
    }
  ],
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Open the extracted CarAndBike.com used-car listings.

# 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 = {
    "discoveryMethod": "searchPage",
    "startUrls": [
        {
            "url": "https://www.carandbike.com/used/cars-for-sale"
        }
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/carandbike").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 = {
    "discoveryMethod": "searchPage",
    "startUrls": [{ "url": "https://www.carandbike.com/used/cars-for-sale" }],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/carandbike").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 '{
  "discoveryMethod": "searchPage",
  "startUrls": [
    {
      "url": "https://www.carandbike.com/used/cars-for-sale"
    }
  ],
  "maxItems": 100
}' |
apify call maximedupre/carandbike --silent --output-dataset

```

## MCP server setup

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

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/m0swi79yRzWGhO7Kp/builds/xf4Ti9EEITkMdHZBL/openapi.json
