{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji Scraper: Canada Listings, Cars, Rentals and Real Estate",
    "description": "Scrape Kijiji Canada listings by keyword, category, place or link: title, price, location, coordinates, posted date, photos and link, plus make, model, year and km for cars and beds, baths and size for rentals. Dealers named, private sellers never. No login.",
    "version": "0.1",
    "x-build-id": "CukTHscx5UOprvN02"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": {
          "searchTerms": {
            "title": "Keywords",
            "type": "array",
            "description": "What to search for, as you would type it on kijiji.ca, for example iphone 15, honda civic or 2 bedroom. Each keyword is one search in every place below. Leave empty to list a whole category.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Where to search: a province (Ontario, BC, Quebec), a region (Toronto (GTA), Greater Vancouver Area) or a city Kijiji lists (Toronto, Ottawa, Calgary, Montreal, Halifax). Each place is one search. Leave empty for all of Canada.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "0",
              "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",
              "761",
              "762",
              "760",
              "765",
              "766",
              "111",
              "15093001",
              "14",
              "110",
              "108",
              "141",
              "27",
              "171",
              "142",
              "29",
              "174",
              "122",
              "341",
              "301",
              "30",
              "33",
              "172",
              "31",
              "34",
              "30349001",
              "40",
              "37",
              "36",
              "42",
              "39",
              "30353001",
              "44",
              "643",
              "35",
              "641",
              "170",
              "112",
              "115",
              "143",
              "135",
              "125",
              "126",
              "14996002",
              "14654003",
              "14996001",
              "217",
              "791",
              "127",
              "114",
              "14996003",
              "14654004",
              "14654005",
              "72",
              "84",
              "160",
              "165",
              "131",
              "83",
              "15214001",
              "166",
              "144",
              "86",
              "87",
              "168",
              "76",
              "302",
              "169",
              "79",
              "45",
              "58",
              "60",
              "420",
              "47",
              "146",
              "50",
              "147",
              "148",
              "149",
              "152",
              "150",
              "898",
              "46",
              "62",
              "59",
              "54",
              "61",
              "55",
              "1",
              "7",
              "2",
              "4",
              "289",
              "634",
              "635",
              "120",
              "636",
              "9",
              "5",
              "15102001",
              "3",
              "800",
              "801",
              "803",
              "804",
              "805",
              "802"
            ],
            "type": "string",
            "description": "Kijiji category to search in. Cars & Trucks, Real Estate and For Rent listings come with their own fields (make, model, year, km; bedrooms, bathrooms, size).",
            "default": "0"
          },
          "startUrls": {
            "title": "Kijiji links (optional)",
            "type": "array",
            "description": "Paste kijiji.ca search links (with any filters you set on the site) or listing links. A search link is read page by page; a listing link gives that one listing with full details.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Stop each search after this many listings. Kijiji shows at most 4,000 listings (100 pages) per search; narrow by place, category or price to get more.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "price_low",
              "price_high",
              "relevance"
            ],
            "type": "string",
            "description": "Order of the results, as on kijiji.ca.",
            "default": "newest"
          },
          "priceMin": {
            "title": "Min price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or above this price. Listings without a price (contact, swap) are left out when a price filter is set."
          },
          "priceMax": {
            "title": "Max price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings at or below this price."
          },
          "includeDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "Also open each listing page: full description, every attribute with its label, views, end date, VIN and CARFAX link for cars, and the dealer or business name, website and listing count. Private sellers are never named. Slower: one extra page per listing.",
            "default": false
          },
          "skipPromoted": {
            "title": "Skip promoted listings",
            "type": "boolean",
            "description": "Leave out the Top Ads Kijiji pins to the top of each page (they are older ads paid to show first). Useful when you watch for new listings.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Leave empty: the actor goes direct and moves to an Apify datacenter IP on its own when kijiji.ca asks it to slow down. Set it only to force your own proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}