{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Autos Inventory Scraper: Dealer Listings & VINs",
    "description": "Scrape Amazon Autos dealer inventory by ZIP or metro. Filter by make, model, condition, body, price, year, mileage and radius; get VIN, pricing, finance/lease, specs, images and dealer details.",
    "version": "1.0",
    "x-build-id": "uNgwuHYoufWCEEedy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~amazon-autos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-amazon-autos-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/crawlyth-forge~amazon-autos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-amazon-autos-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/crawlyth-forge~amazon-autos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-amazon-autos-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",
        "required": [
          "mode",
          "locations"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byListings"
            ],
            "type": "string",
            "description": "Search live inventory by location and filters, or fetch specific Amazon Autos listings by ASIN or /vindp/ URL.",
            "default": "search"
          },
          "locations": {
            "title": "ZIP codes or metros",
            "type": "array",
            "description": "US ZIP codes (5 digits) or metro names such as `Los Angeles, CA`, `Chicago`, or `NYC`. Amazon Autos is US-only; the actor sets each location on a US-located connection automatically. In `byListings` mode the first location supplies the ZIP used for pricing and availability.",
            "items": {
              "type": "string"
            },
            "default": [
              "Los Angeles, CA"
            ]
          },
          "listingUrls": {
            "title": "Specific listings",
            "type": "array",
            "description": "(mode=byListings) Amazon Autos ASINs or `/vindp/` URLs, e.g. `B0HRZRK22Y` or `https://www.amazon.com/vindp/B0HRZRK22Y`.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxItems": {
            "title": "Max vehicles",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on vehicle records across all locations. Duplicate listings seen in more than one location are emitted once.",
            "default": 50
          },
          "maxPagesPerLocation": {
            "title": "Max result pages per location",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Amazon returns 24 listings per page. Pagination stops earlier when a page is empty, short, or `maxItems` is reached.",
            "default": 20
          },
          "includeDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Open each vehicle's page for VIN, full specifications, exact price breakdown, finance/lease estimate and dealer address. Turn off for the fastest listing-only run.",
            "default": true
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "cpo"
            ],
            "type": "string",
            "description": "Vehicle condition filter.",
            "default": "any"
          },
          "make": {
            "title": "Make",
            "enum": [
              "Acura",
              "Alfa Romeo",
              "Audi",
              "BMW",
              "Buick",
              "Cadillac",
              "Chevrolet",
              "Chrysler",
              "Dodge",
              "Ford",
              "Genesis",
              "GMC",
              "Honda",
              "Hyundai",
              "Infiniti",
              "Jaguar",
              "Jeep",
              "Kia",
              "Land Rover",
              "Lexus",
              "Lincoln",
              "Mazda",
              "Mercedes-Benz",
              "MINI",
              "Mitsubishi",
              "Nissan",
              "Porsche",
              "RAM",
              "Rivian",
              "Subaru",
              "Tesla",
              "Toyota",
              "Volkswagen",
              "Volvo"
            ],
            "type": "string",
            "description": "Brand sold through Amazon Autos. Leave unset for every make."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model name within the selected make, e.g. `Camry`, `Model Y`, `F-150`. Requires `make` because Amazon scopes its model facet to a brand."
          },
          "bodyStyle": {
            "title": "Body style",
            "enum": [
              "any",
              "suv",
              "sedan",
              "pickup",
              "hatchback",
              "convertible",
              "coupe",
              "minivan",
              "van"
            ],
            "type": "string",
            "description": "Body style filter.",
            "default": "any"
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "any",
              "gasoline",
              "hybrid",
              "electric",
              "plug-in hybrid",
              "diesel"
            ],
            "type": "string",
            "description": "Fuel or powertrain filter.",
            "default": "any"
          },
          "drivetrain": {
            "title": "Drivetrain",
            "enum": [
              "any",
              "awd",
              "4wd",
              "fwd",
              "rwd"
            ],
            "type": "string",
            "description": "Drive layout filter.",
            "default": "any"
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "any",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Transmission filter.",
            "default": "any"
          },
          "priceMin": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Minimum listed price in US dollars."
          },
          "priceMax": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum listed price in US dollars."
          },
          "yearMin": {
            "title": "Min model year",
            "minimum": 1990,
            "maximum": 2030,
            "type": "integer",
            "description": "Earliest model year."
          },
          "yearMax": {
            "title": "Max model year",
            "minimum": 1990,
            "maximum": 2030,
            "type": "integer",
            "description": "Latest model year."
          },
          "mileageMax": {
            "title": "Max mileage",
            "minimum": 0,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum odometer reading in miles. Amazon's own mileage facets are coarse; the actor applies the exact bound after the server-side bucket."
          },
          "radiusMiles": {
            "title": "Search radius",
            "enum": [
              "25",
              "50",
              "75"
            ],
            "type": "string",
            "description": "Distance from the ZIP code. Amazon Autos supports up to 75 miles.",
            "default": "75"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "distance",
              "priceAsc",
              "priceDesc",
              "newest"
            ],
            "type": "string",
            "description": "Result ordering applied by Amazon.",
            "default": "distance"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}