target template is built to obtain content directly from various Target URLs. Instead of passing multiple parameters, you can simply provide a direct URL to the desired Target page.
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 Target URL template:| Parameter | Type | Required | Description |
|---|---|---|---|
target | string | ✅ | Target type must be set to target |
url | string | ✅ | A URL of a Target page. Additional parameters can be specified in the URL itself. |
headless | string | html value enables JavaScript rendering. Read more.png value enables screenshot response. Read more. | |
device_type | string | Specify device type and browser. Read more. | |
delivery_type | string | Define the delivery method, using available options: pickup, delivery, shipping. | |
delivery_zip | string | Set zip code of delivery location. Must be set when delivery or shipping delivery methods are chosen. | |
store_id | A 3 to 4-character Target store ID. Must be set when pickup delivery method is chosen. | ||
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": "target",
"url": "https://www.target.com/finds/ideas",
"headless": "html"
}
'
const scrape = async() => {
const response = await fetch("https://data.decodo.com/v1/scrape", {
method: "POST",
body: JSON.stringify({
"target": "target",
"url": "https://www.target.com/finds/ideas",
"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": "target",
"url": "https://www.target.com/finds/ideas",
"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
The response structure will vary depending on the providedurl.
Response Example
{
"results": [
{
"content":"<!DOCTYPE html><html lang=\"en-US\"><head><meta charset=\"utf-8\" data-next-head=\"\"><meta charset=\"utf-8\"><meta content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=2, interactive-widget=overlays-content\" name=\"viewport\" data-next-head=\"\"><script async=\"\" crossorigin=\"anonymous\" src=\"https://assets.targetimg1.com/webui/scripts/fullstory/fs.20250319-01.js\"></script><script async=\"\" src=\"https://edge.curalate.com/sites/target-jmf638/site/latest/site.min.j...",
"headers": {
"age": "0",
"date": "Tue, 25 Nov 2025 11:28:17 GMT",
"etag": "\"sshdatrkuu5w7g\"",
"vary": "Accept-Encoding",
"content-type": "text/html; charset=utf-8",
"accept-ranges": "bytes",
"cache-control": "no-cache",
"content-length": "50008",
"referrer-policy": "no-referrer-when-downgrade",
"x-frame-options": "SAMEORIGIN",
"content-encoding": "gzip",
"x-content-type-options": "nosniff",
"content-security-policy": "frame-ancestors 'self' https://*.target.com;",
"strict-transport-security": "max-age=31536000; includeSubDomains"
},
"cookies": [
{
"key": "visitorId",
"path": "/",
"value": "019ABAB222980201AE5B093F1871A316",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "onboardingGuest",
"path": "/",
"value": "timestamp=1764068827885",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "TealeafAkaSid",
"path": "/",
"value": "Ey6SA-Kp5Fj-Ug8nBhoDgAuz1aQsxDo2",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": 1766662101.458592,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "GuestLocation",
"path": "/",
"value": "171112|-0.600|-78.600|P|EC",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "sapphire",
"path": "/",
"value": "1",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": 1766699843.262504,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "UserLocation",
"path": "/",
"value": "17111|-0.600|-78.600|P|EC",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "ffsession",
"path": "/",
"value": "{%22sessionHash%22:%226e230efcab9081764068830351%22}",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "pxcts",
"path": "/",
"value": "e3fe4ca8-c9ee-11f0-b6ce-1231b9e06318",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "_pxvid",
"path": "/",
"value": "e3fe20ab-c9ee-11f0-b6c8-b1bc67dda566",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "sddStore",
"path": "/",
"value": "DSI_2186|DSN_Harrisburg%20East|DSZ_17111",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "fiatsCookie",
"path": "/",
"value": "DSI_2186|DSN_Harrisburg%20East|DSZ_17111",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": 1795606098,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "egsSessionId",
"path": "/",
"value": "157ac7ed-5625-40a8-8f98-11dabe9f9c47",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "accessToken",
"path": "/",
"value": "eyJraWQiOiJlYXMyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxYzNhM2MxNC1lM2ExLTQ0NjctODJiOC05ZWQ4YWM5MjQwYTAiLCJpc3MiOiJNSTYiLCJleHAiOjE3NjQxNTUyMzIsImlhdCI6MTc2NDA2ODgzMiwianRpIjoiVEdULjkzNDE5YjkyOTNiYzQ2MzRiN2VhZTljZThlMmUwZmZmLWwiLCJza3kiOiJlYXMyIiwic3V0IjoiRyIsImRpZCI6ImY3OWY3Y2YxZTk0ODQ0ODc2MjRlNWE0NmRhNzUyYjFiNWQ1ZDFiOGQ3OWE3ZTcxNjgzNTk3MzM4NzUyNjRlNWYiLCJzY28iOiJlY29tLm5vbmUsb3BlbmlkIiwiY2xpIjoiZWNvbS13ZWItMS4wLjAiLCJhc2wiOiJMIn0.u-VTwZJEkug6SFAzyGhBo7ja6r3N-yx3nbfjlCi4CUgoInKFPwfiuGCwuvPbT0SC9yAW_EdJx3r3eFpWUI5CKz1r-pQgTDGNXMrXBIht-0O3wKspwuP3dvu8qh1wHULdBAXuhi7bEthFjaiJfeVHsWnIs12bxos07xqBOQm7VeOVaO8hy-8Lybziyo6s8OJvXVR_k67Wr_cdXfkcYWSTmMkSMY0ovy2SwjwqffwD7pvIUtM9ss79DepNw9hZbtkfp4rtQCDofahRQLMUXKQG5tIE_MtUbJgrQo8ChnPd8NR0Pec3qlVofaw7JgVr9mhY1KykbZx9xRdGZiQ16quX0w",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "idToken",
"path": "/",
"value": "eyJhbGciOiJub25lIn0.eyJzdWIiOiIxYzNhM2MxNC1lM2ExLTQ0NjctODJiOC05ZWQ4YWM5MjQwYTAiLCJpc3MiOiJNSTYiLCJleHAiOjE3NjQxNTUyMzIsImlhdCI6MTc2NDA2ODgzMiwiYXNzIjoiTCIsInN1dCI6IkciLCJjbGkiOiJlY29tLXdlYi0xLjAuMCIsInBybyI6eyJmbiI6bnVsbCwiZm51IjpudWxsLCJlbSI6bnVsbCwicGgiOmZhbHNlLCJsZWQiOm51bGwsImx0eSI6ZmFsc2UsInN0IjoiUCIsInNuIjpudWxsfX0.",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "refreshToken",
"path": "/",
"value": "YnJEsUpH0ykhSepLa6s7sQpFBF-YAgUsw3IWYLCTB6AyDEQtZ1U_t6ddSqjHpLpap9J0o6dd1k-mXh8fOJfUGA",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "adScriptData",
"path": "/",
"value": "P",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "test_cookie",
"path": "/",
"value": "CheckForPermission",
"domain": ".doubleclick.net",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__gads",
"path": "/",
"value": "ID=cde9e1dc87e905c6:T=1764068832:RT=1764068832:S=ALNI_Ma8dbUTnY7sRsYOvSwf3g0BYoHxEg",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__gpi",
"path": "/",
"value": "UID=000012a87e1c3818:T=1764068832:RT=1764068832:S=ALNI_MZUUT8Vdrpm0-2xfn3jVK2D-kk89g",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__eoi",
"path": "/",
"value": "ID=8f1f8b69da752196:T=1764068832:RT=1764068832:S=AA-AfjZN2Yw7e5DjCAyfbypxOVaa",
"domain": ".target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "kampyle_userid",
"path": "/",
"value": "3ea9-0d24-71c5-435a-393d-626e-d2db-5cb9",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "kampyleUserSession",
"path": "/",
"value": "1764070058619",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "kampyleUserSessionsCount",
"path": "/",
"value": "2",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "kampyleUserPercentile",
"path": "/",
"value": "79.67269475064822",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "kampyleSessionPageCounter",
"path": "/",
"value": "1",
"domain": "www.target.com",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "_px3",
"path": "/",
"value": "7c0bfebe2a0f348ff68fefb46fd25a6b9a30ed877061bfae42dcb75271455934:jZPBTzdM/SWIJTHce80Glqfk7LuDO9Ccfgh9Qi26pTyqpytzdFyJY3CH4XqfUtBLMR33tMN6VzeydoYjuurLEg==:1000:XmW30flOciOs2XgykBXeLg/gyoOcHW1ljRLCMdnR/P9LYLrUVhwx0cS87d25Fn7EDkQBwps9ZseMXL9zgy4mK458ZXBlsxXYRB72NudFZofz2E5n/wr+mvdN6BNCMtRWncsn43jq7Wa4cnAY/a/fnhX221h3KwtJzHWmGXZKOWx3mLqGb35nqb+XIiT9Gm6h4Qxil8Ad0gGzzq1LSA6TU9pd524LwZOmnUCMY74Fl15RoNKogxt9VT6l7jX9D9VT5uou9It9zgWy/zw+SfkSMOsB3UpV7SPxeZUgKeczZ3qTfhU1K1UPLtLcPzB4Z/CZCYBMEa3mkAH3sAM/htbkLA==",
"domain": ".target.com",
"secure": false,
"comment": "",
"expires": 1764070430,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "_tgt_session",
"path": "/",
"value": "a3276207f41b4ca8bc130734453c0f0f.6006adbd30a6677a238048d5472390dad254b7841177e0e30c06d7cd7fea16b852d09acfe0a268983d1003bfc71e9915b6f07828b7803c728d0c0421177e24cf7649c047d303dedb1daaaf2d25e3eda62a4051e8afa060af895435344bfacc8d956aaf82aca35ac5937f73ac85323f6dd9ea851c7bc10b4ba74872116e33114174ed876187d4b33542b0cf07e5990386ebb563a538fae873cd3cda1022bf92e4ab90615c0cda1a88007fac552572eb1a359e25751c0c4b863c4a549465b9c4dacaea35c58ddea4562e4b21cd1509c021d0b8686105f2983f9ffbfb7b821ef59f45.0x931ca3b573bd6d04b92a02c10adb99fcc437a5abef6ffa5e2ec812d9ff6bf037",
"domain": "redsky.target.com",
"secure": false,
"comment": "",
"expires": 1764156502.009302,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
}
],
"status_code": 200,
"task_id": "7399046236914852865",
"created_at": "2025-11-25 11:28:10",
"updated_at": "2025-11-25 11:28:27"
}
]
}
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.