# Kijiji Scraper (`caprolok/kijiji-scraper`) Actor

The Kijiji Scraper extracts listings, prices, seller details, and product descriptions from Kijiji. Ideal for market research, competitor analysis, or price comparisons, it automates data collection, providing structured, real-time data for informed business and purchasing decisions.

- **URL**: https://apify.com/caprolok/kijiji-scraper.md
- **Developed by:** [Caprolok](https://apify.com/caprolok) (community)
- **Categories:** Lead generation, Travel, SEO tools
- **Stats:** 46 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$15.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/actors/running/actors-in-store.md#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

## 🛒 Kijiji Scraper

The **Kijiji Scraper** is designed to extract detailed listings, including titles, prices, descriptions, and other key data points from Kijiji. This scraper is ideal for buyers, sellers, market researchers, and anyone looking to analyze Kijiji listings based on search criteria such as category, location, and price filters.

### 🚀 Features

- **Comprehensive Data Extraction**: Extracts detailed listing information such as titles, prices, descriptions, and more.
- **Customizable Search**: Allows you to search Kijiji listings based on keywords, category, and location.
- **Scalability**: Scrapes a maximum number of listings at once.
- **Pagination Support**: Automatically handles pagination to scrape multiple pages of listings.

### 🔍 Scraped Data

The scraper extracts a wide range of data points from Kijiji listings, including:

- **Title**: Title of the listing.
- **Price**: Price of the item or service.
- **Location**: City/Area where the listing is located.
- **Description**: Detailed description of the listing.
- **Images**: URLs of images associated with the listing.
- **Category**: Category of the listed item.
- **Posted Date**: Date when the listing was posted.
- **Seller Information**: Name or contact information of the seller.
- **Vehicle-specific Information**: For car listings, includes additional details like model, year, brand, color, and body type.

### 📋 Input Parameters

| Field           | Description                                               | Example Input                 |
| --------------- | --------------------------------------------------------- | ----------------------------- |
| **startUrls**   | Array of Kijiji URLs to scrape listings from              | `["https://www.kijiji.ca/"]`  |
| **query**       | Keywords for the item or service you're searching for     | `"laptops, cars, apartments"` |
| **category**    | The category to narrow the search (e.g., Cars & Vehicles) | `"Cars & Vehicles"`           |
| **location**    | Specify the city, state, or area for the Kijiji search    | `"Toronto, Ontario, Canada"`  |
| **max\_results** | Maximum number of listings to scrape                      | `100`                         |

### 📊 Sample Input

```json
{
  "startUrls": ["https://www.kijiji.ca/"],
  "query": "laptops, cars, apartments",
  "category": "Cars & Vehicles",
  "location": "Toronto, Ontario, Canada",
  "max_results": 100
}
```

### 📊 Output Format

The scraper returns a structured dataset with the following fields for each Kijiji listing:

| Field                        | Description                                       |
| ---------------------------- | ------------------------------------------------- |
| **listing\_id**               | Unique identifier for the listing on Kijiji       |
| **title**                    | Title of the listing                              |
| **description**              | Description of the listed item                    |
| **price**                    | Price of the item in the specified currency       |
| **location**                 | Geographic location of the listing                |
| **posted\_date**              | Date when the listing was posted                  |
| **category**                 | Category of the listed item                       |
| **url**                      | Direct URL to the Kijiji listing                  |
| **seller\_name**              | Name of the seller or entity offering the product |
| **images**                   | Array of URLs to the images of the listed item    |
| **car\_title**                | Title of the car (for vehicle listings)           |
| **date\_posted**              | Date the listing was posted                       |
| **vehicle\_model\_date\_year**  | Year of the vehicle model                         |
| **vehicle\_brand**            | Brand of the vehicle                              |
| **vehicle\_model**            | Model of the vehicle                              |
| **vehicle\_configuration**    | Configuration details of the vehicle              |
| **vehicle\_color**            | Color of the vehicle                              |
| **body\_type**                | Body type of the vehicle                          |
| **vehicle\_overview\_details** | Array of additional vehicle details               |
| **vehicle\_description**      | Detailed description of the vehicle               |

#### Example Output

```json
{
  "car_title": "2015 Honda Civic",
  "date_posted": "2024-09-24",
  "vehicle_model_date_year": "2015",
  "vehicle_brand": "Honda",
  "vehicle_model": "Civic",
  "vehicle_configuration": "LX Sedan",
  "vehicle_color": "Silver",
  "body_type": "Sedan",
  "vehicle_overview_details": [
    "Automatic transmission",
    "4-cylinder engine",
    "Front-wheel drive",
    "100,000 km"
  ],
  "vehicle_description": "Well-maintained 2015 Honda Civic LX Sedan for sale...",
  "price": "$15,000",
  "location": "Toronto, Ontario",
  "images": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg"
  ],
  "url": "https://www.kijiji.ca/item123457"
}
```

### 🛠️ Customizable Scraping Options

- **Location**: Input specific cities or areas for targeted searches.
- **Search Terms**: Customize the search terms to refine the results.
- **Category**: Select the category to narrow down the search.
- **Pagination**: Automatically handles pagination to scrape all available listings.

### 📊 Use Cases

- **Market Research**: Gather data for market research on product availability and pricing.
- **Competitor Analysis**: Analyze competitors' offerings in specific categories.
- **Investment Analysis**: Evaluate listings for potential investment opportunities.
- **Personal Shopping**: Compare and analyze listings for personal purchases.
- **Automotive Market Analysis**: Detailed insights into vehicle listings, including specifications and pricing trends.

### 🆘 Support

If you encounter any issues or need assistance with the Kijiji Scraper, feel free to reach out via the Issues tab on the actor's page. Our support team is here to assist with any concerns or questions you may have.

### 📄 Summary of Key Sections

- **Features and Scraped Data:** Aligned with Kijiji’s offerings.
- **Input Parameters:** Clearly defined to match your Kijiji input schema.
- **Output Format:** Described in a table format for clarity.
- **Performance, Customizable Options, and Use Cases:** Focused on practical applications of the scraper.

# Actor input Schema

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

Enter a valid URL to scrape.

## `max_results` (type: `integer`):

Specify the maximum number of results to scrape.

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

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.kijiji.ca/b-cars-trucks/canada/new__used/c174l0a49"
  ],
  "max_results": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        "https://www.kijiji.ca/b-cars-trucks/canada/new__used/c174l0a49"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/kijiji-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 = {
    "startUrls": ["https://www.kijiji.ca/b-cars-trucks/canada/new__used/c174l0a49"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("caprolok/kijiji-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 '{
  "startUrls": [
    "https://www.kijiji.ca/b-cars-trucks/canada/new__used/c174l0a49"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call caprolok/kijiji-scraper --silent --output-dataset

```

## MCP server setup

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