autotrader template is built to obtain autotrader website information.
Useful Links
- Real-time and Asynchronous integration methods are available for this template.
- Batch requests are also supported.
Input Parameters
Request parameters available for the Autotrader template:| Parameter | Type | Required | Description |
|---|---|---|---|
target | string | ✅ | Target type must be set to autotrader. |
url | string | ✅ | autotrader URL. |
headless | string | html value enables JavaScript rendering. Read more.png value enables screenshot response. Read more. | |
geo | string | Set the country to use when submitting the query. | |
device_type | string | Specify device type and browser. Read more. | |
xhr | boolean | Set to true to retrieve a list of XHR and fetch requests.Read more.Default value is false. | |
markdown | boolean | Set to true to receive a Markdown response. Read more.Default value is false. |
Request Examples
# update 'TOKEN VALUE' with your API KEY
curl --request 'POST' \
--url 'https://data.decodo.com/v1/scrape' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer TOKEN VALUE' \
--header 'Content-Type: application/json' \
--data '
{
"target": "autotrader",
"url": "https://www.autotrader.co.uk/car-search?channel=cars&postcode=SE15+6GY&make=",
"headless": "html"
}
'
const scrape = async() => {
const response = await fetch("https://data.decodo.com/v1/scrape", {
method: "POST",
body: JSON.stringify({
"target": "autotrader",
"url": "https://www.autotrader.co.uk/car-search?channel=cars&postcode=SE15+6GY&make=",
"headless": "html"
}),
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN VALUE" // update with your API KEY
},
}).catch(error => console.log(error));
console.log(await response.json())
}
scrape()
import requests
url = "https://data.decodo.com/v1/scrape"
payload = {
"target": "autotrader",
"url": "https://www.autotrader.co.uk/car-search?channel=cars&postcode=SE15+6GY&make=",
"headless": "html"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Bearer TOKEN VALUE" # update with your API KEY
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Output
Response Example
JSON
{
"results": [
{
"content": "<!DOCTYPE html><html lang=\"en\" data-previous-scroll-y=\"-0px\" class=\"sp-message-open\"><head><script nonce=\"\"> (function (d, s) {\n var sampleRate = 10;\n if (Math.ceil(Math.random() * 100) >= sampleRate) {\n return;\n }\n var j = d.createElement(s);\n var t = d.getElementsByTagName(s)[0];\n j.src =\n 'https://apm-assets.prod.atcdn.co.uk/elastic-apm-rum.umd.min.js';\n j.onload = function () {\n elasticApm.init({\n serviceName: 'sauron-search-resu...",
"headers": {
"cache-control": "max-age=60",
"cf-cache-status": "DYNAMIC",
"cf-ray": "9fd936c42b7c623b-OTP",
"content-encoding": "gzip",
"content-security-policy": "upgrade-insecure-requests; report-uri https://app.csp-report-receiver.prod.k8.atcloud.io/api/csp/report-uri; report-to autotrader-csp;",
"content-type": "text/html;charset=utf-8",
"date": "Mon, 18 May 2026 07:40:28 GMT",
"link": "<https://apm-assets.prod.atcdn.co.uk/elastic-apm-rum.umd.min.js>; rel=\"prefetch\"",
"referrer-policy": "origin-when-cross-origin",
"reporting-endpoints": "autotrader-csp=\"https://app.csp-report-receiver.prod.k8.atcloud.io/api/csp/report-to\"",
"server": "cloudflare",
"strict-transport-security": "max-age=31536000",
"vary": "Accept-Encoding, accept-encoding, Accept-Encoding",
"x-at-service": "sauron-search-results-app",
"x-atcloud-response-service": "consumer-gateway",
"x-content-type-options": "nosniff",
"x-frame-options": "SAMEORIGIN",
"x-request-id": "9fd936c42b7c623b",
"x-xss-protection": "1; mode=block"
},
"cookies": [
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": -1,
"httponly": "",
"key": "bucket",
"max-age": "",
"path": "/",
"samesite": "",
"secure": false,
"value": "desktop",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": 1810626028.437895,
"httponly": "",
"key": "userid",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "ID=7d36e623-0abe-43c8-9133-eea105669618",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": 1810626028.437913,
"httponly": "",
"key": "user",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "STATUS=0&HASH=dcc618499edeb093a029d7ca9d31b30f&PR=&ID=7d36e623-0abe-43c8-9133-eea105669618",
"version": ""
},
{
"comment": "",
"domain": ".avalanche.autotrader.co.uk",
"expires": 1779091829.317089,
"httponly": "",
"key": "__cf_bm",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "MC5PUi8Oy5VPwjW324F4DH.fJCMJll6ei7wMqrK4CX8-1779090029.2076461-1.0.1.1-s.WBgWVmBw9Db4ad.fLwM795553.x5kwLa_uih3mARBoL83Ooo.ptE.b19hqJXhHqKzlwGh.D5YTo8PHOBmF5wS5KZYmt5IIt6N.zlKtig6dywYBPQqnYyRzH.pc0Obh",
"version": ""
},
{
"comment": "",
"domain": "www.autotrader.co.uk",
"expires": -1,
"httponly": "",
"key": "postcode",
"max-age": "",
"path": "/",
"samesite": "",
"secure": false,
"value": "postcode=SE15%206GY",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": 1810626029.999696,
"httponly": "",
"key": "sp",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "c95456c2-f615-4478-93bc-f500e5d04807",
"version": ""
},
{
"comment": "",
"domain": "www.autotrader.co.uk",
"expires": 1781682030.037583,
"httponly": "",
"key": "_sp_v1_ss",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "1:H4sIAAAAAAAAAItWqo5RKimOUbKKJpuRB2IY1MbqxCilgph5pTk5QHYJWEF17SCVUIoFANDVDhr8AAAA",
"version": ""
},
{
"comment": "",
"domain": "www.autotrader.co.uk",
"expires": 1781682030.037664,
"httponly": "",
"key": "_sp_v1_p",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "392",
"version": ""
},
{
"comment": "",
"domain": "www.autotrader.co.uk",
"expires": 1781682030.037687,
"httponly": "",
"key": "_sp_v1_data",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "1173773",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": 1810626030.037918,
"httponly": "",
"key": "_sp_su",
"max-age": "",
"path": "/",
"samesite": "",
"secure": true,
"value": "false",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": 1810626032,
"httponly": "",
"key": "LPVID",
"max-age": "",
"path": "/",
"samesite": "",
"secure": false,
"value": "kwZDdhNDEyMDRiMmFlMTY1",
"version": ""
},
{
"comment": "",
"domain": ".autotrader.co.uk",
"expires": -1,
"httponly": "",
"key": "LPSID-79835795",
"max-age": "",
"path": "/",
"samesite": "",
"secure": false,
"value": "_YbJwJI4RYmhSMPuPwucDA",
"version": ""
}
],
"status_code": 200,
"task_id": "7462044411841497089",
"created_at": "2026-05-18 07:40:25",
"updated_at": "2026-05-18 07:40:34",
"type": "raw"
}
]
}
Support
Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.
You can also reach us anytime via email at support@decodo.com.
Feedback
Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.
Have feedback? Share your thoughts on how we can improve.