# PakWheels Scraper - Used Cars, PKR Prices and Specs (`scrapewise/pakwheels-scraper`) Actor

Scrape PakWheels used-car listings from Pakistan: brand, model, year, km, engine, transmission, fuel, city, PKR price and the ad link. Seller names, phone numbers and profiles are never exported. Schedule it for daily price tracking.

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

## Pricing

from $1.00 / 1,000 vehicle listing delivereds

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

## PakWheels Scraper - Used Cars, PKR Prices and Specs

PakWheels Scraper collects **used car listings from PakWheels** (pakwheels.com), the car marketplace in Pakistan. Give it a city, or paste listing links from the site, and each car comes back as one clean row: brand, model, year, kilometres driven, engine size, fuel, transmission, city, price in PKR and the link to the ad.

Only the vehicle is exported. Seller names, phone numbers, profile links and seller reviews are not in the output.

***

### At a glance

| Item | Value |
|---|---|
| Price | US$ 1.00 per 1,000 vehicle listings delivered, plus US$ 0.005 per run start |
| Error rows | Free (errors, duplicates and listings already delivered before a restart are never charged) |
| Input | City (default `karachi`) or PakWheels listing links, and a maximum number of vehicles |
| Output | One row per listing: brand, model, year, km, engine cc, fuel, transmission, city, PKR price, ad link |
| Login | Not needed. Public listing pages only |

***

### Quick start

Run it with the default input and a small limit to see the output:

```json
{
  "city": "karachi",
  "maxItems": 50
}
```

Use the **Start** button in the Apify Console, or call the Actor from the API, the Apify CLI or any integration.

***

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `city` | string | `karachi` | City as it appears in the PakWheels used-car address, for example `karachi`. Used when no listing links are given. |
| `startUrls` | array of strings | empty | Optional PakWheels used-car listing links copied from the address bar (a make or city page under `pakwheels.com/used-cars`). Each link is paginated. When set, `city` is not used. |
| `maxItems` | integer | `50` | Maximum number of vehicle listings to deliver in the run. Each one is charged once. |
| `proxyConfiguration` | object | Apify Proxy on | Proxy settings. The default works for most runs. |

Example with listing links:

```json
{
  "startUrls": [
    "https://www.pakwheels.com/used-cars/search/-/ct_karachi/"
  ],
  "maxItems": 200
}
```

***

### Output fields

Every vehicle row has these fields. Values come from the listing as the site shows it. A field the site does not show for a given ad is returned as `null`.

| Field | Example | Notes |
|---|---|---|
| `type` | `vehicle` | Always `vehicle` for listing rows. Error rows use `error`. |
| `adId` | `12129695` | The PakWheels ad number. Unique per listing. |
| `title` | `Toyota Corolla Cross 2024 1.8 HEV X` | The ad title, as published. |
| `brand` | `Toyota` | Manufacturer. |
| `model` | `Corolla Cross` | Model name without brand and year. |
| `year` | `2024` | Model year. |
| `mileageKm` | `24248` | Kilometres driven, as a number. |
| `engineCc` | `1800` | Engine displacement in cc. |
| `fuelType` | `Hybrid` | Petrol, Diesel, Hybrid, CNG and the other fuel types the site lists. |
| `transmission` | `Automatic` | Automatic or Manual. |
| `city` | `Karachi` | City where the car is listed. |
| `pricePkr` | `8700000` | Asking price in Pakistani rupees (PKR), as a number. |
| `priceCurrency` | `PKR` | Always PKR. |
| `url` | `https://www.pakwheels.com/used-cars/toyota-corolla-cross-2024-for-sale-in-karachi-12129695` | Link to the ad on PakWheels. |
| `searchUrl` | `https://www.pakwheels.com/used-cars/search/-/ct_karachi/` | The listing page the row came from. |
| `scrapedAt` | `2026-11-09T12:09:36Z` | When the row was collected. |
| `errorCode` | `null` | Empty for vehicle rows. |
| `error` | `null` | Empty for vehicle rows. |

Fields that are not in the output on purpose: seller name, seller phone, seller profile, seller reviews and any contact text in the ad.

***

### Example output

Two rows from a real Karachi listing page (the first two cars in the list, as collected on 9 November 2026):

