# Pakwheels Scraper (`voyn/pakwheels-scraper`) Actor

The Pakwheels Scraper lets you easily extract used car listings from Pakwheels.com whether you’re a car dealer, market analyst, or hobbyist, this scraper helps you collect structured data about vehicles directly into an Apify dataset.

- **URL**: https://apify.com/voyn/pakwheels-scraper.md
- **Developed by:** [Voyn Software](https://apify.com/voyn) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 20 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

##### PakWheels Scraper

Easily extract **used car listings from [PakWheels](https://www.pakwheels.com/)** into structured datasets.\
This **PakWheels Scraper** collects all available vehicle details from list pages, and optionally visits each car’s detail page for richer data.\
Results can be downloaded in **CSV, Excel, JSON, or accessed via API** — perfect for **car dealers, exporters, investors, and market analysts** who need up-to-date insights from Pakistan’s largest automotive marketplace.

##### Who Is This For?

- **Car dealers & flippers** → Track new listings daily and find undervalued vehicles.
- **Exporters** → Collect Pakistani car data for shipping and resale opportunities.
- **Market analysts** → Monitor prices, trends, and supply by city or body type.
- **Data scientists** → Build car valuation or prediction models using structured datasets.

##### How It Works

1. Provide one or more **PakWheels list URLs** (e.g., `https://www.pakwheels.com/used-cars/search/-/` or city-based listings).
2. Choose **Scrape Mode**:
   - **LIST\_ONLY** → faster, collects data directly from list pages.
   - **LIST\_AND\_DETAIL** → slower, visits each listing for enriched details.
3. Set **Max Items** to limit total results across all pages.
4. Run the scraper — data is saved automatically to the Apify dataset, ready to download.

##### Scraped Car Data Will Include:

- Title & Ad Link
- Year, Make, Model, Trim
- Price (PKR) & Currency info
- Mileage (km)
- Fuel type & Engine CC
- Transmission
- Color
- Body type
- City / Location
- Description (short & long)
- Thumbnail & All image URLs
- VIN / ID (if available)
- Specs (parsed from detail pages when enabled)

##### Output Formats

- **CSV / Excel** → for dealers & analysts
- **JSON / NDJSON** → for developers
- **API** → connect to Google Sheets, Zapier, Make.com, BI dashboards

***

### Example Scraped Data

The scraper outputs an array of car data objects. Example:

```json
{
  "id": "10614223",
  "source": "pakwheels",
  "url_list_page": "https://www.pakwheels.com/used-cars/search/-/",
  "title": "Hyundai Tucson 2022 for sale in Faisalabad",
  "detail_url": "https://www.pakwheels.com/used-cars/hyundai-tucson-2022-for-sale-in-faisalabad-10600383",
  "city": "Faisalabad",
  "thumbnail": "https://cache2.pakwheels.com/ad_pictures/1298/tn_hyundai-tucson-awd-a-t-ultimate-2023-129821747.webp",
  "make": "Hyundai",
  "year": 2022,
  "fuel": "Petrol",
  "transmission": "Automatic",
  "description": "Hyundai Tucson 2022 for sale in Faisalabad",
  "image": "https://cache4.pakwheels.com/ad_pictures/1296/hyundai-tucson-fwd-a-t-gls-sport-2022-129604720.jpg",
  "engine_cc": 2000,
  "mileage_km": 41000,
  "price": 7400000,
  "price_currency": "PKR",
  "model": "Tucson",
  "color": "Black",
  "body_type": "SUV"
}
```

##### Why Choose This Actor?

✔ Automatically paginates through PakWheels search results
✔ Works with multiple list URLs & filters
✔ Two scrape modes for speed vs. detail
✔ Clean, structured datasets for business or technical use
✔ Scales from 100 to 10,000+ listings

👉 Run this PakWheels Scraper today and start extracting fresh car listings from Pakistan’s largest automotive marketplace — ready to use in CSV, Excel, JSON, or API.

# Actor input Schema

## `listUrls` (type: `array`):

One or more PakWheels list URLs, e.g. https://www.pakwheels.com/used-cars/search/-/ or https://www.pakwheels.com/used-cars/lahore/24858

## `scrapeMode` (type: `string`):

Scrape only list pages or also open each car detail page to collect full JSON.

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

Maximum number of cars to scrape. 0 = unlimited.

## `proxyMode` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "listUrls": [
    "https://www.pakwheels.com/used-cars/search/-/"
  ],
  "scrapeMode": "LIST_AND_DETAIL",
  "maxItems": 10,
  "proxyMode": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "listUrls": [
        "https://www.pakwheels.com/used-cars/search/-/"
    ],
    "scrapeMode": "LIST_AND_DETAIL",
    "maxItems": 10,
    "proxyMode": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyn/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 = {
    "listUrls": ["https://www.pakwheels.com/used-cars/search/-/"],
    "scrapeMode": "LIST_AND_DETAIL",
    "maxItems": 10,
    "proxyMode": { "useApifyProxy": False },
}

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

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

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

```

## CLI example

```bash
echo '{
  "listUrls": [
    "https://www.pakwheels.com/used-cars/search/-/"
  ],
  "scrapeMode": "LIST_AND_DETAIL",
  "maxItems": 10,
  "proxyMode": {
    "useApifyProxy": false
  }
}' |
apify call voyn/pakwheels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=voyn/pakwheels-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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