{
  "openapi": "3.0.1",
  "info": {
    "title": "Kijiji Scraper - Cars, Rentals, Real Estate, Jobs, Buy & Sell",
    "description": "Scrape Kijiji.ca listings by keyword, category, place, radius, price, seller type or pasted links: price, location with postal code and GPS, photos, posted date, views, car specs (make, model, year, km, VIN), rental details, seller and dealer. Monitor mode. $0.35 per 1,000 listings.",
    "version": "0.1",
    "x-build-id": "mBFL4xYuIB242thie"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~kijiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-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/scrapersdelight~kijiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-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/scrapersdelight~kijiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-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": "One search per keyword (and per place). Leave empty to list everything in the category and place.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "buy-sell",
              "art-collectibles",
              "audio",
              "baby-items",
              "bags-luggage",
              "bikes",
              "books",
              "business-industrial",
              "camera-camcorder-lens",
              "cd-dvd-blu-ray",
              "clothing",
              "computer",
              "computer-accessories",
              "value",
              "free-stuff",
              "furniture",
              "garage-sale-yard-sale",
              "health-special-needs",
              "hobbies-craft",
              "home-appliance",
              "home-indoor",
              "home-outdoor",
              "home-renovation",
              "jewelry-watch",
              "musical-instrument",
              "phone-tablet",
              "sporting-goods-exercise",
              "tickets",
              "tool",
              "toys-games",
              "tvs-video",
              "video-games-consoles",
              "buy-sell-other",
              "cars-vehicles",
              "cars-trucks",
              "classic-cars",
              "auto-parts-tires",
              "automotive-services",
              "motorcycles",
              "atv-snowmobile",
              "boat-watercraft",
              "rv-camper-trailer",
              "heavy-equipment",
              "farming-equipment",
              "cars-other",
              "real-estate",
              "for-rent",
              "apartments-condos",
              "short-term-rental",
              "room-rental-roommate",
              "storage-parking",
              "commercial-office-space",
              "for-sale",
              "house-for-sale",
              "condo-for-sale",
              "land-for-sale",
              "commercial-office-space-for-sale",
              "real-estate-service",
              "jobs",
              "accounting-management-jobs",
              "childcare-jobs",
              "bar-food-hospitality-jobs",
              "cleaning-housekeeper-jobs",
              "construction-trades-jobs",
              "customer-service-jobs",
              "cannabis-sector",
              "driver-security-jobs",
              "general-labour-jobs",
              "graphic-web-design-jobs",
              "healthcare-jobs",
              "hair-stylist-salon-jobs",
              "office-manager-receptionist-jobs",
              "part-time-student-jobs",
              "programmer-computer-jobs",
              "sales-retail-jobs",
              "tv-media-fashion-jobs",
              "other-jobs",
              "services",
              "childcare-nanny-service",
              "cleaners-cleaning-service",
              "entertainment",
              "financial-legal",
              "fitness-personal-trainer",
              "food-catering",
              "health-beauty",
              "moving-storage",
              "music-lessons",
              "photography-video",
              "skilled-trades",
              "tutor-language-lessons",
              "wedding-service",
              "travel-vacations",
              "other-services",
              "pets",
              "pet-services",
              "birds",
              "cats-kittens",
              "dogs-puppies",
              "equestrian-livestock-accessories",
              "fish",
              "horses-ponies",
              "livestock",
              "lost-and-found-pets",
              "pet-accessories",
              "reptiles-amphibians",
              "small-animals",
              "other-pets",
              "registered-shelter-rescue",
              "pets-other-items",
              "community",
              "activities-groups",
              "artists-musicians",
              "classes-lessons",
              "events",
              "friendship-networking",
              "long-lost-relationships",
              "lost-and-found",
              "missed-connections",
              "rideshare-carpool",
              "sports-teams",
              "volunteers",
              "community-other",
              "vacation-rentals",
              "vacation-rentals-canada",
              "vacation-rentals-usa",
              "vacation-rentals-caribbean",
              "vacation-rentals-mexico",
              "vacation-rentals-other-countries"
            ],
            "type": "string",
            "description": "Kijiji category to search in. You can also type a category name or id in the API (e.g. \"Cars & Trucks\" or 174)."
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Provinces (\"Ontario\", \"BC\"), cities (\"Toronto\", \"Kelowna\"), postal codes (\"M5V 3L9\"), addresses, \"Canada\", or a Kijiji location id. One search per place. Empty = all of Canada.",
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Search this many km around each place (a city, postal code or address). 0 = Kijiji's own region for the place."
          },
          "startUrls": {
            "title": "Kijiji links",
            "type": "array",
            "description": "kijiji.ca search or category pages (with any filters set on the site), listing pages (or bare listing ids) and seller / dealer pages (kijiji.ca/o-...). A seller page returns that seller's listings.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in Canadian dollars. Listings without a price are left out when a price limit is set."
          },
          "maxPrice": {
            "title": "Max price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in Canadian dollars."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers (owners, individuals) or businesses (dealers, agencies, employers). Sent to Kijiji's own filter in Cars & Vehicles and Buy & Sell, checked per listing elsewhere.",
            "default": "any"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "offer",
              "wanted"
            ],
            "type": "string",
            "description": "Offers (for sale, for rent, jobs offered) or Wanted ads.",
            "default": "offer"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "priceAsc",
              "priceDesc",
              "mileageAsc",
              "mileageDesc",
              "distance"
            ],
            "type": "string",
            "description": "Kijiji's sort order. Distance needs a radius. Mileage sorts work in Cars & Vehicles.",
            "default": "newest"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings first posted in the last N days. 0 = any date."
          },
          "mustInclude": {
            "title": "Must include words",
            "type": "array",
            "description": "Keep a listing only if its title or description contains at least one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop a listing if its title or description contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Most listings to return in this run (all searches together). Empty = 100 (20 for the sample run that has no search). 0 = no limit."
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Most listings from each keyword x place search, link or seller. 0 = no limit."
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Paid add-on: read each listing's own page data - full description, every photo, status and end date, labelled attributes, seller / dealer name, website, profile link, listing count, dealer Google rating, the phone shown on the ad (masked, businesses only), market average price (cars), mileage analysis, vehicle history badges, video, virtual tour, walk / transit scores. Charged per listing that carries them.",
            "default": false
          },
          "similarListingsPerListing": {
            "title": "Similar listings per listing",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "With listing details on: up to this many similar listings (id, title, price, link) on each row. No extra charge.",
            "default": 0
          },
          "includeTopAds": {
            "title": "Include top ads",
            "type": "boolean",
            "description": "Also return the paid Top Ads Kijiji shows above page 1 (they are usually in the normal results too).",
            "default": false
          },
          "splitLargeSearches": {
            "title": "Split large searches",
            "type": "boolean",
            "description": "Kijiji shows 4,000 listings per search. When a search has more and the run wants more, it is read again in price bands to go past that cap.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new listings)",
            "type": "boolean",
            "description": "Return only listings this monitor has not returned before (and, with price drops on, listings whose price went down). Schedule the run to get new ads.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for separate schedules. Same name + same searches = same memory.",
            "default": "default"
          },
          "reportPriceDrops": {
            "title": "Report price drops",
            "type": "boolean",
            "description": "In monitor mode, also return listings already seen whose price is now lower (monitorEvent = priceDrop, previousPrice).",
            "default": true
          },
          "resetMonitor": {
            "title": "Reset the monitor memory",
            "type": "boolean",
            "description": "Forget what this monitor returned before (the next run returns everything again).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Search pages in parallel",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many search pages are read at once.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default the actor reads Kijiji directly and moves to Apify's datacenter, then residential proxy, only if Kijiji refuses."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}