{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji Scraper - Canada Classifieds, Cars & Real Estate",
    "description": "Scrape Kijiji.ca, Canada's #1 classifieds. Cars, real estate, jobs & for-sale ads — real prices, MSRP & price ratings, full specs, all images, geo & descriptions, plus private/dealer seller leads. Filter by keyword, category, city & price. Monitor new ads & price drops. Export JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "qxZs86szkicUropi5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-kijiji-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapesage~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-kijiji-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapesage~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-kijiji-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search on Kijiji, e.g. <code>toyota rav4</code>, <code>2 bedroom apartment</code>, <code>iphone 15</code>, <code>sofa</code>. Each query is combined with the category, city and price filters below. Leave empty to browse purely by category, or use Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste any Kijiji.ca URL — a search/category page (<code>https://www.kijiji.ca/b-cars-trucks/city-of-toronto/c174l1700273</code>), an ad page (<code>.../v-cars-trucks/.../1738299781</code>) or a seller profile (<code>.../o-profile/.../1</code>). The most reliable way to scrape a specific city or sub-category with the exact filters you set on the site. Used in addition to search queries.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Ad (listing) URLs",
            "type": "array",
            "description": "Direct Kijiji ad URLs (<code>https://www.kijiji.ca/v-.../1738299781</code>) to scrape full detail for. Each is fetched as a complete listing-detail record (description, all specs, coordinates, views, seller).",
            "items": {
              "type": "string"
            }
          },
          "sellerUrls": {
            "title": "Seller profile URLs",
            "type": "array",
            "description": "Kijiji seller profile URLs (<code>https://www.kijiji.ca/o-profile/&lt;id&gt;/1</code>) to scrape that seller's listings (and, with seller leads on, a lead record).",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Limit results to a category (keyword searches need one to filter reliably; without it, keyword searches default to Buy &amp; Sell). Use a friendly name (<code>cars-trucks</code>, <code>cars-vehicles</code>, <code>real-estate</code>, <code>jobs</code>, <code>services</code>, <code>pets</code>, <code>buy-sell</code>, <code>community</code>, <code>vacation-rentals</code>) or a raw Kijiji code like <code>c174</code>. For sub-categories, use Start URLs."
          },
          "location": {
            "title": "City / location",
            "type": "string",
            "description": "Major Canadian metro to limit results to: <code>toronto</code>, <code>toronto-gta</code>, <code>montreal</code>, <code>vancouver</code>, <code>calgary</code>, <code>edmonton</code>, <code>ottawa</code>, <code>winnipeg</code>, <code>halifax</code>, <code>kitchener-waterloo</code>. Leave empty for all of Canada. For any other city, paste a Start URL from kijiji.ca for that city."
          },
          "minPrice": {
            "title": "Min price (CAD $)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or above this price, in Canadian dollars."
          },
          "maxPrice": {
            "title": "Max price (CAD $)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or below this price, in Canadian dollars."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Filter by who is selling. <b>Dealer / commercial</b> = professional sellers (car dealers, businesses — great for B2B lead-gen). <b>Private</b> = individuals only. <b>Any</b> = both.",
            "default": "any"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "any",
              "offer",
              "wanted"
            ],
            "type": "string",
            "description": "<b>Offers</b> = items/properties/jobs offered (the default). <b>Wanted</b> = ads from buyers looking for something. <b>Any</b> = both. (Applied on detail records.)",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "How to order results. Newest first is recommended for monitoring.",
            "default": "newest"
          },
          "includeListingDetails": {
            "title": "Include full ad details",
            "type": "boolean",
            "description": "For every listing, open its ad page and add the full description, every structured attribute (car/property specs, condition), the complete image gallery, exact coordinates, view count, status and the full seller profile. Charged as <code>listingDetail</code>. Slower but far richer.",
            "default": false
          },
          "includeSellerLeads": {
            "title": "Output seller leads",
            "type": "boolean",
            "description": "Also output one deduplicated lead record (type = \"sellerLead\") per unique seller behind the scraped ads — with name, private/dealer type, profile URL, active-listing count, location, rating, price range, sample listings, website/phone when available, and a 0-100 lead score. Opening ad pages is required, so this implies full ad details.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings to scrape across all queries. Kijiji has millions of ads — use category, city and price filters to focus.",
            "default": 80
          },
          "maxSellerLeads": {
            "title": "Max seller leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seller-lead records to emit (when seller leads are on).",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitoring mode — only new ads & price drops",
            "type": "boolean",
            "description": "Remember listing ids and prices across runs in a named key-value store and emit ONLY records that are new or whose price changed (a <code>monitorEvent</code> of <code>new</code>, <code>price_drop</code> or <code>price_rise</code> is added). Perfect for deal alerts and price-watching. Works alongside Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved search so different watches don't share state.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Residential proxies (Canada) are strongly recommended and used by default — Kijiji serves residential IPs reliably; datacenter IPs are blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "CA"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}