{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji Scraper & API - Canada Classifieds, Prices, Cars",
    "description": "Kijiji.ca scraper and API: search Canadian classifieds by keyword, category, province or city, or paste URLs; filter by price, condition, seller type and date. One row per ad: title, price, condition, city, posted time, photos, URL; car make / year / km. Scheduled new-ad alerts. $0.50 per 1,000.",
    "version": "1.0",
    "x-build-id": "b1u8TAbuVK3AMceOX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-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/rel8ble~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-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/rel8ble~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-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 keywords",
            "type": "array",
            "description": "Optional. What you would type into the Kijiji search box, one per line: \"bike\", \"iphone 13\", \"ps5\", \"couch\", \"honda civic\". Each keyword is one search (times each category and location). Leave empty to list a whole category or location instead (newest first).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (province, city or area)",
            "type": "array",
            "description": "Optional. Canadian provinces, cities or areas, one per line, as Kijiji names them: \"Ontario\" or \"ON\", \"BC\", \"Québec\", \"Toronto\", \"Greater Montréal\", \"Vancouver\", \"Calgary\", \"Ottawa\", \"Halifax\". A Kijiji location id (the number after \"l\" in a result URL, e.g. \"1700273\") also works. Several = one search per location. Unknown places are skipped with a warning. Empty = all of Canada.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional. Kijiji category names or ids, one per line: \"Bikes\" (644), \"Phones\" (132), \"Video Games & Consoles\" (141), \"Furniture\" (235), \"Cars & Trucks\" (174), \"Buy & Sell\" (10), \"Real Estate\" (34). The id is the number after \"c\" in a result URL. Several = one search per category. Empty = all categories.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Kijiji URLs",
            "type": "array",
            "description": "Optional. URLs copied from kijiji.ca, one per line: a search or category page (\"https://www.kijiji.ca/b-bikes/ontario/c644l9004\", \"https://www.kijiji.ca/b-city-of-toronto/iphone/k0l1700273\"), a later page (\".../page-3/...\") or a single ad (\"https://www.kijiji.ca/v-.../1745972537\"). Filters after \"?\" (price, sort, radius) are dropped because Kijiji's robots.txt bars them; use the filter fields below instead. Ad URLs are looked up with full details.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest asking price in Canadian dollars, e.g. 100. Ads without a price (\"Please contact\", swap / trade) are left out by any price filter. Empty = no minimum."
          },
          "priceMax": {
            "title": "Maximum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest asking price in Canadian dollars, e.g. 600. Empty = no maximum."
          },
          "priceTypes": {
            "title": "Price types",
            "type": "array",
            "description": "Optional. Keep only these price types, e.g. [\"free\"] for free stuff. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "fixed",
                "contact",
                "free",
                "swap_trade"
              ],
              "enumTitles": [
                "Fixed price",
                "Please contact",
                "Free",
                "Swap / trade"
              ]
            }
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Optional. Keep only ads where the seller set one of these conditions. Many ads have no condition; they are left out when this is set. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "used_good",
                "used_fair",
                "used_poor",
                "damaged",
                "refurbished"
              ],
              "enumTitles": [
                "New",
                "Used - like new",
                "Used - good",
                "Used - fair",
                "Used - poor",
                "Damaged / for parts",
                "Refurbished"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Optional. \"any\" (default), \"private\" (for sale by owner) or \"business\" (dealers and commercial posters).",
            "default": "any"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only ads posted today (0), today or yesterday (1), or within N days (Toronto time). Category / location listings are newest first, so reading stops at the first page of older ads. Empty = any date."
          },
          "mustInclude": {
            "title": "Title must contain",
            "type": "array",
            "description": "Optional. Keep only ads whose title or description start contain all words of one of these lines (case and accents ignored), e.g. \"pro max\" or \"256gb\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Optional. Drop ads whose title or description start contain all words of any of these lines, e.g. \"wanted\", \"case\", \"broken\".",
            "items": {
              "type": "string"
            }
          },
          "skipTopAds": {
            "title": "Skip top ads",
            "type": "boolean",
            "description": "Optional boolean, default false. true = leave out the paid top ads Kijiji pins above each results page.",
            "default": false
          },
          "maxItems": {
            "title": "Max ads per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Maximum ads saved per search (one keyword x category x location, or one URL), integer >= 0. Default 100; 0 = every ad within maxPagesPerSearch. You pay per ad saved ($0.0005 each), so 1,000 ads = $0.50.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional. Result pages read per search (40 ads each, plus top ads). Default 100 = up to 4,000 ads per search. Filtered-out ads are free; this caps reading time when filters are strict.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include ad details (slower)",
            "type": "boolean",
            "description": "Optional boolean. false (default) = data from the result pages: title, description start, price, price type, condition, seller type, attributes (incl. make / model / year / km for vehicles), city, province, postal prefix, posted time, top-ad flag, poster id and rating, category, up to 5 photos, URL; 40 ads per request. true = also open each ad for the full description (phone numbers and e-mails masked), offer / wanted, status, expiry date, view count, readable attribute labels and all photos. Same price per ad, 1 extra request per ad.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional, advanced. Parallel requests, integer 1-10. Default 3; requests are also paced to stay polite. Leave unset.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Apify Proxy settings object. Default {\"useApifyProxy\": true} (datacenter proxy). Leave unset.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}