Capture the target site’s cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.
By default, /getPageSource returns HTML and nothing else - cookies set during the navigation are dropped after the response is sent. Set get_cookies=true to capture them.
The page source, same as you’d get without get_cookies
cookies
The target site’s cookies (its domain and subdomains) from the browser session that rendered the page, in canonical form. Third-party cookies (ads, analytics on other domains) are not included
proxy
ISO country code of the proxy that served the request
If a site sets a session cookie that gates access to data, you can fetch the page through ScrapeUnblocker once, capture cookies, then make follow-up requests directly with those cookies attached. Faster than going through the proxy for every call.
import requestsr1 = requests.post( "https://api.scrapeunblocker.com/getPageSource", params={"url": "https://example.com/login-landing", "get_cookies": True}, headers={"x-scrapeunblocker-key": "YOUR_API_KEY"},)cookies = {c["name"]: c["value"] for c in r1.json()["cookies"]}r2 = requests.get( "https://example.com/api/internal-data", cookies=cookies,)
This only works if the target site doesn’t bind sessions to the original IP. Many do. If r2 fails, route follow-up requests through ScrapeUnblocker too.
Some sites set bot-detection cookies (cf_clearance, __cf_bm, datadome, _dd_s) that are signed against the originating IP. Capturing them lets you confirm the protection actually completed - missing or empty bot cookies often correlate with a 403 on the next request.
The proxy field tells you which country pool served the request. If you need a follow-up call to land on the same continent (for IP-bound sessions), pass that value to proxy_country next time. See country targeting.
get_cookies=true takes precedence: with both parsed_data=true and get_cookies=true set, the response is the same html + cookies + proxy JSON shown above, and parsed_data is ignored. If you need structured data and cookies for the same page, make two calls.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ScrapeUnblocker","description":"Anti-bot bypass and proxy infrastructure for scraping any URL. Documentation, API reference, and integration guides.","colors":{"primary":"#4ECDC4","light":"#6FE0D8","dark":"#2BA89F"},"logo":{"light":"https://mintcdn.com/uabunblockify/WQ6Rz1mAXbRhufkg/logo/light.png?fit=max\u0026auto=format\u0026n=WQ6Rz1mAXbRhufkg\u0026q=85\u0026s=4e49142cd95f58f4097875dd8f6e33d6","dark":"https://mintcdn.com/uabunblockify/5GtspblR0A78LPHp/logo/dark.png?fit=max\u0026auto=format\u0026n=5GtspblR0A78LPHp\u0026q=85\u0026s=77fadf20123154b33fdddc4a9088f610","href":"https://docs.scrapeunblocker.com"},"favicon":"https://mintcdn.com/uabunblockify/3LXY3Z-0j4noo1D3/favicon.png?fit=max\u0026auto=format\u0026n=3LXY3Z-0j4noo1D3\u0026q=85\u0026s=44bee766596abc1295ffb55965985517","api":{"playground":{"display":"none"},"examples":{"languages":["curl","python","javascript"]}},"appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0B"}},"navbar":{"links":[{"href":"https://scrapeunblocker.com/contact","label":"Help center"}],"primary":{"type":"button","label":"Get API Key","href":"https://scrapeunblocker.com/pricing"}},"footer":{"socials":{"website":"https://scrapeunblocker.com","linkedin":"https://www.linkedin.com/company/scrapeunblocker"},"links":[{"header":"Product","items":[{"label":"Pricing","href":"https://scrapeunblocker.com/pricing"},{"label":"Get API key","href":"https://scrapeunblocker.com/pricing"}]},{"header":"Resources","items":[{"label":"Documentation","href":"https://docs.scrapeunblocker.com"},{"label":"API Reference","href":"https://docs.scrapeunblocker.com/api-reference/introduction"},{"label":"Blog","href":"https://scrapeunblocker.com/blog"}]},{"header":"Company","items":[{"label":"Contact","href":"https://scrapeunblocker.com/contact"},{"label":"Privacy","href":"https://scrapeunblocker.com/privacy-policy"},{"label":"Terms","href":"https://scrapeunblocker.com/terms-and-conditions"}]}]},"search":{"prompt":"Search docs..."},"seo":{"metatags":{"og:site_name":"ScrapeUnblocker Docs","og:type":"website","og:title":"ScrapeUnblocker Documentation","og:description":"Anti-bot bypass and proxy infrastructure for scraping any URL. API reference, guides, and code examples for getPageSource, serpApi, and getImage endpoints.","og:image":"https://docs.scrapeunblocker.com/logo/light.png","og:url":"https://docs.scrapeunblocker.com","twitter:card":"summary_large_image","twitter:title":"ScrapeUnblocker Documentation","twitter:description":"Anti-bot bypass and proxy infrastructure for scraping any URL. Three endpoints, one API key.","twitter:image":"https://docs.scrapeunblocker.com/logo/light.png","description":"Documentation for the ScrapeUnblocker API. Web scraping with built-in anti-bot bypass, residential proxies, and structured data extraction.","keywords":"web scraping API, anti-bot bypass, Cloudflare bypass, residential proxies, SERP scraping, page source API, data extraction, ScrapeUnblocker"},"indexing":"all"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://scrapeunblocker.com"},{"anchor":"Dashboard","icon":"gauge","href":"https://app.scrapeunblocker.com"},{"anchor":"Pricing","icon":"tag","href":"https://scrapeunblocker.com/pricing"},{"anchor":"Contact","icon":"envelope","href":"https://scrapeunblocker.com/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"uabunblockify","hasAudioNarration":false,"actualSubdomain":"uabunblockify","customDomains":["docs.scrapeunblocker.com"],"gitSource":{"type":"github","owner":"scrapeunblocker","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aef060f608552e5c950c480","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Plugins","count":263},{"language":"default","tag":"Scraping","count":164},{"language":"default","tag":"API Reference","count":162},{"language":"default","tag":"Documentation","count":139},{"language":"default","tag":"E-commerce","count":38},{"language":"default","tag":"Google","count":12},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Spider Cloud","count":9},{"language":"default","tag":"Travel","count":8},{"language":"default","tag":"Groceries","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/cookies-and-sessions","slug":"/guides/cookies-and-sessions","pageMetadata":{"title":"Cookies and sessions","description":"Capture the target site's cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.","href":"/guides/cookies-and-sessions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Capture the target site’s cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`By default, `,_jsx(_components.code,{children:`/getPageSource`}),` returns HTML and nothing else - cookies set during the navigation are dropped after the response is sent. Set `,_jsx(_components.code,{children:`get_cookies=true`}),` to capture them.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.scrapeunblocker.com/getPageSource?url=https://example.com\u0026get_cookies=true\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-scrapeunblocker-key: YOUR_API_KEY\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.scrapeunblocker.com/getPageSource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_cookies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-scrapeunblocker-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`120`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r.json()`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-shape`,children:`Response shape`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`get_cookies=true`}),`, the response becomes JSON:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003c!DOCTYPE html>...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cookies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"session_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"domain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1735689600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"httpOnly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"secure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sameSite\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Lax\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"proxy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"us\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`What it is`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`html`})}),_jsxs(_components.td,{children:[`The page source, same as you’d get without `,_jsx(_components.code,{children:`get_cookies`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cookies`})}),_jsx(_components.td,{children:`The target site’s cookies (its domain and subdomains) from the browser session that rendered the page, in canonical form. Third-party cookies (ads, analytics on other domains) are not included`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`proxy`})}),_jsx(_components.td,{children:`ISO country code of the proxy that served the request`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-can-do-with-the-cookies`,children:`What you can do with the cookies`}),`\n`,_jsx(Heading,{level:`3`,id:`replay-them-on-your-own-client`,children:`Replay them on your own client`}),`\n`,_jsx(_components.p,{children:`If a site sets a session cookie that gates access to data, you can fetch the page through ScrapeUnblocker once, capture cookies, then make follow-up requests directly with those cookies attached. Faster than going through the proxy for every call.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.scrapeunblocker.com/getPageSource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/login-landing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"get_cookies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-scrapeunblocker-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`cookies `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {c[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]: c[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` c `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r1.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cookies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/api/internal-data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` cookies`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`cookies,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This only works if the target site doesn’t bind sessions to the original IP. Many do. If `,_jsx(_components.code,{children:`r2`}),` fails, route follow-up requests through ScrapeUnblocker too.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`debug-bot-protection-state`,children:`Debug bot-protection state`}),`\n`,_jsxs(_components.p,{children:[`Some sites set bot-detection cookies (`,_jsx(_components.code,{children:`cf_clearance`}),`, `,_jsx(_components.code,{children:`__cf_bm`}),`, `,_jsx(_components.code,{children:`datadome`}),`, `,_jsx(_components.code,{children:`_dd_s`}),`) that are signed against the originating IP. Capturing them lets you confirm the protection actually completed - missing or empty bot cookies often correlate with a `,_jsx(_components.code,{children:`403`}),` on the next request.`]}),`\n`,_jsx(Heading,{level:`3`,id:`pin-a-proxy-country-for-follow-up-calls`,children:`Pin a proxy country for follow-up calls`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`proxy`}),` field tells you which country pool served the request. If you need a follow-up call to land on the same continent (for IP-bound sessions), pass that value to `,_jsx(_components.code,{children:`proxy_country`}),` next time. See `,_jsx(_components.a,{href:`/guides/country-targeting`,children:`country targeting`}),`.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`combining-with-parsed_data`,children:[`Combining with `,_jsx(_components.code,{children:`parsed_data`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`get_cookies=true`}),` takes precedence: with both `,_jsx(_components.code,{children:`parsed_data=true`}),` and `,_jsx(_components.code,{children:`get_cookies=true`}),` set, the response is the same `,_jsx(_components.code,{children:`html`}),` + `,_jsx(_components.code,{children:`cookies`}),` + `,_jsx(_components.code,{children:`proxy`}),` JSON shown above, and `,_jsx(_components.code,{children:`parsed_data`}),` is ignored. If you need structured data and cookies for the same page, make two calls.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cookies and sessions","description":"Capture the target site's cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.","href":"/guides/cookies-and-sessions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response shape","slug":"response-shape","depth":2,"children":[]},{"title":"What you can do with the cookies","slug":"what-you-can-do-with-the-cookies","depth":2,"children":[{"title":"Replay them on your own client","slug":"replay-them-on-your-own-client","depth":3,"children":[]},{"title":"Debug bot-protection state","slug":"debug-bot-protection-state","depth":3,"children":[]},{"title":"Pin a proxy country for follow-up calls","slug":"pin-a-proxy-country-for-follow-up-calls","depth":3,"children":[]}]},{"title":"Combining with parsed_data","slug":"combining-with-parsed_data","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"uabunblockify","siteName":"ScrapeUnblocker","title":"ScrapeUnblocker Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T06:24:36.070Z","originalFileLocation":"guides/cookies-and-sessions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Capture the target site\u0026#x27;s cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.\">\u003cmeta data-mint-head name=\"keywords\" content=\"web scraping API, anti-bot bypass, Cloudflare bypass, residential proxies, SERP scraping, page source API, data extraction, ScrapeUnblocker\">\u003cmeta data-mint-head name=\"application-name\" content=\"ScrapeUnblocker\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"ScrapeUnblocker Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Anti-bot bypass and proxy infrastructure for scraping any URL. API reference, guides, and code examples for getPageSource, serpApi, and getImage endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ScrapeUnblocker Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.scrapeunblocker.com/logo/light.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"ScrapeUnblocker Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Anti-bot bypass and proxy infrastructure for scraping any URL. Three endpoints, one API key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.scrapeunblocker.com/logo/light.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/uabunblockify/NxJNgQISj_m0Vjgn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ScrapeUnblocker\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4ECDC4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/cookies-and-sessions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.scrapeunblocker.com/#organization\",\"name\":\"ScrapeUnblocker\",\"url\":\"https://docs.scrapeunblocker.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/uabunblockify/WQ6Rz1mAXbRhufkg/logo/light.png?fit=max\u0026auto=format\u0026n=WQ6Rz1mAXbRhufkg\u0026q=85\u0026s=4e49142cd95f58f4097875dd8f6e33d6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.scrapeunblocker.com#website\",\"name\":\"ScrapeUnblocker\",\"url\":\"https://docs.scrapeunblocker.com\",\"publisher\":{\"@id\":\"https://docs.scrapeunblocker.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions#webpage\",\"url\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions\",\"name\":\"Cookies and sessions\",\"description\":\"Capture the target site's cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.\",\"dateModified\":\"2026-10-23T06:24:36.070Z\",\"isPartOf\":{\"@id\":\"https://docs.scrapeunblocker.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.scrapeunblocker.com/guides/page-source\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cookies and sessions\",\"item\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions#article\",\"headline\":\"Cookies and sessions\",\"name\":\"Cookies and sessions\",\"description\":\"Capture the target site's cookies and the proxy country that served a request - for session continuity, debugging, and downstream replay.\",\"url\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.scrapeunblocker.com/guides/cookies-and-sessions#webpage\"},\"image\":\"https://docs.scrapeunblocker.com/logo/light.png\",\"dateModified\":\"2026-10-23T06:24:36.070Z\",\"publisher\":{\"@id\":\"https://docs.scrapeunblocker.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.scrapeunblocker.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ScrapeUnblocker\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ScrapeUnblocker","nav":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://scrapeunblocker.com"},{"anchor":"Dashboard","icon":"gauge","href":"https://app.scrapeunblocker.com"},{"anchor":"Pricing","icon":"tag","href":"https://scrapeunblocker.com/pricing"},{"anchor":"Contact","icon":"envelope","href":"https://scrapeunblocker.com/contact"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","sidebarTitle":"Overview","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Errors","href":"/errors"},{"title":"Concurrency limits","href":"/rate-limits"},{"title":"Changelog","href":"/changelog"}]},{"group":"No-code area","pages":[{"title":"No-code area","sidebarTitle":"Overview","href":"/no-code/overview"}]},{"group":"Spider Cloud","pages":[{"title":"Spider Cloud","sidebarTitle":"Overview","href":"/spider-cloud/overview"},{"title":"Getting started with Spider Cloud","sidebarTitle":"Getting started","href":"/spider-cloud/getting-started"},{"title":"SDK and command line","sidebarTitle":"SDK \u0026 CLI","href":"/spider-cloud/sdk"},{"title":"ScrapeUnblocker routing","sidebarTitle":"Routing modes","href":"/spider-cloud/routing"},{"title":"Projects and settings","sidebarTitle":"Projects","href":"/spider-cloud/projects"},{"title":"Deploys and refs","sidebarTitle":"Deploys","href":"/spider-cloud/deploys"},{"title":"Jobs","sidebarTitle":"Jobs","href":"/spider-cloud/jobs"},{"title":"Schedules","sidebarTitle":"Schedules","href":"/spider-cloud/schedules"},{"title":"Delivery destinations","sidebarTitle":"Destinations","href":"/spider-cloud/destinations"}]},{"group":"Plugins","pages":[{"title":"Plugins","sidebarTitle":"Overview","href":"/plugins/overview"},{"group":"Travel","icon":"plane","expanded":false,"pages":[{"title":"Skyscanner plugins","sidebarTitle":"Skyscanner","href":"/plugins/skyscanner"},{"title":"Booking.com Hotels plugin","sidebarTitle":"Booking.com Hotels","href":"/plugins/booking"},{"title":"Booking.com Reviews plugin","sidebarTitle":"Booking.com Reviews","href":"/plugins/booking-reviews"},{"title":"Airbnb Stays plugin","sidebarTitle":"Airbnb Stays","href":"/plugins/airbnb"},{"title":"Airbnb Listing plugin","sidebarTitle":"Airbnb Listing","href":"/plugins/airbnb-listing"},{"title":"Airbnb Reviews plugin","sidebarTitle":"Airbnb Reviews","href":"/plugins/airbnb-reviews"},{"title":"Tripadvisor Places plugin","sidebarTitle":"Tripadvisor Places","href":"/plugins/tripadvisor"},{"title":"Tripadvisor Reviews plugin","sidebarTitle":"Tripadvisor Reviews","href":"/plugins/tripadvisor-reviews"}]},{"group":"Google","icon":"google","expanded":false,"pages":[{"title":"Google Local plugin","sidebarTitle":"Google Local","href":"/plugins/google-local"},{"title":"Google Images plugin","sidebarTitle":"Google Images","href":"/plugins/google-images"},{"title":"Google Maps Place Details plugin","sidebarTitle":"Google Maps Place","href":"/plugins/google-maps-place"},{"title":"Google Maps Reviews plugin","sidebarTitle":"Google Maps Reviews","href":"/plugins/google-maps-reviews"},{"title":"Google Trends plugin","sidebarTitle":"Google Trends","href":"/plugins/google-trends"},{"title":"Google Shopping plugin","sidebarTitle":"Google Shopping","href":"/plugins/google-shopping"},{"title":"Google Jobs plugin","sidebarTitle":"Google Jobs","href":"/plugins/google-jobs"},{"title":"Google Hotels plugin","sidebarTitle":"Google Hotels","href":"/plugins/google-hotels"},{"title":"Google News plugin","sidebarTitle":"Google News","href":"/plugins/google-news"},{"title":"Google Ads Transparency plugin","sidebarTitle":"Google Ads Transparency","href":"/plugins/google-ads-transparency"},{"title":"Google AI Mode plugin","sidebarTitle":"Google AI Mode","href":"/plugins/google-ai-mode"},{"title":"Google Lens plugin","sidebarTitle":"Google Lens","href":"/plugins/google-lens"}]},{"group":"AI","icon":"robot","expanded":false,"pages":[{"title":"Gemini plugin","sidebarTitle":"Gemini","href":"/plugins/gemini"},{"title":"ChatGPT plugin","sidebarTitle":"ChatGPT","href":"/plugins/chatgpt"}]},{"group":"Search engines","icon":"magnifying-glass","expanded":false,"pages":[{"title":"Bing plugin","sidebarTitle":"Bing","href":"/plugins/bing"},{"title":"DuckDuckGo plugin","sidebarTitle":"DuckDuckGo","href":"/plugins/duckduckgo"},{"title":"Yahoo plugin","sidebarTitle":"Yahoo","href":"/plugins/yahoo"},{"title":"Brave Search plugin","sidebarTitle":"Brave Search","href":"/plugins/brave"}]},{"group":"E-commerce","icon":"cart-shopping","expanded":false,"pages":[{"title":"Amazon plugin","sidebarTitle":"Amazon","href":"/plugins/amazon"},{"title":"Amazon Best Sellers plugin","sidebarTitle":"Amazon Best Sellers","href":"/plugins/amazon-bestsellers"},{"title":"Amazon Reviews plugin","sidebarTitle":"Amazon Reviews","href":"/plugins/amazon-reviews"},{"title":"Amazon offers plugin","sidebarTitle":"Amazon Offers","href":"/plugins/amazon-offers"},{"title":"Amazon seller plugin","sidebarTitle":"Amazon Seller","href":"/plugins/amazon-seller"},{"title":"Walmart plugin","sidebarTitle":"Walmart","href":"/plugins/walmart"},{"title":"Target plugin","sidebarTitle":"Target","href":"/plugins/target"},{"title":"Best Buy plugin","sidebarTitle":"Best Buy","href":"/plugins/best-buy"},{"title":"Home Depot Search plugin","sidebarTitle":"Home Depot Search","href":"/plugins/home-depot"},{"title":"Costco plugin","sidebarTitle":"Costco","href":"/plugins/costco"},{"title":"Etsy plugin","sidebarTitle":"Etsy","href":"/plugins/etsy"},{"title":"SHEIN Search plugin","sidebarTitle":"SHEIN Search","href":"/plugins/shein"},{"title":"Zalando Search plugin","sidebarTitle":"Zalando Search","href":"/plugins/zalando"},{"title":"AliExpress plugin","sidebarTitle":"AliExpress","href":"/plugins/aliexpress"},{"title":"Alibaba plugin","sidebarTitle":"Alibaba","href":"/plugins/alibaba"},{"title":"1688 plugin","sidebarTitle":"1688","href":"/plugins/1688"},{"title":"TikTok Shop plugin","sidebarTitle":"TikTok Shop","href":"/plugins/tiktok-shop"},{"title":"oopbuy Search plugin","sidebarTitle":"oopbuy Search","href":"/plugins/oopbuy-search"},{"title":"Smyths Toys plugin","sidebarTitle":"Smyths Toys","href":"/plugins/smyths"},{"title":"Wish plugin","sidebarTitle":"Wish","href":"/plugins/wish"},{"title":"Shopee plugin","sidebarTitle":"Shopee","href":"/plugins/shopee"},{"title":"Taobao \u0026 Tmall plugin","sidebarTitle":"Taobao \u0026 Tmall","href":"/plugins/taobao"},{"title":"Flipkart plugin","sidebarTitle":"Flipkart","href":"/plugins/flipkart"},{"title":"Lazada plugin","sidebarTitle":"Lazada","href":"/plugins/lazada"},{"title":"Allegro plugin","sidebarTitle":"Allegro","href":"/plugins/allegro"},{"title":"Falabella plugin","sidebarTitle":"Falabella","href":"/plugins/falabella"},{"title":"Magazine Luiza plugin","sidebarTitle":"Magazine Luiza","href":"/plugins/magazine-luiza"},{"title":"MediaMarkt plugin","sidebarTitle":"MediaMarkt","href":"/plugins/mediamarkt"},{"title":"Cdiscount plugin","sidebarTitle":"Cdiscount","href":"/plugins/cdiscount"},{"title":"idealo plugin","sidebarTitle":"idealo","href":"/plugins/idealo"},{"title":"Rakuten plugin","sidebarTitle":"Rakuten","href":"/plugins/rakuten"},{"title":"IndiaMART plugin","sidebarTitle":"IndiaMART","href":"/plugins/indiamart"},{"title":"Bed Bath \u0026 Beyond plugin","sidebarTitle":"Bed Bath \u0026 Beyond","href":"/plugins/bedbathandbeyond"},{"title":"Petco plugin","sidebarTitle":"Petco","href":"/plugins/petco"},{"title":"Neobits plugin","sidebarTitle":"Neobits","href":"/plugins/neobits"},{"title":"Lowe's plugin","sidebarTitle":"Lowe's","href":"/plugins/lowes"},{"title":"Menards plugin","sidebarTitle":"Menards","href":"/plugins/menards"},{"title":"Grainger plugin","sidebarTitle":"Grainger","href":"/plugins/grainger"}]},{"group":"Classifieds \u0026 Resale","icon":"store","expanded":false,"pages":[{"title":"eBay plugin","sidebarTitle":"eBay","href":"/plugins/ebay"},{"title":"Vinted Search plugin","sidebarTitle":"Vinted Search","href":"/plugins/vinted"},{"title":"Leboncoin Search plugin","sidebarTitle":"Leboncoin Search","href":"/plugins/leboncoin"}]},{"group":"Groceries","icon":"basket-shopping","expanded":false,"pages":[{"title":"Woolworths plugin","sidebarTitle":"Woolworths","href":"/plugins/woolworths"},{"title":"Coles plugin","sidebarTitle":"Coles","href":"/plugins/coles"},{"title":"ALDI Australia plugin","sidebarTitle":"ALDI Australia","href":"/plugins/aldi-au"},{"title":"Kroger plugin","sidebarTitle":"Kroger","href":"/plugins/kroger"},{"title":"Instacart plugin","sidebarTitle":"Instacart","href":"/plugins/instacart"},{"title":"Publix plugin","sidebarTitle":"Publix","href":"/plugins/publix"},{"title":"Bodega Aurrera plugin","sidebarTitle":"Bodega Aurrera","href":"/plugins/bodega-aurrera"}]},{"group":"Real estate","icon":"house","expanded":false,"pages":[{"title":"Zillow plugin","sidebarTitle":"Zillow","href":"/plugins/zillow"},{"title":"Redfin plugin","sidebarTitle":"Redfin","href":"/plugins/redfin"},{"title":"Rightmove plugin","sidebarTitle":"Rightmove","href":"/plugins/rightmove"},{"title":"Idealista plugin","sidebarTitle":"Idealista","href":"/plugins/idealista"},{"title":"ImmobilienScout24 plugin","sidebarTitle":"ImmobilienScout24","href":"/plugins/immobilienscout24"}]},{"group":"Vehicles","icon":"car","expanded":false,"pages":[{"title":"Mobile.de Car plugin","sidebarTitle":"Mobile.de Cars","href":"/plugins/mobile-de"},{"title":"AutoScout24 plugin","sidebarTitle":"AutoScout24","href":"/plugins/autoscout24"}]},{"group":"Jobs","icon":"briefcase","expanded":false,"pages":[{"title":"Indeed Jobs plugin","sidebarTitle":"Indeed Jobs","href":"/plugins/indeed"},{"title":"Glassdoor plugin","sidebarTitle":"Glassdoor","href":"/plugins/glassdoor"},{"title":"Naukri plugin","sidebarTitle":"Naukri","href":"/plugins/naukri"},{"title":"Wellfound plugin","sidebarTitle":"Wellfound","href":"/plugins/wellfound"},{"title":"Career Sites plugin","sidebarTitle":"Career Sites","href":"/plugins/career-site"},{"title":"Upwork plugin","sidebarTitle":"Upwork","href":"/plugins/upwork"}]},{"group":"Reviews \u0026 Companies","icon":"star","expanded":false,"pages":[{"title":"Trustpilot plugin","sidebarTitle":"Trustpilot","href":"/plugins/trustpilot"},{"title":"G2 plugin","sidebarTitle":"G2","href":"/plugins/g2"},{"title":"Capterra plugin","sidebarTitle":"Capterra","href":"/plugins/capterra"},{"title":"Product Hunt plugin","sidebarTitle":"Product Hunt","href":"/plugins/producthunt"},{"title":"Crunchbase plugin","sidebarTitle":"Crunchbase","href":"/plugins/crunchbase"}]},{"group":"Local \u0026 Maps","icon":"location-dot","expanded":false,"pages":[{"title":"Yelp Local plugin","sidebarTitle":"Yelp Local","href":"/plugins/yelp"},{"title":"Yelp Reviews plugin","sidebarTitle":"Yelp Reviews","href":"/plugins/yelp-reviews"},{"title":"Naver Place plugin","sidebarTitle":"Naver Place","href":"/plugins/naver-place"}]},{"group":"Apps","icon":"mobile-screen","expanded":false,"pages":[{"title":"Google Play plugin","sidebarTitle":"Google Play","href":"/plugins/google-play"},{"title":"App Store plugin","sidebarTitle":"App Store","href":"/plugins/app-store"}]},{"group":"Video \u0026 Music","icon":"circle-play","expanded":false,"pages":[{"title":"YouTube plugin","sidebarTitle":"YouTube","href":"/plugins/youtube"},{"title":"Spotify plugin","sidebarTitle":"Spotify","href":"/plugins/spotify"}]},{"group":"Sports","icon":"futbol","expanded":false,"pages":[{"title":"SofaScore plugin","sidebarTitle":"SofaScore","href":"/plugins/sofascore"}]},{"group":"SEO \u0026 Ads","icon":"chart-line","expanded":false,"pages":[{"title":"Similarweb plugin","sidebarTitle":"Similarweb","href":"/plugins/similarweb"},{"title":"Ahrefs plugin","sidebarTitle":"Ahrefs","href":"/plugins/ahrefs"},{"title":"Semrush plugin","sidebarTitle":"Semrush","href":"/plugins/semrush"},{"title":"Meta Ad Library plugin","sidebarTitle":"Meta Ad Library","href":"/plugins/meta-ad-library"}]}]},{"group":"AI Assistants","pages":[{"title":"MCP Server","href":"/sdks/mcp"},{"title":"Claude Code Plugin","href":"/sdks/claude-code"},{"title":"ChatGPT (MCP)","href":"/sdks/chatgpt"}]},{"group":"Guides","pages":[{"title":"Fetching page HTML","href":"/guides/page-source"},{"title":"Markdown for LLMs","href":"/guides/markdown"},{"title":"Browser steps and element discovery","href":"/guides/browser-steps"},{"title":"Parsed data extraction","href":"/guides/parsed-data"},{"title":"Google SERP scraping","href":"/guides/serp-scraping"},{"title":"Image fetching","href":"/guides/image-fetching"},{"title":"Country targeting","description":"Force requests through a specific country's proxy pool.","href":"/guides/country-targeting"},{"title":"Cookies and sessions","href":"/guides/cookies-and-sessions"},{"title":"Handling failures","description":"What 403, 503, 504, 523, 422 and a dead URL actually mean - and how to recover from each.","href":"/guides/handling-failures"}]},{"group":"Code Examples","pages":[{"title":"cURL","href":"/sdks/curl"},{"title":"Python","href":"/sdks/python"},{"title":"Node.js","href":"/sdks/nodejs"},{"title":"PHP","href":"/sdks/php"},{"title":"Ruby","href":"/sdks/ruby"},{"title":"Scrapy middleware","href":"/sdks/scrapy"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"ScrapeUnblocker Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}