```json
[
  {
    "type": "vehicle",
    "adId": "12129695",
    "title": "Toyota Corolla Cross 2024 1.8 HEV X",
    "brand": "Toyota",
    "model": "Corolla Cross",
    "year": 2024,
    "mileageKm": 24248,
    "engineCc": 1800,
    "fuelType": "Hybrid",
    "transmission": "Automatic",
    "city": "Karachi",
    "pricePkr": 8700000,
    "priceCurrency": "PKR",
    "url": "https://www.pakwheels.com/used-cars/toyota-corolla-cross-2024-for-sale-in-karachi-12129695",
    "searchUrl": "https://www.pakwheels.com/used-cars/search/-/ct_karachi/",
    "errorCode": null,
    "error": null
  },
  {
    "type": "vehicle",
    "adId": "12229413",
    "title": "Nissan Dayz 2017 Highway Star G",
    "brand": "Nissan",
    "model": "Dayz",
    "year": 2017,
    "mileageKm": 49000,
    "engineCc": 660,
    "fuelType": "Petrol",
    "transmission": "Automatic",
    "city": "Karachi",
    "pricePkr": 2800000,
    "priceCurrency": "PKR",
    "url": "https://www.pakwheels.com/used-cars/nissan-dayz-2017-for-sale-in-karachi-12229413",
    "searchUrl": "https://www.pakwheels.com/used-cars/search/-/ct_karachi/",
    "errorCode": null,
    "error": null
  }
]
```

***

### Errors

Errors come back as rows with `type` set to `error`, an `errorCode` and a message. Error rows are free.

| errorCode | When | What to do |
|---|---|---|
| `INVALID_INPUT` | The city is not a valid slug (letters and hyphens only). | Use a slug such as `karachi`. |
| `INVALID_URL` | A listing link is not from `pakwheels.com/used-cars`. | Copy the link from the address bar of a used-car listing page. |
| `NO_RESULTS` | The listing address has no cars. | Check the city slug or the link. |
| `BLOCKED` | PakWheels refused every attempt for that listing. | Run it again in a few minutes. |
| `UNEXPECTED` | An unexpected error. The run ends with what was already delivered. | Run it again. |

***

### Integrations, scheduling and AI agents

- **Schedules.** Run it daily or hourly in the Apify Console to track asking prices by city. Each run is charged only for listings it delivers.
- **Export.** Download the dataset as JSON, CSV, Excel or XML from the run's storage tab, or through the dataset API.
- **Make, n8n and Zapier.** Connect the dataset to a spreadsheet, a database or a messaging tool with the Apify app for each platform.
- **Apify MCP server.** AI agents can call the Actor and read its results through the Apify MCP server.
- **Webhooks.** Send a notification when a run finishes, then read the new rows from the dataset.

***

### FAQ

**Which cities work?**
The city field takes the slug from the PakWheels used-car address. Karachi is the city this version was tested on.

**Can I search by make or model?**
Paste the make or model listing link from pakwheels.com into `startUrls`. Each link is paginated up to the `maxItems` limit.

**Do I get seller details?**
No. Seller names, phone numbers, profile links and reviews are not in the output.

**Are prices in PKR?**
Yes. `pricePkr` is the asking price in Pakistani rupees, as a number. Convert it with your own exchange rate.

**What does one run cost?**
US$ 0.001 for each vehicle delivered, plus US$ 0.005 for the start. A run of 100 vehicles costs about US$ 0.105.

**Why are some fields null?**
A field the ad does not show is returned as `null`, not invented. Mileage, engine size and transmission are usually present.

**Can I get the same car twice?**
No. Each ad number is delivered once per run, even when several listing links overlap.

**What happens if the run stops halfway?**
Every vehicle already delivered stays in the dataset and is charged once. A run that restarts does not charge or deliver those again.

***

### Limitations

- The Actor reads public listing pages only. It does not log in and does not read messages or contact details.
- Listing order and availability follow the site at the time of the run. A car sold between two runs can disappear from the list.
- The Actor delivers the listing fields shown on the search results page. Photos, full ad descriptions and seller-written text are not in this version.
- The results depend on what the site shows. A field left empty on the site is `null` in the output.
- PakWheels can slow down or refuse requests at busy times. Error rows tell you when that happens.

***

### Changelog

**9 Nov 2026 - 0.1**

- First version. City and listing-link input, paginated results, vehicle fields in English, PKR price, ad link, free error rows, and no seller data in the output.

# Actor input Schema

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

City as it appears in the PakWheels used-car address, for example karachi (the tested one). Used when no listing links are given.

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

Optional: PakWheels used-car listing links copied from the address bar (for example a make or city page under pakwheels.com/used-cars). Each link is paginated. When set, the City field is not used.

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

Maximum number of vehicle listings to deliver in this run (each one is charged once).

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

Apify Proxy is used by default.

## Actor input object example

```json
{
  "city": "karachi",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

# 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": "karachi",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/pakwheels-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": "karachi",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/pakwheels-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": "karachi",
  "maxItems": 50
}' |
apify call scrapewise/pakwheels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/pakwheels-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/DtafhzqytkjR00HlG/builds/1qzmavc2YmIzc6ePn/openapi.json
