# AutoScout24 Ad ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/autoscout24/ad` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/autoscout24-ad | ## Description Read one AutoScout24 listing, including an inactive ad that still exposes the listing. Price, vehicle, seller, and location. (1 credit) ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/autoscout24/ad' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Porsche Macan, inactive listing ```json { "id": "547632b2-e4fc-47f3-8143-1a2d7b276366", "image": "https://prod.pictures.autoscout24.net/listing-images/547632b2-e4fc-47f3-8143-1a2d7b276366_e8e7d7f9-5101-4dad-9d0c-342384727f9d.jpg/1280x960.webp", "price": { "price_formatted": "€ 39 990", "is_conditional_price": false, "is_vat_label_legally_required": false }, "title": "Porsche Macan", "images": [ "https://prod.pictures.autoscout24.net/listing-images/547632b2-e4fc-47f3-8143-1a2d7b276366_e8e7d7f9-5101-4dad-9d0c-342384727f9d.jpg/1280x960.webp" ], "prices": { "dealer": { "price": "€ 39 990", "price_raw": 39990, "negotiable": false, "tax_deductible": false, "on_request_only": false }, "public": { "price": "€ 39 990", "price_raw": 39990, "negotiable": false, "tax_deductible": false, "on_request_only": false } }, "seller": { "id": 20068, "type": "Dealer", "phones": [ { "call_to": "+33 1 99 00 00 00", "phone_type": "Office", "formatted_number": "+33 1 99 00 00 01" } ], "is_dealer": true, "company_name": "Alex Martin" }, "status": "Inactive", "vehicle": { "make": "Porsche", "model": "Macan", "body_type": "SUV/4x4/Pick-Up", "body_color": "Or", "power_in_kw": "190 kW", "primary_fuel": { "raw": 7, "formatted": "Diesel" }, "mileage_in_km": "24 585 km", "number_of_doors": 4, "number_of_seats": 5, "mileage_in_km_raw": 24585, "transmission_type": "Boîte automatique", "model_version_input": "S Diesel Pano 1.Hand", "first_registration_date": "04/2015" }, "location": { "zip": "88074", "city": "Meckenbeuren", "street": "Hauptstrasse 67", "country_code": "DE" }, "web_page": "https://www.autoscout24.fr/offres/porsche-macan-s-diesel-pano-1-hand-diesel-or-cat_ma57mo20311-547632b2-e4fc-47f3-8143-1a2d7b276366", "description": "Sonderausstattung:
Deutsches Fahrzeug, 1. Hand, PZ Scheckheft
" } ``` ## Documentation ## Overview One AutoScout24 listing. One credit per successful call. Same domains as search. An inactive or sold listing is still returned when the page contains the listing script `script#__NEXT_DATA__`. `status` is then `Inactive`. A page without that selector, or without listing details, returns 404. ## Quickstart ``` GET https://api.piloterr.com/v2/autoscout24/ad?query=https://www.autoscout24.fr/offres/porsche-macan-s-diesel-pano-1-hand-diesel-or-cat_ma57mo20311-547632b2-e4fc-47f3-8143-1a2d7b276366 ``` ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | yes | Full AutoScout24 listing URL | ## Response fields The body is the listing, flat, in snake_case. `image` is the first URL in `images`. | Field | Type | Description | |---|---|---| | `id` | string | Listing id. Same value as `results[].id` on search | | `status` | string | `Active` or `Inactive` | | `title` | string | Title | | `web_page` | string | Listing URL | | `description` | string | Description HTML | | `image` | string | First photo | | `images` | array | Photo URLs | | `price.price_formatted` | string | Price as shown, such as `€ 39 990` | | `prices.public.price_raw` | number | Public asking price. Same number as `price` on the search card | | `prices.dealer.price_raw` | number | Dealer price when the listing has one | | `vehicle.make` | string | Make | | `vehicle.model` | string | Model | | `vehicle.model_version_input` | string | Version | | `vehicle.mileage_in_km` | string | Mileage label | | `vehicle.mileage_in_km_raw` | number | Mileage in kilometres | | `vehicle.primary_fuel.formatted` | string | Fuel | | `vehicle.transmission_type` | string | Gearbox | | `vehicle.power_in_kw` | string | Power | | `vehicle.first_registration_date` | string | First registration | | `vehicle.body_type` | string | Body | | `vehicle.body_color` | string | Colour | | `seller.type` | string | `Dealer` or a private seller | | `seller.company_name` | string | Dealer name | | `seller.phones` | array | `call_to`, `phone_type`, `formatted_number` | | `location.city` | string | City | | `location.zip` | string | Postcode | | `location.country_code` | string | Country | The listing also includes ratings, warranty, and the rest of the vehicle record when AutoScout24 sends them. ## Error codes | Code | Meaning | |---|---| | 400 | Empty query, or a host other than AutoScout24 | | 401 | Missing API key | | 404 | No listing selector, or the page has no listing details | | 500 | The page could not be fetched or parsed |