{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji.ca Scraper",
    "description": "Kijiji scraper & API (Canada classifieds): search listings by keyword and category and export title, price, description, location, seller, attributes, photos, date and URL. Canada marketplace and resale market data plus seller lead generation — fast, no login.",
    "version": "1.0",
    "x-build-id": "58efLgiQkWFHCFf3P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-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/haketa~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-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/haketa~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-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": {
          "keyword": {
            "title": "Search keyword (optional)",
            "type": "string",
            "description": "What are you looking for? e.g. 'macbook pro', 'toyota camry', '2 bedroom apartment', 'warehouse jobs'. Leave empty to browse a whole category. Combined with the Category and Province you choose below."
          },
          "categoryCode": {
            "title": "Category",
            "enum": [
              "",
              "c174",
              "c30",
              "c27",
              "c171",
              "c37",
              "c35",
              "c34",
              "c10",
              "c45",
              "c72",
              "c111"
            ],
            "type": "string",
            "description": "Pick the section of Kijiji to search. Leave on 'All categories' to search everything.",
            "default": ""
          },
          "provinces": {
            "title": "Provinces / Region",
            "type": "array",
            "description": "Pick one or more provinces to search. Leave empty to search all of Canada.",
            "items": {
              "type": "string",
              "enum": [
                "ON",
                "QC",
                "BC",
                "AB",
                "MB",
                "SK",
                "NS",
                "NB",
                "NL",
                "PE",
                "YT",
                "NT",
                "NU"
              ],
              "enumTitles": [
                "Ontario",
                "Quebec",
                "British Columbia",
                "Alberta",
                "Manitoba",
                "Saskatchewan",
                "Nova Scotia",
                "New Brunswick",
                "Newfoundland & Labrador",
                "Prince Edward Island",
                "Yukon",
                "Northwest Territories",
                "Nunavut"
              ]
            }
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "dateDesc",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "How results are ordered on Kijiji.",
            "default": "dateDesc"
          },
          "adSourceFilter": {
            "title": "Seller Type",
            "enum": [
              "all",
              "fsbo-only",
              "dealer-only",
              "exclude-ebay"
            ],
            "type": "string",
            "description": "Keep only certain sellers. 'For Sale By Owner' = private sellers (great for flippers and bargains). 'Dealer / Pro' = professional listings. 'Exclude eBay' drops eBay cross-listings.",
            "default": "all"
          },
          "language": {
            "title": "Language",
            "enum": [
              "both",
              "en",
              "fr"
            ],
            "type": "string",
            "description": "Keep only listings in a certain language. Quebec listings are usually French.",
            "default": "both"
          },
          "minPrice": {
            "title": "Min Price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep listings at or above this price. Leave 0 for no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max Price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep listings at or below this price. Leave 0 for no maximum.",
            "default": 0
          },
          "fetchDetails": {
            "title": "Fetch Full Details",
            "type": "boolean",
            "description": "Open each listing page for complete data — full description, all photos, VIN, features and amenities. Richer results but slower. Off = fast summary from the results page.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total listings to collect across all searches. Set 0 for unlimited.",
            "default": 0
          },
          "maxPages": {
            "title": "Max Pages per Search",
            "minimum": 0,
            "type": "integer",
            "description": "How many result pages to read per search. Each page returns about 20-40 listings.",
            "default": 2
          },
          "searchUrls": {
            "title": "Start URLs (advanced, optional)",
            "type": "array",
            "description": "Advanced: paste exact Kijiji.ca result-page URLs to scrape them directly. This overrides the Category/Province pickers above. Example: 'https://www.kijiji.ca/b-cars-trucks/gta-greater-toronto-area/c174l1700272'. Leave empty to use the simple pickers.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Canadian residential proxy is recommended for the best coverage and reliability. Uses Apify Proxy with the RESIDENTIAL group and CA country by default."
          },
          "requestDelay": {
            "title": "Request Delay (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Delay between requests in milliseconds. Higher values are gentler on the site.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of parallel requests. Keep lower for the most reliable runs.",
            "default": 3
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a failed request.",
            "default": 3
          },
          "debugMode": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Verbose logging for troubleshooting when Kijiji changes its page structure. Leave off for normal runs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}