{
  "openapi": "3.0.1",
  "info": {
    "title": "AUTO.RIA Scraper — Ukraine Car Marketplace",
    "description": "Scrape used & new car listings from AUTO.RIA.com — Ukraine's #1 auto marketplace. Get prices (USD/UAH/EUR), specs, VIN, photos, dealer info and more. API-powered, fast, no browser needed.",
    "version": "1.0",
    "x-build-id": "Xec6nDWSqOXg8OvOG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/skipper_lume~autoria-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-skipper_lume-autoria-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/skipper_lume~autoria-scraper/runs": {
      "post": {
        "operationId": "runs-sync-skipper_lume-autoria-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/skipper_lume~autoria-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-skipper_lume-autoria-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "url",
              "listings"
            ],
            "type": "string",
            "description": "search: find cars by filters. url: paste any auto.ria.com search URL. listings: scrape specific listings by ID/URL.",
            "default": "search"
          },
          "searchUrl": {
            "title": "AUTO.RIA Search URL",
            "type": "string",
            "description": "Paste any search URL from auto.ria.com. Configure your search on the website, copy the URL, paste here. Used when mode = url."
          },
          "listingIds": {
            "title": "Listing IDs or URLs",
            "type": "array",
            "description": "Direct listing IDs (e.g. 39718391) or full URLs. Used when mode = listings.",
            "items": {
              "type": "string"
            }
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Brand name in English (e.g. Toyota, BMW, Volkswagen). Auto-resolved to ID. Takes priority over brandId if both given."
          },
          "modelName": {
            "title": "Model name",
            "type": "string",
            "description": "Model name (e.g. Land Cruiser Prado, Camry, Golf). Auto-resolved to ID."
          },
          "brandId": {
            "title": "Brand ID (advanced)",
            "type": "integer",
            "description": "Numeric brand ID. Use brandName instead for convenience. Toyota=79, BMW=9, VW=84, Mercedes=48, Audi=6."
          },
          "modelId": {
            "title": "Model ID (advanced)",
            "type": "integer",
            "description": "Numeric model ID. Use modelName instead for convenience."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "type": "integer",
            "description": "Minimum year of manufacture"
          },
          "yearTo": {
            "title": "Year to",
            "type": "integer",
            "description": "Maximum year of manufacture"
          },
          "priceFrom": {
            "title": "Price from",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in selected currency"
          },
          "priceTo": {
            "title": "Price to",
            "type": "integer",
            "description": "Maximum price in selected currency"
          },
          "priceCurrency": {
            "title": "Price currency",
            "enum": [
              "USD",
              "EUR",
              "UAH"
            ],
            "type": "string",
            "description": "Currency for price filter",
            "default": "USD"
          },
          "regionId": {
            "title": "Region",
            "type": "integer",
            "description": "Region ID. Common: Kyiv=10, Odesa=12, Kharkiv=7, Dnipro=11, Lviv=5. Leave empty for all."
          },
          "fuelType": {
            "title": "Fuel type",
            "type": "array",
            "description": "Fuel IDs: 1=Petrol, 2=Diesel, 3=Gas, 4=Gas/Petrol, 5=Hybrid, 6=Electric, 7=PHEV, 8=Petrol/Electric"
          },
          "gearbox": {
            "title": "Gearbox",
            "type": "array",
            "description": "Gearbox IDs: 1=Manual, 2=Automatic, 3=Tiptronic, 4=Robot, 5=Variator"
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "Body IDs: 3=Sedan, 2=Universal, 5=Hatchback, 6=Minivan, 7=SUV, 8=Coupe, 4=Liftback, 307=Crossover"
          },
          "driveType": {
            "title": "Drive type",
            "type": "integer",
            "description": "Drive: 1=AWD, 2=FWD, 3=RWD"
          },
          "mileageFrom": {
            "title": "Mileage from (thousands km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in thousands of km"
          },
          "mileageTo": {
            "title": "Mileage to (thousands km)",
            "type": "integer",
            "description": "Maximum mileage in thousands of km"
          },
          "engineVolumeFrom": {
            "title": "Engine volume from (liters)",
            "type": "number",
            "description": "Minimum engine volume in liters (e.g. 1.4)"
          },
          "engineVolumeTo": {
            "title": "Engine volume to (liters)",
            "type": "number",
            "description": "Maximum engine volume in liters (e.g. 3.2)"
          },
          "withPhoto": {
            "title": "Only with photos",
            "type": "boolean",
            "description": "Only include listings that have photos",
            "default": true
          },
          "excludeNotInUkraine": {
            "title": "Exclude cars not in Ukraine",
            "type": "boolean",
            "description": "Exclude cars physically located outside Ukraine",
            "default": true
          },
          "excludeNotCleared": {
            "title": "Exclude not customs-cleared",
            "type": "boolean",
            "description": "Only include customs-cleared vehicles",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "price_asc",
              "price_desc",
              "year_new",
              "year_old",
              "date_new",
              "date_old",
              "mileage_desc",
              "mileage_asc"
            ],
            "type": "string",
            "description": "Sort order for search results",
            "default": "date_new"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to scrape.",
            "default": 50
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel page requests. Higher = faster but more likely to trigger rate limits.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Recommended for large scrapes (100+ listings) to avoid rate limiting."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}