{
  "openapi": "3.0.1",
  "info": {
    "title": "🇨🇦 Used Car Data Scraper – Canada",
    "description": "Scrape Canadian used-car listings from AutoTrader.ca, CarGurus.ca, Kijiji, Craigslist, Carpages.ca, and UsedCarCanada.ca. Get normalized vehicle data including prices, mileage, VINs, seller details, locations, images, and listing URLs.",
    "version": "0.1",
    "x-build-id": "4PooeF4gNQa7YgeLL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jordan-byte~used-car-multiple-source/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jordan-byte-used-car-multiple-source",
        "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/jordan-byte~used-car-multiple-source/runs": {
      "post": {
        "operationId": "runs-sync-jordan-byte-used-car-multiple-source",
        "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/jordan-byte~used-car-multiple-source/run-sync": {
      "post": {
        "operationId": "run-sync-jordan-byte-used-car-multiple-source",
        "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": {
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Optional. e.g. \"Ford\", \"Honda\", \"Toyota\". Leave blank to search every make - this actor isn't limited to a single brand."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Optional. e.g. \"F-150\", \"Civic\", \"Camry\". Leave blank to search all models of the given make (or every model, if make is also blank)."
          },
          "yearMin": {
            "title": "Min year",
            "type": "integer",
            "description": "Optional. Only used by sites that support a year-range filter."
          },
          "yearMax": {
            "title": "Max year",
            "type": "integer",
            "description": "Optional. Only used by sites that support a year-range filter."
          },
          "priceMax": {
            "title": "Max price (CAD)",
            "type": "integer",
            "description": "Optional. Only used by sites that support a price filter."
          },
          "sites": {
            "title": "Sites to search",
            "type": "array",
            "description": "Which sites to query. Defaults to the 2 fastest and most reliable ones (autotrader, cargurus), both plain HTTP with structured JSON responses. kijiji, craigslist and carpages are available here too, and usedcarcanada needs a real browser and can take noticeably longer to get past that site's own bot defences - none of those four are on by default.",
            "items": {
              "type": "string",
              "enum": [
                "autotrader",
                "cargurus",
                "kijiji",
                "craigslist",
                "carpages",
                "usedcarcanada"
              ]
            },
            "default": [
              "autotrader",
              "cargurus"
            ]
          },
          "maxItemsPerSite": {
            "title": "Max results per site",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each site once this many listings have been collected. Set to 0 for \"no limit\" (each site pages through as much inventory as it actually has, up to a 2,000/site safety ceiling). Ignored entirely when \"Full run\" below is on.",
            "default": 10
          },
          "fullRun": {
            "title": "Full run - get everything",
            "type": "boolean",
            "description": "Turn this on to pull as much real used inventory as each selected site actually has (up to a 2,000-per-site safety ceiling) instead of a small sample - overrides \"Max results per site\" entirely. This is the option for a full-market pull rather than a quick check: every used listing for a make/model across every site you selected, or every used listing on the site at all if make/model are left blank. Runs will take proportionally longer and cost more compute units.",
            "default": false
          },
          "useCache": {
            "title": "Use cached results",
            "type": "boolean",
            "description": "If an identical search (same make/model/filters/sites/limit) was already run before, instantly return those stored results instead of re-scraping every site again. Cached results never expire on their own - turn this off if you specifically want a fresh scrape.",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Posts a JSON summary here (result count per site, or errors) when the run finishes - works with a Slack incoming webhook, a Discord webhook, or a generic endpoint like Zapier/Make/n8n. A failed webhook post never fails the run."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Required. Every site here blocks or aggressively rate-limits non-proxied traffic - a Canadian residential proxy is not optional, and each site fails fast with a clear error if one isn't available.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}