# Kijiji Canada Scraper — Cars, Rentals & Classifieds (`axery/kijiji-search-scraper`) Actor

Scrape Kijiji.ca classifieds, used cars, electronics, and apartments across Canada with numeric prices, locations, and high-res images.

- **URL**: https://apify.com/axery/kijiji-search-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Security:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Kijiji Canada Search Scraper

Turn Canada's #1 classifieds and automotive marketplace into structured, analysis-ready datasets. Search [Kijiji.ca](https://www.kijiji.ca) across second-hand electronics, used cars, auto parts, rentals, and real estate.

**Pure HTTP via server-rendered HTML extraction. No browser overhead. Fast, lightweight, and reliable.**

***

### ⚡ What makes this different

| | Raw Kijiji HTML | What this Actor gives you |
|---|---|---|
| **Price** | String with currency symbol (`$90.99`) | Clean float: `90.99` ready for aggregation and price tracking |
| **Images** | Low-res 60px thumbnail rules | Upgraded high-resolution CDN images (`kijijica-640-jpg`) |
| **Identifiers** | Embedded in URL path | Clean top-level `adId` for deduplication |
| **Location** | Nested city string | Standardized `location` string |

***

### 💼 What you can build with it

- **Second-hand Arbitrage & Deal Sourcing:** Monitor Canadian used phones, computers, GPUs, and winter gear.
- **Used Car Market Intelligence:** Track car asking prices across Ontario, Quebec, Alberta, and British Columbia.
- **Rental Price Index:** Monitor apartment rentals in Toronto, Vancouver, Montreal, and Calgary.

***

### 📥 Input Parameters

```json
{
  "queries": ["honda civic", "iphone 15"],
  "maxItems": 50
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | array | `["iphone"]` | One or more search keywords. |
| `maxItems` | integer | `50` | Maximum listings to extract per query. |

***

### 📤 Output Structure

Each listing in the dataset is a clean, typed JSON object:

```json
{
  "adId": "1612307520",
  "url": "https://www.kijiji.ca/v-cell-phone/city-of-toronto/iphone-16-15-14-13-12-11/1612307520",
  "title": "iPhone 16 15 14 13 12 11 X XS XR 8+ 8 7+ pro pro max 1YR War",
  "description": "Warranty included, all carriers unlocked...",
  "price": 90.99,
  "rawPrice": "$90.99",
  "currency": "CAD",
  "location": "City of Toronto",
  "imageUrl": "https://media.kijiji.ca/api/v1/ca-prod-statics/images/af/af8da40c-20c0-4f57-a490-29239886b699?rule=kijijica-640-jpg",
  "thumbnailUrl": "https://media.kijiji.ca/api/v1/ca-prod-statics/images/af/af8da40c-20c0-4f57-a490-29239886b699?rule=kijijica-60-jpg",
  "_query": "iphone"
}
```

# Actor input Schema

## `queries` (type: `array`):

Keywords to search across Kijiji Canada (e.g. 'honda civic', 'iphone 15', 'apartment').

## `query` (type: `string`):

Single search keyword as fallback.

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

Maximum number of listings to extract per query.

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

Optional proxy settings.

## Actor input object example

```json
{
  "queries": [
    "iphone"
  ],
  "maxItems": 50
}
```

# Actor output Schema

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

Dataset containing output records.

# 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 = {
    "queries": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/kijiji-search-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 = { "queries": ["iphone"] }

# Run the Actor and wait for it to finish
run = client.actor("axery/kijiji-search-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 '{
  "queries": [
    "iphone"
  ]
}' |
apify call axery/kijiji-search-scraper --silent --output-dataset

```

## MCP server setup

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