# PakWheels Scraper — Pakistan Used Car Listings (`noahadler/pakwheels-scraper`) Actor

Scrape PakWheels used cars in Pakistan: title, price PKR, year, km, fuel, gearbox, make, city and listing URL from search JSON-LD. Optional URL status ACTIVE/SOLD/DELISTED. No seller phones. PPE per listing.

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

## Pricing

from $2.00 / 1,000 car listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 — Pakistan Used Car Listings

**PakWheels.com** scraper for **Pakistan used cars**: title, price PKR, year, mileage km, fuel, transmission, make, city, and detail URL — one Dataset row per listing. Optional re-check of listing URLs (`ACTIVE` / `SOLD` / `DELISTED`).

Built for **dealers**, **pricing intel**, and PPE exports. HTTP + Chrome TLS fingerprint + JSON-LD `Product` on search cards. **No Playwright. No seller phone numbers.**

> Search pages embed schema.org Product JSON-LD (~25 ads/page). **Leave proxy off first** (Apify smoke 2026-09-29: platform IP 200, RESIDENTIAL PK 403). Enable another proxy group only if you start seeing 403.

**Keywords:** pakwheels scraper, pakwheels used cars, pakistan used car listings api

***

### What this Actor does

| Step | Action |
|------|--------|
| 1 | Accept `city` / `make` / `model` and/or `searchUrl`, plus `maxItems` |
| 2 | Build `/used-cars/search/-/ct_{city}/` or `/used-cars/{make}-{model}/` |
| 3 | `GET` with `curl_cffi` (`chrome124`) |
| 4 | Parse search cards + JSON-LD Product |
| 5 | Optional: `listingUrls` status only (never `seller_contact_info`) |

***

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `city` | Cond. | e.g. `karachi`, `lahore` |
| `make` / `model` | No | Brand and model slugs |
| `searchUrl` | Cond. | Full PakWheels used-cars search URL |
| `maxItems` | No | Cap (default 40, max 200) |
| `listingUrls` | No | Detail URLs for ACTIVE/SOLD/DELISTED |
| `proxyConfiguration` | No | Default **off**. PK residential returned 403 in smoke |

#### Example

```json
{
  "city": "karachi",
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### Output example

```json
{
  "listingId": "12066500",
  "title": "Toyota Corolla Cross 2024 for sale in Karachi",
  "price": 8350000,
  "currency": "PKR",
  "year": 2024,
  "mileageKm": 27000,
  "fuel": "Hybrid",
  "transmission": "Automatic",
  "engineDisplacement": "1800cc",
  "make": "Toyota",
  "location": "Karachi",
  "detailUrl": "https://www.pakwheels.com/used-cars/toyota-corolla-cross-2024-for-sale-in-karachi-12066500",
  "imageUrl": "https://cache3.pakwheels.com/ad_pictures/1524/toyota-corolla-cross-1-8-hev-x-2024-152475976.jpg",
  "isFeatured": true,
  "managedByPakWheels": false,
  "listingStatus": "ACTIVE",
  "query": "karachi",
  "scrapedAt": "2026-09-29T12:00:00Z",
  "error": false,
  "errorMessage": null
}
```

This Actor does **not** return seller phone numbers (PakWheels contact endpoints are out of scope).

***

### Pricing

Pay per event: Actor start + **Car listing** per Dataset row.

***

### Legal

Public listing data from PakWheels search pages. Users must comply with PakWheels terms. Not affiliated with PakWheels (Pvt) Ltd.

# Actor input Schema

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

PakWheels city slug (karachi, lahore, islamabad, rawalpindi). Used when searchUrl is empty.

## `make` (type: `string`):

Brand as on PakWheels (toyota, honda, suzuki).

## `model` (type: `string`):

Model (corolla, civic). Best with Make.

## `searchUrl` (type: `string`):

Full www.pakwheels.com /used-cars/ search URL. Overrides city/make/model when set.

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

Maximum used-car ads to collect (1–200). ~25 ads per search page.

## `listingUrls` (type: `array`):

PakWheels used-car detail URLs you already have. Returns ACTIVE, SOLD or DELISTED. Does not extract phones.

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

Optional. Direct Apify IPs worked in smoke (HTTP 200). Apify RESIDENTIAL + PK returned 403. If useApifyProxy is on and country is empty, PK is injected.

## Actor input object example

```json
{
  "city": "karachi",
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `listings` (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"
};

// Run the Actor and wait for it to finish
const run = await client.actor("noahadler/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" }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,noahadler/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/33pgmgbeSMhULd5uR/builds/4vnO9fj5FlGMTscYf/openapi.json
