Output format for the response content. raw (default) returns the response body unchanged; json returns structured data (requires schema); markdown returns the page as markdown.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Browserbase Documentation","description":"Browserbase is the Browser Agent Platform: one API key gives your agent everything it needs to browse and interact with the web like a human: Browsers, Fetch, Search, Agent Identity, Functions, and the Model Gateway.","colors":{"primary":"#F03603","light":"#F03603","dark":"#F03603"},"logo":{"light":"https://mintcdn.com/browserbase/SoYEm-IyDzD4GuwP/logo/light.svg?fit=max\u0026auto=format\u0026n=SoYEm-IyDzD4GuwP\u0026q=85\u0026s=67d2dac0a6cdd091f364c6763a3393cd","dark":"https://mintcdn.com/browserbase/SoYEm-IyDzD4GuwP/logo/dark.svg?fit=max\u0026auto=format\u0026n=SoYEm-IyDzD4GuwP\u0026q=85\u0026s=a5e13fbe06c29ec92c87ddef9a46b1c8","href":"https://www.browserbase.com"},"favicon":"https://mintcdn.com/browserbase/giE_cpy18f2mWHqr/favicon.svg?fit=max\u0026auto=format\u0026n=giE_cpy18f2mWHqr\u0026q=85\u0026s=e01181f881b1e04052b2ad95c52bdca0","navbar":{"primary":{"type":"button","label":"Support","href":"https://portal.usepylon.com/browserbase/forms/talk-to-an-engineer"}},"footer":{"socials":{"website":"https://www.browserbase.com","x":"https://x.com/browserbase","github":"https://github.com/browserbase","linkedin":"https://www.linkedin.com/company/browserbasehq"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"integrations":{"gtm":{"tagId":"GTM-WL6V5CB8"},"posthog":{"apiKey":"phc_L5OdEhuGyIcW1JtLxco9njLYnuUx10mqlVe6Tj54kHS","apiHost":"https://us.i.posthog.com"}},"contextual":{"options":["copy","chatgpt","claude","view","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"browserbase","hasAudioNarration":false,"actualSubdomain":"browserbase","customDomains":["docs.browserbase.com"],"gitSource":{"type":"github","owner":"browserbase","repo":"core","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee7af07e467377df3ca1da","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Integrations","count":150},{"language":"default","tag":"Docs","count":88},{"language":"default","tag":"APIs \u0026 SDKs","count":76},{"language":"default","tag":"APIs","count":72},{"language":"default","tag":"Platform","count":61},{"language":"default","tag":"Browsers","count":28},{"language":"default","tag":"Agents","count":14},{"language":"default","tag":"Functions API","count":14},{"language":"default","tag":"Sessions API","count":11},{"language":"default","tag":"Agents API","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"instinct-self-updating-docs","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":[{"filePath":"style.css","content":"*{border-radius:0!important}.responsive-columns{--_cols: var(--cols, 1);--_cols-effective: min(1, var(--_cols));grid-template-columns:repeat(var(--_cols-effective), 1fr)!important}@container columns-container (min-width: 36rem){.responsive-columns{--_cols-effective: min(2, var(--_cols))}}@container columns-container (min-width: 48rem){.responsive-columns{--_cols-is-4: calc(1 - sign(abs(var(--_cols) - 4)));--_cols-effective: calc(min(3, var(--_cols)) - var(--_cols-is-4))}}@container columns-container (min-width: 64rem){.responsive-columns{--_cols-effective: var(--_cols)}}"}],"page":{"pagePath":"reference/api/fetch-a-page","slug":"/reference/api/fetch-a-page","pageMetadata":{"openapi":"post /v1/fetch","title":"Fetch a Page","description":"Fetch a page and return its content, headers, and metadata.","href":"/reference/api/fetch-a-page"},"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: \"Fetch a page and return its content, headers, and metadata.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/fetch","title":"Fetch a Page","description":"Fetch a page and return its content, headers, and metadata.","href":"/reference/api/fetch-a-page"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/browserbase/34f72216f660e6f7/signals.js"],"openApiReferenceData":{"operation":{"operationId":"Fetch_create","summary":"Fetch a Page","description":"Fetch a page and return its content, headers, and metadata.","requestBody":"490fb674-fb82-4cc2-9d7c-10adae5b2536","responses":{"200":"419d263f-2d74-4344-8560-615d07d8eab2","400":"dc0c5856-da8e-4cb7-a526-9490046c8efe","402":"47900b86-b590-4520-b4f0-ecb2ea7b12eb","403":"cd1833cf-33de-4bae-b485-75cfcdb2114f","429":"6e61e568-b96f-4528-8b82-17e469518b8f","502":"0f24910f-bb88-49cc-9335-177d25594d61","503":"411580f6-72ce-4375-808b-098e0202109d","504":"a9c97037-6a2c-45aa-b480-cc08fb6c9603"},"method":"post","type":"path","servers":["775cb318-64c4-469b-8727-6f591e0db7a5"],"security":["e75aa63c-e936-41b0-a0bd-7373c7e3d67c"],"path":"/v1/fetch","baseUrlOptions":["https://api.browserbase.com"],"title":"Fetch a Page","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"description":"The URL to fetch","type":"string","format":"uri","isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi>"},"allowRedirects":{"description":"Whether to follow HTTP redirects","type":"boolean","default":false,"uniqueKey":"allowRedirects","typeLabel":"boolean"},"allowInsecureSsl":{"description":"Whether to bypass TLS certificate verification","type":"boolean","default":false,"uniqueKey":"allowInsecureSsl","typeLabel":"boolean"},"proxies":{"description":"Whether to enable proxy support for the request","type":"boolean","default":false,"uniqueKey":"proxies","typeLabel":"boolean"},"format":{"oneOf":[{"type":"string","description":"Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.","default":"raw","enum":["raw"],"uniqueKey":"format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.","default":"raw","enum":["json"],"uniqueKey":"format.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.","default":"raw","enum":["markdown"],"uniqueKey":"format.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"format","typeLabel":"enum\u003cstring>"},"schema":{"description":"JSON Schema describing the desired structure of the response. Only used when `format` is `json`.","type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"schema.additionalProperties","typeLabel":"any"},"uniqueKey":"schema","typeLabel":"object"},"contextId":{"description":"ID of a context whose persisted cookies are sent with the request.","type":"string","format":"uuid","uniqueKey":"contextId","typeLabel":"string\u003cuuid>"}},"required":["url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"url":"\u003cstring>","allowRedirects":false,"allowInsecureSsl":false,"proxies":false,"format":"raw","schema":{},"contextId":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"419d263f-2d74-4344-8560-615d07d8eab2":{"description":"The request has succeeded.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"description":"Unique identifier for the fetch request","type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"statusCode":{"description":"HTTP status code of the fetched response","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"headers":{"description":"Response headers as key-value pairs","type":"object","additionalProperties":{"type":"string","uniqueKey":"headers.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"headers","typeLabel":"object"},"content":{"oneOf":[{"type":"string","description":"The response body content. A string for `raw` and `markdown` formats; a structured object for `json` format (the schema-extracted result).","isRequired":true,"uniqueKey":"content.oneOf.0","typeLabel":"string"},{"type":"object","description":"The response body content. A string for `raw` and `markdown` formats; a structured object for `json` format (the schema-extracted result).","additionalProperties":{"oneOf":[{}],"uniqueKey":"content.oneOf.1.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content","typeLabel":"string | object"},"contentType":{"description":"The MIME type of the response","type":"string","isRequired":true,"uniqueKey":"contentType","typeLabel":"string"},"encoding":{"description":"The character encoding of the response","type":"string","isRequired":true,"uniqueKey":"encoding","typeLabel":"string"}},"required":["id","statusCode","headers","content","contentType","encoding"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","statusCode":123,"headers":{},"content":"\u003cstring>","contentType":"\u003cstring>","encoding":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dc0c5856-da8e-4cb7-a526-9490046c8efe":{"description":"Invalid request body, or the requested `format` is not supported for the fetched response's content type.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"description":"HTTP status code","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"description":"HTTP error name","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"description":"Human-readable error message","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"id":{"description":"Unique identifier for the fetch request","type":"string","uniqueKey":"id","typeLabel":"string"}},"required":["statusCode","error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"error":"\u003cstring>","message":"\u003cstring>","id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"47900b86-b590-4520-b4f0-ecb2ea7b12eb":{"description":"Free plan quota exceeded for the requested format.","content":{"application/json":{"schema":{"description":"Free plan quota exceeded for the requested format.","uniqueKey":"","typeLabel":"any"},"examples":{"Example":{"title":"Example","value":"\u003cunknown>"}},"exampleType":"generated"}},"exampleType":"generated"},"cd1833cf-33de-4bae-b485-75cfcdb2114f":{"description":"Access to the requested resource is forbidden.","content":{"application/json":{"schema":{"description":"Access to the requested resource is forbidden.","uniqueKey":"","typeLabel":"any"},"examples":{"Example":{"title":"Example","value":"\u003cunknown>"}},"exampleType":"generated"}},"exampleType":"generated"},"6e61e568-b96f-4528-8b82-17e469518b8f":{"description":"Concurrent fetch request limit exceeded.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"description":"HTTP status code","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"description":"HTTP error name","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"description":"Human-readable error message","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"id":{"description":"Unique identifier for the fetch request","type":"string","uniqueKey":"id","typeLabel":"string"}},"required":["statusCode","error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"error":"\u003cstring>","message":"\u003cstring>","id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"0f24910f-bb88-49cc-9335-177d25594d61":{"description":"The fetched response was too large or TLS certificate verification failed.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"description":"HTTP status code","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"description":"HTTP error name","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"description":"Human-readable error message","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"id":{"description":"Unique identifier for the fetch request","type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"}},"required":["statusCode","error","message","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"error":"\u003cstring>","message":"\u003cstring>","id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"411580f6-72ce-4375-808b-098e0202109d":{"description":"The fetch service is temporarily unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"description":"HTTP status code","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"description":"HTTP error name","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"description":"Human-readable error message","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"id":{"description":"Unique identifier for the fetch request","type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"}},"required":["statusCode","error","message","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"error":"\u003cstring>","message":"\u003cstring>","id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"a9c97037-6a2c-45aa-b480-cc08fb6c9603":{"description":"The fetch request timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"description":"HTTP status code","type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"description":"HTTP error name","type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"description":"Human-readable error message","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"id":{"description":"Unique identifier for the fetch request","type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"}},"required":["statusCode","error","message","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"statusCode":123,"error":"\u003cstring>","message":"\u003cstring>","id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e75aa63c-e936-41b0-a0bd-7373c7e3d67c":{"BrowserbaseAuth":{"type":"apiKey","in":"header","name":"X-BB-API-Key","description":"Your [Browserbase API Key](https://www.browserbase.com/settings).","scopes":[],"schemeName":"BrowserbaseAuth"}}},"servers":{"775cb318-64c4-469b-8727-6f591e0db7a5":{"url":"https://api.browserbase.com","description":"Public endpoint","variables":{}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-BB-API-Key","description":"Your [Browserbase API Key](https://www.browserbase.com/settings).","scopes":[],"schemeName":"BrowserbaseAuth"},"schema":{"title":"X-BB-API-Key","type":"string","description":"Your [Browserbase API Key](https://www.browserbase.com/settings).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"BrowserbaseAuth","name":"X-BB-API-Key"}],"title":"BrowserbaseAuth"}]},"originalFileLocation":"reference/api/openapi.v1.yaml"},"subdomain":"browserbase","siteName":"Browserbase Documentation","title":"Fetch a Page - Browserbase Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-10T04:54:33.761Z","originalFileLocation":"reference/api/fetch-a-page.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=\"system\"}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=\"Fetch a page and return its content, headers, and metadata.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Browserbase Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_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/browserbase/0gEfmyCMfQGLZuAR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Fetch a Page - Browserbase Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetch a page and return its content, headers, and metadata.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Browserbase Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.browserbase.com/reference/api/fetch-a-page\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://browserbase.mintlify.site/_mintlify/api/og/v2?division=Fetch+API\u0026amp;title=Fetch+a+Page\u0026amp;description=Fetch+a+page+and+return+its+content%2C+headers%2C+and+metadata.\u0026amp;theme=f6e15f8a9d26c9b10f69dd26\u0026amp;signature=436a6f5728ea0a210ebc6250c947794e7a08639137a9d8946cf6044792926806\">\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=\"Fetch a Page - Browserbase Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetch a page and return its content, headers, and metadata.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://browserbase.mintlify.site/_mintlify/api/og/v2?division=Fetch+API\u0026amp;title=Fetch+a+Page\u0026amp;description=Fetch+a+page+and+return+its+content%2C+headers%2C+and+metadata.\u0026amp;theme=f6e15f8a9d26c9b10f69dd26\u0026amp;signature=436a6f5728ea0a210ebc6250c947794e7a08639137a9d8946cf6044792926806\">\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/browserbase/0gEfmyCMfQGLZuAR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Browserbase Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F03603\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.browserbase.com/reference/api/fetch-a-page\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/api/fetch-a-page.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.browserbase.com/#organization\",\"name\":\"Browserbase Documentation\",\"url\":\"https://docs.browserbase.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/browserbase/SoYEm-IyDzD4GuwP/logo/light.svg?fit=max\u0026auto=format\u0026n=SoYEm-IyDzD4GuwP\u0026q=85\u0026s=67d2dac0a6cdd091f364c6763a3393cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.browserbase.com#website\",\"name\":\"Browserbase Documentation\",\"url\":\"https://docs.browserbase.com\",\"publisher\":{\"@id\":\"https://docs.browserbase.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.browserbase.com/reference/api/fetch-a-page#webpage\",\"url\":\"https://docs.browserbase.com/reference/api/fetch-a-page\",\"name\":\"Fetch a Page\",\"description\":\"Fetch a page and return its content, headers, and metadata.\",\"dateModified\":\"2026-06-10T04:54:33.761Z\",\"isPartOf\":{\"@id\":\"https://docs.browserbase.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.browserbase.com/reference/api/fetch-a-page#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.browserbase.com/reference/api/fetch-a-page#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.browserbase.com/reference/api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fetch a Page\",\"item\":\"https://docs.browserbase.com/reference/api/fetch-a-page\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.browserbase.com/reference/api/fetch-a-page#apireference\",\"headline\":\"Fetch a Page\",\"name\":\"Fetch a Page\",\"description\":\"Fetch a page and return its content, headers, and metadata.\",\"url\":\"https://docs.browserbase.com/reference/api/fetch-a-page\",\"mainEntityOfPage\":{\"@id\":\"https://docs.browserbase.com/reference/api/fetch-a-page#webpage\"},\"dateModified\":\"2026-06-10T04:54:33.761Z\",\"publisher\":{\"@id\":\"https://docs.browserbase.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.browserbase.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Browserbase Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Browserbase Documentation","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/welcome/introduction"}]},{"tab":"APIs \u0026 SDKs","groups":[{"group":"Overview","pages":[{"title":"APIs and SDKs","sidebarTitle":"Introduction","href":"/reference/introduction"}]},{"group":"SDKs","pages":[{"title":"Overview","href":"/reference/sdk/overview"},{"title":"Node.js SDK","href":"/reference/sdk/nodejs"},{"title":"Python SDK","href":"/reference/sdk/python"}]},{"group":"APIs","pages":[{"title":"Overview","href":"/reference/api/overview"},{"group":"Sessions API","pages":[{"openapi":"post /v1/sessions","title":"Create a Session","href":"/reference/api/create-a-session"},{"openapi":"get /v1/sessions","title":"List Sessions","href":"/reference/api/list-sessions"},{"openapi":"get /v1/sessions/{id}","title":"Get a Session","href":"/reference/api/get-a-session"},{"title":"Update a Session","openapi":"post /v1/sessions/{id}","href":"/reference/api/update-a-session"},{"openapi":"get /v1/sessions/{id}/debug","title":"Session Live URLs","href":"/reference/api/session-live-urls"},{"openapi":"get /v1/sessions/{id}/logs","title":"Session Logs","href":"/reference/api/session-logs"},{"openapi":"get /v1/sessions/{id}/replays","title":"Get Session Replay","href":"/reference/api/session-replays"},{"openapi":"get /v1/sessions/{id}/replays/{pageId}","title":"Get Replay Page","href":"/reference/api/session-replay-page"},{"openapi":"post /v1/sessions/{id}/recording/downloads","title":"Create Session Recording Downloads","href":"/reference/api/create-session-recording-downloads"},{"openapi":"get /v1/sessions/{id}/recording/downloads","title":"List Session Recording Downloads","href":"/reference/api/list-session-recording-downloads"},{"openapi":"post /v1/sessions/{id}/uploads","title":"Create Session Uploads","description":null,"href":"/reference/api/create-session-uploads"}]},{"group":"Fetch API","pages":[{"openapi":"post /v1/fetch","title":"Fetch a Page","href":"/reference/api/fetch-a-page"}]},{"group":"Search API","pages":[{"openapi":"post /v1/search","title":"Web Search","description":"Perform a web search and return structured results.","href":"/reference/api/web-search"}]},{"group":"Agents API","pages":[{"group":"Runs","pages":[{"openapi":"post /v1/agents/runs","title":"Run an Agent","href":"/reference/api/run-an-agent"},{"openapi":"get /v1/agents/runs/{runId}","title":"Get a Run","href":"/reference/api/get-a-run"},{"openapi":"get /v1/agents/runs","title":"List Runs","href":"/reference/api/list-runs"},{"openapi":"get /v1/agents/runs/{runId}/messages","title":"List Run Messages","href":"/reference/api/list-run-messages"},{"openapi":"post /v1/agents/runs/{runId}/resume","title":"Resume a Run","href":"/reference/api/resume-a-run"},{"openapi":"post /v1/agents/runs/{runId}/stop","title":"Stop a Run","href":"/reference/api/stop-a-run"}]},{"group":"Agents","pages":[{"openapi":"post /v1/agents","title":"Create an Agent","href":"/reference/api/create-an-agent"},{"openapi":"get /v1/agents/{agentId}","title":"Get an Agent","href":"/reference/api/get-an-agent"},{"openapi":"get /v1/agents","title":"List Agents","href":"/reference/api/list-agents"},{"openapi":"patch /v1/agents/{agentId}","title":"Update an Agent","href":"/reference/api/update-an-agent"},{"openapi":"delete /v1/agents/{agentId}","title":"Delete an Agent","href":"/reference/api/delete-an-agent"}]}]},{"group":"Functions API","pages":[{"openapi":"get /v1/functions","title":"List Functions","href":"/reference/api/list-functions"},{"openapi":"get /v1/functions/{id}","title":"Get a Function","href":"/reference/api/get-a-function"},{"openapi":"post /v1/functions/{id}/invoke","title":"Invoke a Function","href":"/reference/api/invoke-a-function"},{"group":"Secrets","pages":[{"openapi":"get /v1/functions/{id}/secrets","title":"List Function Secrets","href":"/reference/api/list-function-secrets"},{"openapi":"post /v1/functions/{id}/secrets","title":"Attach a Secret to a Function","href":"/reference/api/attach-a-secret-to-a-function"},{"openapi":"delete /v1/functions/{id}/secrets/{secretId}","title":"Detach a Secret from a Function","href":"/reference/api/detach-a-secret-from-a-function"}]},{"group":"Versions","pages":[{"openapi":"get /v1/functions/{id}/versions","title":"List Function Versions","href":"/reference/api/list-function-versions"},{"openapi":"get /v1/functions/versions/{id}","title":"Get a Function Version","href":"/reference/api/get-a-function-version"}]},{"group":"Builds","pages":[{"openapi":"get /v1/functions/builds","title":"List Function Builds","href":"/reference/api/list-function-builds"},{"openapi":"get /v1/functions/builds/{id}","title":"Get a Function Build","href":"/reference/api/get-a-function-build"},{"openapi":"get /v1/functions/builds/{id}/logs","title":"Get Function Build Logs","href":"/reference/api/get-function-build-logs"}]},{"group":"Invocations","pages":[{"openapi":"get /v1/functions/invocations/{id}","title":"Get an Invocation","href":"/reference/api/get-an-invocation"},{"openapi":"get /v1/functions/invocations/{id}/logs","title":"Get Invocation Logs","href":"/reference/api/get-invocation-logs"},{"openapi":"get /v1/functions/versions/{id}/invocations","title":"List Invocations for a Function Version","href":"/reference/api/list-version-invocations"}]}]},{"group":"Secrets API","pages":[{"openapi":"get /v1/secrets/keypair","title":"Get a Keypair","href":"/reference/api/get-a-keypair"},{"openapi":"post /v1/secrets","title":"Create a Secret","href":"/reference/api/create-a-secret"},{"openapi":"get /v1/secrets","title":"List Secrets","href":"/reference/api/list-secrets"},{"openapi":"get /v1/secrets/{id}","title":"Get a Secret","href":"/reference/api/get-a-secret"},{"openapi":"patch /v1/secrets/{id}","title":"Update a Secret","href":"/reference/api/update-a-secret"},{"openapi":"delete /v1/secrets/{id}","title":"Delete a Secret","href":"/reference/api/delete-a-secret"}]},{"group":"Downloads API","pages":[{"openapi":"get /v1/downloads","title":"List Downloads","href":"/reference/api/list-downloads"},{"openapi":"get /v1/downloads/{id}","title":"Get a Download","href":"/reference/api/get-a-download"},{"openapi":"delete /v1/downloads/{id}","title":"Delete a Download","href":"/reference/api/delete-a-download"}]},{"group":"Contexts API","pages":[{"openapi":"post /v1/contexts","title":"Create a Context","href":"/reference/api/create-a-context"},{"openapi":"get /v1/contexts/{id}","title":"Get a Context","href":"/reference/api/get-a-context"},{"openapi":"delete /v1/contexts/{id}","title":"Delete a Context","href":"/reference/api/delete-a-context"}]},{"group":"Navigation policies API","pages":[{"openapi":"post /v1/navigation-policies","title":"Create a Navigation Policy","href":"/reference/api/create-a-navigation-policy"},{"openapi":"get /v1/navigation-policies","title":"List Navigation Policies","href":"/reference/api/list-navigation-policies"},{"openapi":"get /v1/navigation-policies/{id}","title":"Get a Navigation Policy","href":"/reference/api/get-a-navigation-policy"},{"openapi":"patch /v1/navigation-policies/{id}","title":"Update a Navigation Policy","href":"/reference/api/update-a-navigation-policy"},{"openapi":"delete /v1/navigation-policies/{id}","title":"Delete a Navigation Policy","href":"/reference/api/delete-a-navigation-policy"}]},{"group":"Extensions API","pages":[{"openapi":"post /v1/extensions","title":"Upload an Extension","href":"/reference/api/upload-an-extension"},{"openapi":"get /v1/extensions/{id}","title":"Get an Extension","href":"/reference/api/get-an-extension"},{"openapi":"delete /v1/extensions/{id}","title":"Delete an Extension","href":"/reference/api/delete-an-extension"}]},{"group":"Certificates API","pages":[{"openapi":"post /v1/certificates","title":"Upload a Certificate","href":"/reference/api/upload-a-certificate"},{"openapi":"get /v1/certificates","title":"List Certificates","href":"/reference/api/list-certificates"},{"openapi":"get /v1/certificates/{id}","title":"Get a Certificate","href":"/reference/api/get-a-certificate"},{"openapi":"delete /v1/certificates/{id}","title":"Delete a Certificate","href":"/reference/api/delete-a-certificate"}]},{"group":"Webhooks API","pages":[{"openapi":"post /v1/webhooks","title":"Create a Webhook","href":"/reference/api/create-a-webhook"},{"openapi":"get /v1/webhooks","title":"List Webhooks","href":"/reference/api/list-webhooks"},{"openapi":"get /v1/webhooks/{id}","title":"Get a Webhook","href":"/reference/api/get-a-webhook"},{"openapi":"patch /v1/webhooks/{id}","title":"Update a Webhook","href":"/reference/api/update-a-webhook"},{"openapi":"delete /v1/webhooks/{id}","title":"Delete a Webhook","href":"/reference/api/delete-a-webhook"},{"openapi":"post /v1/webhooks/{id}/secret","title":"Rotate a Webhook signing secret","href":"/reference/api/rotate-a-webhook-signing-secret"}]},{"group":"Projects API","pages":[{"openapi":"get /v1/projects","title":"List Projects","href":"/reference/api/list-projects"},{"openapi":"get /v1/projects/{id}","title":"Get a Project","href":"/reference/api/get-a-project"},{"openapi":"get /v1/projects/{id}/usage","title":"Get Project Usage","href":"/reference/api/get-project-usage"}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/get-started"}]},{"tab":"Templates ↗","href":"https://www.browserbase.com/templates"},{"tab":"Stagehand ↗","href":"https://docs.stagehand.dev/"},{"tab":"Changelog ↗","href":"https://www.browserbase.com/changelog"},{"tab":"Dashboard ↗","href":"https://www.browserbase.com/overview"}]},"basePath":"","title":"Fetch a Page - Browserbase Documentation","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D9ithiIZ.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}