{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji API & Scraper: Export Canadian Ads, Prices & Sellers",
    "description": "Scrape Kijiji (kijiji.ca) without login: cars, rentals, real estate, jobs, pets and buy & sell ads by keyword, category, city, price or search URL. Price, address, seller, photos, optional full description and views. Over 4 000 ads per search, new ads and price drops. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "vFF1cRwcomfvYjsBp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to search for, like in the Kijiji search box: \"iphone 15\", \"honda civic\", \"2 bedroom apartment\". One search per keyword. Empty = every ad of the category and place.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "10",
              "12",
              "767",
              "253",
              "931",
              "644",
              "109",
              "29659003",
              "104",
              "103",
              "274",
              "128",
              "16",
              "29659001",
              "17220001",
              "235",
              "638",
              "140",
              "139",
              "717",
              "19",
              "107",
              "727",
              "133",
              "17",
              "26",
              "132",
              "111",
              "15093001",
              "14",
              "110",
              "108",
              "141",
              "27",
              "171",
              "311",
              "315",
              "313",
              "142",
              "325",
              "323",
              "326",
              "322",
              "324",
              "29",
              "329",
              "332",
              "330",
              "327",
              "328",
              "174",
              "122",
              "341",
              "301",
              "340",
              "339",
              "343",
              "30",
              "307",
              "310",
              "308",
              "304",
              "305",
              "303",
              "306",
              "33",
              "172",
              "336",
              "338",
              "335",
              "333",
              "334",
              "31",
              "312",
              "316",
              "317",
              "331",
              "318",
              "342",
              "309",
              "321",
              "337",
              "314",
              "320",
              "319",
              "1",
              "7",
              "2",
              "4",
              "289",
              "634",
              "635",
              "120",
              "636",
              "9",
              "5",
              "15102001",
              "3",
              "45",
              "58",
              "60",
              "420",
              "47",
              "146",
              "50",
              "147",
              "148",
              "149",
              "152",
              "150",
              "898",
              "46",
              "62",
              "59",
              "54",
              "61",
              "55",
              "112",
              "115",
              "143",
              "135",
              "125",
              "126",
              "14996002",
              "14654003",
              "14996001",
              "217",
              "791",
              "127",
              "114",
              "14996003",
              "14654004",
              "14654005",
              "34",
              "30349001",
              "40",
              "37",
              "36",
              "42",
              "39",
              "30353001",
              "44",
              "643",
              "35",
              "641",
              "170",
              "72",
              "84",
              "160",
              "165",
              "131",
              "83",
              "15214001",
              "166",
              "144",
              "86",
              "87",
              "168",
              "76",
              "302",
              "169",
              "79",
              "800",
              "801",
              "806",
              "807",
              "808",
              "809",
              "810",
              "811",
              "812",
              "816",
              "813",
              "814",
              "815",
              "803",
              "869",
              "870",
              "871",
              "872",
              "873",
              "874",
              "875",
              "876",
              "877",
              "878",
              "880",
              "879",
              "881",
              "882",
              "883",
              "884",
              "885",
              "886",
              "897",
              "887",
              "888",
              "889",
              "890",
              "891",
              "892",
              "893",
              "894",
              "895",
              "896",
              "804",
              "805",
              "802",
              "817",
              "818",
              "819",
              "820",
              "821",
              "822",
              "823",
              "824",
              "825",
              "826",
              "827",
              "828",
              "829",
              "830",
              "831",
              "832",
              "833",
              "834",
              "835",
              "836",
              "837",
              "838",
              "839",
              "840",
              "841",
              "842",
              "843",
              "844",
              "845",
              "846",
              "847",
              "848",
              "849",
              "850",
              "851",
              "852",
              "853",
              "868",
              "854",
              "855",
              "856",
              "857",
              "858",
              "859",
              "860",
              "861",
              "862",
              "863",
              "864",
              "865",
              "866",
              "867"
            ],
            "type": "string",
            "description": "Only ads of this category (and its sub-categories). Empty = all categories. For a category that is not in the list paste a Kijiji URL of that category or type its id."
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Provinces, regions or cities as on Kijiji: \"Ontario\", \"Toronto\", \"Calgary\", \"Ottawa\", \"Montréal\", \"Vancouver\". One search per place. Empty = all of Canada. Use Kijiji URLs for a radius around an address.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Kijiji URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (any category, place, radius, price, make, bedrooms...), or links of single ads (https://www.kijiji.ca/v-.../1234567890). A search URL keeps its own category, place and filters; an ad link returns that ad with full details. Profiles and other sites are not supported.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads per search",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum ads for each keyword / place pair and each URL. Kijiji shows only 4,000 ads of a search: above that the Actor cuts the search by province, region, city, sub-category and price on its own and merges the parts, so a whole category can be exported.",
            "default": 100
          },
          "minPrice": {
            "title": "Minimum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount (per month for rentals)."
          },
          "maxPrice": {
            "title": "Maximum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount (per month for rentals)."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Only ads of private owners or only dealers and businesses. Empty = both. Kijiji applies this filter only inside a category (pick one above); without a category it is ignored and the log says so."
          },
          "carMake": {
            "title": "Car make",
            "type": "string",
            "description": "Cars & Trucks: make as on Kijiji, for example \"Toyota\", \"Honda\", \"Mercedes-Benz\"."
          },
          "carModel": {
            "title": "Car model",
            "type": "string",
            "description": "Cars & Trucks: model of the make above, for example \"Corolla\", \"Civic\"."
          },
          "minYear": {
            "title": "Car year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars & Trucks: first model year."
          },
          "maxYear": {
            "title": "Car year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars & Trucks: last model year."
          },
          "minMileage": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Cars & Trucks: at least this many kilometres."
          },
          "maxMileage": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Cars & Trucks: at most this many kilometres."
          },
          "condition": {
            "title": "Car condition",
            "enum": [
              "new",
              "used"
            ],
            "type": "string",
            "description": "Cars & Trucks: new or used. Empty = both."
          },
          "extraFilters": {
            "title": "More filters",
            "type": "object",
            "description": "Any other Kijiji filter as {\"name\": \"value\"}, with the names Kijiji uses in the address bar, for example {\"numberbedrooms\": \"2\"}. Ranges are \"from__to\". Easiest: set the filters on kijiji.ca and paste the URL in \"Kijiji URLs\". A filter Kijiji does not know is reported in the log."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while ads are added during a run and the right one for monitoring.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open the page of every ad to add the full description, all photos, number of views, status, attribute labels, and for business sellers the name, website and number of ads. Included in the price of the ad, the run is slower.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name, plus ads whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Sorted newest first, a run stops at the first group of pages with nothing new. Schedule the Actor to get new ads every hour. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}