{
  "openapi": "3.0.1",
  "info": {
    "title": "Autotrader Canada Live-data Scraper + Discord Integration",
    "description": "AutoTrader.ca Scraper 🚗\n\nScrape AutoTrader.ca via filters (no URL needed). Extracts price💰, km🛣️, title, image🖼️, link🔗.\n\nBuild searches: 📍Location, Make, Year, etc.\n\nHandles multiple pages📄\n\nSkips duplicates✨\n\nProxy support🛡️\n\nOutputs data to Dataset📊",
    "version": "0.0",
    "x-build-id": "ZlVi2tQgAeqgJVvlJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vroomvroomapii~autotrader-canada-live-data-scraper-discord-integration/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vroomvroomapii-autotrader-canada-live-data-scraper-discord-integration",
        "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/vroomvroomapii~autotrader-canada-live-data-scraper-discord-integration/runs": {
      "post": {
        "operationId": "runs-sync-vroomvroomapii-autotrader-canada-live-data-scraper-discord-integration",
        "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/vroomvroomapii~autotrader-canada-live-data-scraper-discord-integration/run-sync": {
      "post": {
        "operationId": "run-sync-vroomvroomapii-autotrader-canada-live-data-scraper-discord-integration",
        "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",
        "required": [
          "postal_code",
          "province"
        ],
        "properties": {
          "postal_code": {
            "title": "📍 Postal Code",
            "type": "string",
            "description": "Enter the Canadian postal code for the center of your search (e.g., T6V0M9, M5V2J3). This is required.",
            "default": "M5V3L9"
          },
          "province": {
            "title": "🗺️ Province",
            "enum": [
              "AB",
              "BC",
              "MB",
              "NB",
              "NL",
              "NS",
              "NT",
              "NU",
              "ON",
              "PE",
              "QC",
              "SK",
              "YT"
            ],
            "type": "string",
            "description": "Select the province abbreviation corresponding to your postal code (e.g., AB for Alberta, ON for Ontario). This is required.",
            "default": "ON"
          },
          "distance": {
            "title": "↔️ Distance (km)",
            "enum": [
              "25",
              "50",
              "100",
              "250",
              "500",
              "1000"
            ],
            "type": "string",
            "description": "Select the maximum search radius in kilometers from the entered postal code. Defaults to 100 km if left blank."
          },
          "seller_type": {
            "title": "🧑‍💼 Seller Type",
            "enum": [
              "Any",
              "Dealer",
              "Private"
            ],
            "type": "string",
            "description": "Filter by the type of seller. Defaults to 'Any' if left blank."
          },
          "make": {
            "title": "🚗 Make",
            "type": "string",
            "description": "Enter the vehicle make (e.g., Ford, Toyota, BMW). Leave blank to search for any make."
          },
          "model": {
            "title": "🚙 Model",
            "type": "string",
            "description": "Enter the vehicle model (e.g., F-150, RAV4, 3 Series). Requires 'Make' to be specified for best results. Leave blank for any model of the selected make."
          },
          "trim": {
            "title": "✨ Trim",
            "type": "string",
            "description": "Enter specific trim level(s) (e.g., Lariat, XLE, Sport). If multiple, separate with commas. Usually requires Make and Model. Leave blank for any trim."
          },
          "min_year": {
            "title": "📅 Min Year",
            "type": "integer",
            "description": "Enter the oldest model year to include (e.g., 2018). Leave blank for no minimum."
          },
          "max_year": {
            "title": "📅 Max Year",
            "type": "integer",
            "description": "Enter the newest model year to include (e.g., 2023). Leave blank for no maximum."
          },
          "min_price": {
            "title": "💲 Min Price",
            "type": "integer",
            "description": "Enter the minimum vehicle price (e.g., 15000). Leave blank for no minimum."
          },
          "max_price": {
            "title": "💲 Max Price",
            "type": "integer",
            "description": "Enter the maximum vehicle price (e.g., 40000). Leave blank for no maximum."
          },
          "min_kms": {
            "title": "🛣️ Min Kilometers",
            "type": "integer",
            "description": "Enter the minimum kilometers (e.g., 10000). Leave blank for no minimum."
          },
          "max_kms": {
            "title": "🛣️ Max Kilometers",
            "type": "integer",
            "description": "Enter the maximum kilometers (e.g., 80000). Leave blank for no maximum."
          },
          "keywords": {
            "title": "🔑 Keywords",
            "type": "string",
            "description": "Enter specific words or phrases to find within listing descriptions (e.g., leather seats, tow package)."
          },
          "sort_by": {
            "title": "📊 Sort By",
            "enum": [
              "default",
              "date_desc",
              "date_asc",
              "price_desc",
              "price_asc",
              "kms_desc",
              "kms_asc",
              "year_desc",
              "year_asc",
              "distance_asc"
            ],
            "type": "string",
            "description": "Choose the order for the search results. Defaults to 'Posted Date: New to Old' if left blank."
          },
          "with_photos": {
            "title": "📸 Must Have Photos",
            "type": "boolean",
            "description": "Check this box to only include listings that have photos. Defaults to checked (True) if left untouched."
          },
          "has_price": {
            "title": "💰 Must Have Price",
            "type": "boolean",
            "description": "Check this box to only include listings that show a price. Defaults to checked (True) if left untouched."
          },
          "with_free_carfax": {
            "title": "📄 Free CARFAX Report",
            "type": "boolean",
            "description": "Check this box to only include listings offering a free CARFAX report. Defaults to unchecked (False) if left untouched."
          },
          "max_pages": {
            "title": "📄 Maximum pages",
            "minimum": 1,
            "type": "integer",
            "description": "Set the maximum number of search result pages to scrape (e.g., 5). Each page typically has 20 listings. Defaults to 1 if left blank."
          },
          "proxy": {
            "title": "🔒 Proxy configuration",
            "type": "object",
            "description": "Configure Apify Proxy or your own proxies. Recommended for scraping many pages to avoid blocking.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}