# Kijiji.ca Scraper (`smartspidering/kijiji-ca-scraper`) Actor

Scrape and extract kijiji.ca products data.

- **URL**: https://apify.com/smartspidering/kijiji-ca-scraper.md
- **Developed by:** [Smart Spidering](https://apify.com/smartspidering) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 134 total users, 1 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

[![Video Title](https://img.youtube.com/vi/VS8MrXCsC0E/0.jpg)](https://www.youtube.com/watch?v=VS8MrXCsC0E)

### What does Kijiji.ca Scraper do?

Using this tool, you can extract a list of all products from kijiji.ca site in a structured form, including product title, price, description, image urls etc. Download your data as JSON

### Input Parameters

This actor will need only two settings from you - a link and a proxy(optional):

- **startUrls** (required): List of Request objects, specifying the search queries you want to scrape. The URL can be any product listing page on kijiji.ca.

- **proxyConfiguration** (optional): To avoid getting blocked, it is recommended to use Proxy servers, either your own proxy servers or[ Apify Proxy](https://www.apify.com/docs/proxy " Apify Proxy").
  The default value is` { "useApifyProxy": false }`

### Output Example

The structure of each item in kijiji products looks like this:

```json
{
"pid": "1661103367", 
"url": "https://www.kijiji.ca/v-tvs/edmonton/aerials-cables-adapters-for-monitors-and-smart-lcd-or-old-tvs/1661103367", 
"title": "Aerials, Cables, Adapters for Monitors and Smart, LCD or Old TVs", 
"price": "$4.98", 
"category": ["Home", "Buy & Sell", "TVs & Video", "TVs in Edmonton"],
"description": ["Tiny Store - BIG SELECTION and NO GST. ➤ Shop in person only for Great Deals. Please read the Ad and see all the pictures for details. Ad's up they're available★Kijiji is Not monitored 1) Queen Mary's Market 12011-120 St., Edm., NW. Visit Section \"K\" beside the \"Elvis Booth\". See the Map and use Rear Entrance 5. We stock Cables and Accessories for: Blu-Ray, DVD, VHS, Home Phone, Cell Phone, Cassette Tape, CD, Desktops, Laptops, Lamps and more, plus Universal Power. 2) Free Over-the-Air HDTV - better than Cable. This Aerial is perfect for use in a RV, Camper or small room. It delivers a high quality progressive scan picture from a HD source up to 1080p. It is great for a Kitchen, Camper, Cottage, Bedroom, or Trailer. This flat-panel delivers a sharp, crisp picture, and great reception of DTV digital TV signals, for only $12. 3) A/ V Cables for use with TVs from 4.98 ◆ 3.5mm AUX cord 4.98 ◆VGA Cable from $8 ◆ HDMI Cables from 9.98 b) See picture number ( 3 ) for TV connections c) 3.5mm to RCA Red-White-Yellow 9.98 each. ◆ Composite Video + Audio Red & White 4.98 ◆ S-Video Cables 2.00 each Also Available - not pictured ◆ DVI >HDMI Adapter 4.98◆ HDMI Dongle $2 ◆ Coaxial TV Cable or Monster Component Video cable 9.98 4) Mix / Match 3 items Reg. to $8 each for $20 AV Cables and Adapters use for Game Console, DVR, VCR, Media Player, and more from $5 ea. RCA Audio Left and Right ( White and Red ) $5 ◆ Coaxial Digital Audio Cable from 4.98 each. ◆ Philips Optical Audio Cable 9.98 each. 5) R-G-B Video Cord $8, TV Cable Union $2 ea. b) DVI to HDMI Adapter Cable $18 c) RCA and 3.5mm Adapters 2.98 each◆3.5mm AUX extension 7.99 ◆ D-Type Power Cable $5 See my other Ads: kijiji.ca/o-posters-other-ads/77823634"], 
"address": "Edmonton, AB T5J 2Y7",
"member_since": "October 06 2012", 
"seller_name": "HouseCalls Computer Service", 
"image_urls": [
"https://media.kijiji.ca/api/v1/ca-prod-fsbo-ads/images/dd/dd702ae4-3bf8-46c8-83be-c5e891c64666?rule=kijijica-960-jpg", 
"https://media.kijiji.ca/api/v1/ca-prod-fsbo-ads/images/d3/d378bbd1-7d87-4ce7-9bed-05fc1d164d70?rule=kijijica-960-jpg", 
"https://media.kijiji.ca/api/v1/ca-prod-fsbo-ads/images/f9/f996aaa6-8fc3-4742-bf87-f36dd6434944?rule=kijijica-960-jpg", 
"https://media.kijiji.ca/api/v1/ca-prod-fsbo-ads/images/20/202c446f-4371-4ef1-829c-73d7aaa12b0f?rule=kijijica-960-jpg", 
"https://media.kijiji.ca/api/v1/ca-prod-fsbo-ads/images/0d/0dbf5ccf-2e03-4aee-98b6-23adfd7d3d3a?rule=kijijica-960-jpg"
]
}
```

### Using Kijiji Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the [Apify API reference](https://docs.apify.com/api/v2 "Apify API reference") docs for full details.

### Giving feedback

If you have any feature requests or bug reports, please create an issue on the [Issues page](https://console.apify.com/actors/orYGSTMbDkQRxiOVd/issues "Issues page").

# Actor input Schema

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

URLs to start with

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.kijiji.ca/b-achat-et-vente/rimouski-bas-st-laurent/c10l1700250"
    }
  ],
  "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": [
        {
            "url": "https://www.kijiji.ca/b-achat-et-vente/rimouski-bas-st-laurent/c10l1700250"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("smartspidering/kijiji-ca-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": [{ "url": "https://www.kijiji.ca/b-achat-et-vente/rimouski-bas-st-laurent/c10l1700250" }],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("smartspidering/kijiji-ca-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": [
    {
      "url": "https://www.kijiji.ca/b-achat-et-vente/rimouski-bas-st-laurent/c10l1700250"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call smartspidering/kijiji-ca-scraper --silent --output-dataset

```

## MCP server setup

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