{
  "openapi": "3.1.0",
  "info": {
    "title": "AutoScout24 Car Listings",
    "version": "1.0",
    "description": "European used-car listings from AutoScout24 as JSON: model, price, mileage, year, city\n\nCalled through the ApiClay gateway with an ApiClay token or API key (https://apiclay.com/dashboard/keys). Pricing, trial, fees and full parameter notes: https://apiclay.com/api/autoscout24cars/llms.txt",
    "x-apiclay-vendor": "autoscout24cars",
    "x-apiclay-pricing": "0.0012 credits/request, 10 trial requests"
  },
  "externalDocs": {
    "description": "Full documentation for AI agents (Markdown)",
    "url": "https://apiclay.com/api/autoscout24cars/llms.txt"
  },
  "servers": [
    {
      "url": "https://api.apiclay.com/v1/api/autoscout24cars"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "tokenHeader": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "ApiClay API key (apiclay_…) or session token"
      },
      "tokenHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "token",
        "description": "ApiClay API key (apiclay_…) or session token"
      }
    }
  },
  "paths": {
    "/cars": {
      "get": {
        "operationId": "get_cars",
        "summary": "Cars for sale by make",
        "responses": {
          "200": {
            "description": "The upstream response (JSON unless the route or `X-ApiClay-Html` chooses another output)"
          },
          "default": {
            "description": "Gateway error, JSON: SOURCE_UNAVAILABLE = upstream or datasource failed, unknown path, or malformed request; POLICY_LIMIT_EXCEEDED = rate limit, daily cap, or the vendor's request policy was hit; SERVER_BUSY = gateway at capacity; retry with backoff; INSUFFICIENT_BALANCE = no credits left once trial and plan requests are used up; AUTH_FAILED = missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "cy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Country: D, A, I, F, NL, B, E, L (default all)"
            },
            "description": "Country: D, A, I, F, NL, B, E, L (default all)"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Results page: 1, 2, 3 ..."
            },
            "description": "Results page: 1, 2, 3 ..."
          },
          {
            "name": "pricefrom",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Minimum price in EUR"
            },
            "description": "Minimum price in EUR"
          },
          {
            "name": "priceto",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Maximum price in EUR"
            },
            "description": "Maximum price in EUR"
          },
          {
            "name": "kmto",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Maximum mileage in km"
            },
            "description": "Maximum mileage in km"
          },
          {
            "name": "fregfrom",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "First registered from year, e.g. 2018"
            },
            "description": "First registered from year, e.g. 2018"
          },
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Brand, e.g. bmw, audi, volkswagen"
            },
            "description": "Brand, e.g. bmw, audi, volkswagen"
          }
        ]
      }
    }
  }
}
