{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji Listings Scraper",
    "description": "The Kijiji Listings Scraper extracts listings from Kijiji across Canada — titles, prices, posting dates, locations with coordinates, owner or dealer, photos and listing attributes, with category, region, price and sort filters. Ideal for resale research, car and rental market analysis.",
    "version": "0.0",
    "x-build-id": "qlp2pf7Zqc590Tl33"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piotrv1001~kijiji-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piotrv1001-kijiji-listings-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/piotrv1001~kijiji-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piotrv1001-kijiji-listings-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/piotrv1001~kijiji-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piotrv1001-kijiji-listings-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": {
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "What to search for, e.g. \"iphone\", \"sofa\" or \"honda civic\". Leave empty to get every listing in the category and location."
          },
          "category": {
            "title": "Category",
            "enum": [
              "0",
              "10",
              "12",
              "767",
              "253",
              "931",
              "644",
              "109",
              "29659003",
              "103",
              "104",
              "274",
              "16",
              "128",
              "29659001",
              "17220001",
              "235",
              "638",
              "140",
              "139",
              "107",
              "717",
              "19",
              "727",
              "133",
              "17",
              "132",
              "111",
              "14",
              "110",
              "108",
              "15093001",
              "141",
              "26",
              "27",
              "174",
              "122",
              "31",
              "142",
              "30",
              "171",
              "29",
              "172",
              "301",
              "341",
              "33",
              "34",
              "30349001",
              "30353001",
              "170",
              "45",
              "58",
              "47",
              "60",
              "146",
              "50",
              "147",
              "420",
              "148",
              "149",
              "152",
              "898",
              "150",
              "46",
              "59",
              "54",
              "61",
              "55",
              "62",
              "72",
              "84",
              "160",
              "165",
              "131",
              "83",
              "15214001",
              "166",
              "144",
              "86",
              "168",
              "76",
              "169",
              "79",
              "302",
              "87",
              "112",
              "143",
              "135",
              "125",
              "126",
              "14996002",
              "14654003",
              "14996001",
              "217",
              "791",
              "115",
              "14654004",
              "14654005",
              "114",
              "14996003",
              "127",
              "1",
              "800"
            ],
            "type": "string",
            "description": "Kijiji category to search.",
            "default": "0"
          },
          "location": {
            "title": "Location",
            "enum": [
              "0",
              "9001",
              "1700059",
              "1700251",
              "1700121",
              "1700062",
              "1700284",
              "1700066",
              "1700253",
              "80002",
              "1700283",
              "1700282",
              "1700147",
              "1700124",
              "1700250",
              "1700178",
              "1700151",
              "1700252",
              "1700071",
              "1700156",
              "9002",
              "1700256",
              "1700257",
              "1700011",
              "80010",
              "1700258",
              "1700047",
              "1700259",
              "9003",
              "1700234",
              "1700199",
              "1700202",
              "1700232",
              "1700233",
              "1700230",
              "1700095",
              "1700231",
              "1700136",
              "9004",
              "1700006",
              "1700129",
              "1700206",
              "1700247",
              "1700239",
              "1700133",
              "1700242",
              "80014",
              "1700237",
              "1700249",
              "1700181",
              "1700209",
              "1700240",
              "1700214",
              "1700078",
              "1700248",
              "1700243",
              "1700184",
              "1700187",
              "1700217",
              "1700074",
              "1700189",
              "1700244",
              "80016",
              "1700245",
              "1700126",
              "1700238",
              "1700272",
              "1700220",
              "1700241",
              "9005",
              "1700260",
              "1700261",
              "1700018",
              "1700262",
              "1700001",
              "80017",
              "9006",
              "1700085",
              "1700236",
              "1700235",
              "1700192",
              "9007",
              "1700296",
              "1700298",
              "1700300",
              "1700224",
              "1700139",
              "80003",
              "1700227",
              "1700228",
              "1700263",
              "1700226",
              "1700295",
              "1700299",
              "1700301",
              "1700294",
              "1700143",
              "1700302",
              "1700297",
              "1700293",
              "1700229",
              "1700173",
              "1700100",
              "9008",
              "1700254",
              "1700255",
              "1700044",
              "1700113",
              "9009",
              "1700322",
              "1700265",
              "1700264",
              "1700266",
              "1700088",
              "1700194",
              "1700197",
              "1700093",
              "9010",
              "1700103",
              "1700105",
              "1700101",
              "9011",
              "1700118"
            ],
            "type": "string",
            "description": "All of Canada, a province or a region.",
            "default": "0"
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total.",
            "default": 50
          },
          "minPrice": {
            "title": "Minimum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at least this much."
          },
          "maxPrice": {
            "title": "Maximum price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at most this much."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "priceLow",
              "priceHigh"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "searchUrls": {
            "title": "Kijiji search URLs",
            "type": "array",
            "description": "Optional: paste Kijiji search pages (with any filters you set on the site) instead of using the fields above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Kijiji works best with Canadian residential proxies (the default).",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}