{
  "openapi": "3.0.1",
  "info": {
    "title": "Fast Car Listings Scraper",
    "description": "Fast direct-scraping car listings extractor across 100+ automotive classifieds worldwide. Supports URL-pushed make, model, year, price, and mileage filters, JSON/hydration parsing, and low-memory 128-256 MB HTTP execution.",
    "version": "2.1",
    "x-build-id": "8Q3kzO6fdiPaseL2m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrapelab~ultimate-car-listings-scraper-100-sites/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrapelab-ultimate-car-listings-scraper-100-sites",
        "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/thescrapelab~ultimate-car-listings-scraper-100-sites/runs": {
      "post": {
        "operationId": "runs-sync-thescrapelab-ultimate-car-listings-scraper-100-sites",
        "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/thescrapelab~ultimate-car-listings-scraper-100-sites/run-sync": {
      "post": {
        "operationId": "run-sync-thescrapelab-ultimate-car-listings-scraper-100-sites",
        "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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO-2 country codes to target (for example ['ZA'], ['US'], ['DE', 'SE']). Leave empty to use websites directly or fast defaults.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "websites": {
            "title": "Websites / Portals",
            "type": "array",
            "description": "Specific portal slugs to scrape (defaults to ['finnno', 'autotraderza', 'autolistus'] when empty).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxListings": {
            "title": "Max listings per website",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum filtered listings to collect per selected website (0 = unlimited up to pagesPerRun).",
            "default": 20
          },
          "brandQuery": {
            "title": "Car Make / Brand",
            "type": "string",
            "description": "Optional brand filter pushed directly into site search URLs (e.g. 'Toyota', 'BMW', 'Volkswagen').",
            "default": ""
          },
          "modelQuery": {
            "title": "Model filter",
            "type": "string",
            "description": "Optional vehicle model (e.g. 'Hilux', 'Corolla', 'Golf'), pushed into URLs where supported.",
            "default": ""
          },
          "search": {
            "title": "Keyword search",
            "type": "string",
            "description": "Free-text search term (trim, engine, badge, location, etc.).",
            "default": ""
          },
          "brandFilter": {
            "title": "Multiple brands",
            "type": "array",
            "description": "Optional list of multiple vehicle makes to allow.",
            "items": {
              "type": "string"
            }
          },
          "modelFilter": {
            "title": "Multiple models",
            "type": "array",
            "description": "Optional list of multiple vehicle models to allow.",
            "items": {
              "type": "string"
            }
          },
          "yearMin": {
            "title": "Min year",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Minimum model year (e.g. 2018)."
          },
          "yearMax": {
            "title": "Max year",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Maximum model year (e.g. 2026)."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in portal currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in portal currency."
          },
          "mileageMin": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum odometer reading."
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum odometer reading."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Optional fuel types (Petrol, Diesel, Hybrid, Electric).",
            "items": {
              "type": "string"
            }
          },
          "transmissions": {
            "title": "Transmissions",
            "type": "array",
            "description": "Optional transmissions (Automatic, Manual).",
            "items": {
              "type": "string"
            }
          },
          "bodyTypes": {
            "title": "Body types",
            "type": "array",
            "description": "Optional body styles (SUV, Sedan, Hatchback, Bakkie, Coupe).",
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "title": "Conditions",
            "type": "array",
            "description": "Optional condition filter (Used, New, Demo).",
            "items": {
              "type": "string"
            }
          },
          "currencyCodes": {
            "title": "Currencies",
            "type": "array",
            "description": "Restrict to ISO currency codes (e.g. ['USD'], ['ZAR'], ['EUR']).",
            "items": {
              "type": "string"
            }
          },
          "orderBy": {
            "title": "Sort order",
            "enum": [
              "fastest",
              "last_seen_desc",
              "price_asc",
              "price_desc",
              "year_desc"
            ],
            "type": "string",
            "description": "Preferred portal sort order pushed into URLs where supported.",
            "default": "fastest"
          },
          "pagesPerRun": {
            "title": "Pages per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum result pages per website per run (streaming stops early once maxListings is reached).",
            "default": 2
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "First search result page.",
            "default": 1
          },
          "endPage": {
            "title": "End page (override)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional explicit last page number (0 = auto from pagesPerRun).",
            "default": 0
          },
          "sourceConcurrency": {
            "title": "Concurrent websites",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel websites to scrape concurrently.",
            "default": 2
          },
          "includeDetailFields": {
            "title": "Fetch extra detail pages",
            "type": "boolean",
            "description": "Fetch missing vehicle detail pages when card JSON lacks specs (slower).",
            "default": false
          },
          "includeRawDetail": {
            "title": "Include compact raw detail",
            "type": "boolean",
            "description": "Include raw_detail metadata on output rows.",
            "default": false
          },
          "resumeState": {
            "title": "Resume saved page cursor",
            "type": "boolean",
            "description": "Persist page state in key-value store across consecutive scheduled runs.",
            "default": false
          },
          "resetState": {
            "title": "Reset saved state",
            "type": "boolean",
            "description": "Reset cursor back to startPage.",
            "default": false
          },
          "useApifyResidentialProxy": {
            "title": "Use Apify Residential Proxy",
            "type": "boolean",
            "description": "Enable Apify Residential Proxy when scraping geo-blocked or Cloudflare-protected portals.",
            "default": false
          },
          "apifyProxyCountry": {
            "title": "Proxy country code",
            "type": "string",
            "description": "Two-letter country code for Apify Proxy (e.g. ZA, US, GB, DE).",
            "default": ""
          },
          "apifyProxySession": {
            "title": "Proxy session ID",
            "type": "string",
            "description": "Optional sticky proxy session identifier.",
            "default": ""
          },
          "sources": {
            "title": "[Legacy alias] Sources",
            "type": "array",
            "description": "Legacy alias for 'websites'.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "[Legacy alias] Limit",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Legacy alias for 'maxListings'."
          },
          "max_results": {
            "title": "[Legacy alias] Max results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Legacy alias for 'maxListings'."
          },
          "seen_days": {
            "title": "[Deprecated] Seen days",
            "type": "integer",
            "description": "Deprecated database archive option (ignored in live scraping)."
          },
          "view": {
            "title": "[Deprecated] View mode",
            "type": "string",
            "description": "Deprecated database archive option (live Actors always scrape current listings)."
          },
          "includeHistory": {
            "title": "[Deprecated] Include history",
            "type": "boolean",
            "description": "Deprecated database archive option (ignored in live scraping)."
          },
          "lookbackDays": {
            "title": "[Deprecated] Lookback days",
            "type": "integer",
            "description": "Deprecated database archive option (ignored in live scraping)."
          },
          "observedFrom": {
            "title": "[Deprecated] Observed from",
            "type": "string",
            "description": "Deprecated archive option."
          },
          "observedTo": {
            "title": "[Deprecated] Observed to",
            "type": "string",
            "description": "Deprecated archive option."
          },
          "changesOnly": {
            "title": "[Deprecated] Changes only",
            "type": "boolean",
            "description": "Deprecated archive option."
          },
          "estimateOnly": {
            "title": "[Deprecated] Estimate only",
            "type": "boolean",
            "description": "Deprecated archive option."
          },
          "requireResults": {
            "title": "[Deprecated] Require results",
            "type": "boolean",
            "description": "Deprecated archive option."
          },
          "providedDatasetId": {
            "title": "[Deprecated] Provided dataset ID",
            "type": "string",
            "description": "Deprecated option."
          },
          "continuationToken": {
            "title": "[Deprecated] Continuation token",
            "type": "string",
            "description": "Deprecated option."
          },
          "continuation_token": {
            "title": "[Deprecated] Continuation token (snake)",
            "type": "string",
            "description": "Deprecated option."
          },
          "aiEnrichment": {
            "title": "[Deprecated] AI enrichment",
            "type": "boolean",
            "description": "Deprecated option."
          },
          "aiMaxItems": {
            "title": "[Deprecated] AI max items",
            "type": "integer",
            "description": "Deprecated option."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}