json is not a content type — it controls the response structure
If you want to include markdown or text inside a JSON response, add json to the list
If you include multiple content formats, response is always JSON, even without "json" explicitly listed
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"HasData Documentation","colors":{"primary":"#2563eb","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/hasdata/uVf91kjKNrsKAsWC/logo/light.svg?fit=max\u0026auto=format\u0026n=uVf91kjKNrsKAsWC\u0026q=85\u0026s=698e7807bab67b851b99b9eb59bc6787","dark":"https://mintcdn.com/hasdata/uVf91kjKNrsKAsWC/logo/dark.svg?fit=max\u0026auto=format\u0026n=uVf91kjKNrsKAsWC\u0026q=85\u0026s=f39999b3e445f54167c3a51cf80929d4"},"favicon":"https://mintcdn.com/hasdata/uVf91kjKNrsKAsWC/favicon.svg?fit=max\u0026auto=format\u0026n=uVf91kjKNrsKAsWC\u0026q=85\u0026s=76ebfefea1a47982992c12390f3f72b4","navbar":{"links":[{"href":"https://app.hasdata.com/apis","label":"API Playground"},{"href":"https://hasdata.com/blog/","label":"Blog"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.hasdata.com"}},"footer":{"socials":{"x":"https://x.com/hasdata_com","github":"https://github.com/HasData","linkedin":"https://www.linkedin.com/company/hasdatadotcom","youtube":"https://www.youtube.com/@hasdatadotcom"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"CLI","icon":"terminal","href":"/cli"},{"anchor":"MCP Server","icon":"plug","href":"/mcp-server"},{"anchor":"OpenClaw","icon":"puzzle-piece","href":"/openclaw"},{"anchor":"Agent Skill","icon":"robot","href":"/agent-skill"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hasdata","hasAudioNarration":false,"actualSubdomain":"hasdata","customDomains":["docs.hasdata.com"],"gitSource":{"type":"github","owner":"hasdata","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad74c900309bf8cb8b326c4","collectionId":"71e47482-aff7-40e5-96ab-ff3972effe76","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad74c900309bf8cb8b326c4"},"entitlements":{},"buildId":"6ad74c900309bf8cb8b326c4","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Scraper APIs","count":61},{"language":"default","tag":"Rich Snippets","count":28},{"language":"default","tag":"Google SERP API","count":28},{"language":"default","tag":"Scraper Jobs","count":22},{"language":"default","tag":"Run Scraper","count":19},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Home","count":11},{"language":"default","tag":"Web Scraping API","count":10},{"language":"default","tag":"Google AI Mode API","count":8},{"language":"default","tag":"Google SERP","count":7}]},"assistantConfig":{},"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":"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":"apis/web-scraping-api/features/output-formats","slug":"/apis/web-scraping-api/features/output-formats","pageMetadata":{"title":"Output Formats","description":null,"href":"/apis/web-scraping-api/features/output-formats"},"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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`outputFormat`}),` parameter controls the format of the scraped content returned in the response.`]}),`\n`,_jsx(Heading,{level:`2`,id:`supported-formats`,children:`Supported Formats`}),`\n`,_jsx(_components.p,{children:`You can request one or more of the following:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`html`}),` – raw page HTML (default DOM output)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`text`}),` – plain text version of the page`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`markdown`}),` – converted Markdown output (good for LLMs and readability)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`json`}),` – `,_jsx(_components.strong,{children:`not a content format`}),`, but a wrapper to return all requested formats in a structured JSON response`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If you pass a `,_jsx(_components.strong,{children:`single format`}),` like `,_jsx(_components.code,{children:`\"html\"`}),` or `,_jsx(_components.code,{children:`\"text\"`}),`, the API returns just that content directly as a string.`]}),`\n`,_jsxs(_components.li,{children:[`If you pass `,_jsx(_components.strong,{children:`multiple formats`}),`, the response will be a JSON object with each format as a separate key.`]}),`\n`,_jsxs(_components.li,{children:[`If you include `,_jsx(_components.code,{children:`json`}),`, it tells the API to `,_jsx(_components.strong,{children:`wrap the response`}),` in a structured JSON object (even for a single format).`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Use json to always get a structured response that’s easy to work with in code.`})}),`\n`,_jsx(Heading,{level:`2`,id:`example-one-format`,children:`Example: One Format`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` \"outputFormat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_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`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Welcome to Example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`This is a sample page...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-multiple-formats`,children:`Example: Multiple Formats`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` \"outputFormat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"markdown\"`}),_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`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,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:` \"requestMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},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:` \"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003chtml>...\u003c/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:` \"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"# Welcome to Example.com`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`This is a sample page...\"`}),_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:` \"headers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},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:` \"cookies\"`}),_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:` \"screenshot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`forcing-json-format-with-one-format-inside`,children:`Forcing JSON Format with One Format Inside`}),`\n`,_jsx(_components.p,{children:`If you want the response in JSON format but only need Markdown:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` \"outputFormat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"markdown\"`}),_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`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`6`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"# Page title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"requestMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/*...*/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"headers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/*...*/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`json`}),` is not a content type — it controls the `,_jsx(_components.strong,{children:`response structure`})]}),`\n`,_jsxs(_components.li,{children:[`If you want to include `,_jsx(_components.code,{children:`markdown`}),` or `,_jsx(_components.code,{children:`text`}),` inside a JSON response, add `,_jsx(_components.code,{children:`json`}),` to the list`]}),`\n`,_jsxs(_components.li,{children:[`If you include multiple content formats, response is `,_jsx(_components.strong,{children:`always JSON`}),`, even without `,_jsx(_components.code,{children:`\"json\"`}),` explicitly listed`]}),`\n`]})]})}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":"Output Formats","description":null,"href":"/apis/web-scraping-api/features/output-formats"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported Formats","slug":"supported-formats","depth":2,"children":[]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]},{"title":"Example: One Format","slug":"example-one-format","depth":2,"children":[]},{"title":"Example: Multiple Formats","slug":"example-multiple-formats","depth":2,"children":[]},{"title":"Forcing JSON Format with One Format Inside","slug":"forcing-json-format-with-one-format-inside","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/hasdata/b82f7ed5fb359abc/doc-builder/config.js","/_mintlify/custom/hasdata/b22ec6ec6543d8f8/doc-builder/index.js","/_mintlify/custom/hasdata/b92899f80bc26518/doc-builder/templates/api.template.js","/_mintlify/custom/hasdata/8570d6ef2cfd8e40/doc-builder/templates/code.template.js","/_mintlify/custom/hasdata/8194855b4e14b1fe/doc-builder/templates/header.template.js","/_mintlify/custom/hasdata/d554a89a49234356/doc-builder/templates/param.template.js","/_mintlify/custom/hasdata/4361e42be5321dbb/doc-builder/generate-google-params.js","/_mintlify/custom/hasdata/d0d97c0d57014019/doc-builder/generate-scrapers.js","/_mintlify/custom/hasdata/799631b7a05e98bc/doc-builder/transform-mdx.js","/_mintlify/custom/hasdata/797117984eb177c4/doc-builder/validate.js","/_mintlify/custom/hasdata/50676dd7cb4ced6f/doc-builder/generate-mcp-apis.js","/_mintlify/custom/hasdata/6a33de74cca4bae5/analytics.js"],"subdomain":"hasdata","siteName":"HasData Documentation","title":"Output Formats - HasData Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T11:12:24.242Z","originalFileLocation":"apis/web-scraping-api/features/output-formats.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=\"application-name\" content=\"HasData 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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_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/hasdata/Qf30VS7EGpLezgPZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Output Formats - HasData Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HasData Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hasdata.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Output+Formats\u0026amp;theme=8b3419b15f4510bcffec25eb\u0026amp;signature=6453e9fcbfa7ba395b0b7e6aaf26e4829c1b1ddf652298fc1d55c88ec9a1be8d\">\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=\"Output Formats - HasData Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hasdata.mintlify.site/_mintlify/api/og/v2?division=Features\u0026amp;title=Output+Formats\u0026amp;theme=8b3419b15f4510bcffec25eb\u0026amp;signature=6453e9fcbfa7ba395b0b7e6aaf26e4829c1b1ddf652298fc1d55c88ec9a1be8d\">\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/hasdata/Qf30VS7EGpLezgPZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HasData Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/apis/web-scraping-api/features/output-formats.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hasdata.com/#organization\",\"name\":\"HasData Documentation\",\"url\":\"https://docs.hasdata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hasdata/uVf91kjKNrsKAsWC/logo/light.svg?fit=max\u0026auto=format\u0026n=uVf91kjKNrsKAsWC\u0026q=85\u0026s=698e7807bab67b851b99b9eb59bc6787\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hasdata.com#website\",\"name\":\"HasData Documentation\",\"url\":\"https://docs.hasdata.com\",\"publisher\":{\"@id\":\"https://docs.hasdata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats#webpage\",\"url\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats\",\"name\":\"Output Formats\",\"dateModified\":\"2026-10-20T11:12:24.242Z\",\"isPartOf\":{\"@id\":\"https://docs.hasdata.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HasData Documentation\",\"item\":\"https://docs.hasdata.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Output Formats\",\"item\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats#article\",\"headline\":\"Output Formats\",\"name\":\"Output Formats\",\"url\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hasdata.com/apis/web-scraping-api/features/output-formats#webpage\"},\"dateModified\":\"2026-10-20T11:12:24.242Z\",\"publisher\":{\"@id\":\"https://docs.hasdata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hasdata.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HasData Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"HasData Documentation","nav":{"global":{"anchors":[{"anchor":"CLI","icon":"terminal","href":"/cli"},{"anchor":"MCP Server","icon":"plug","href":"/mcp-server"},{"anchor":"OpenClaw","icon":"puzzle-piece","href":"/openclaw"},{"anchor":"Agent Skill","icon":"robot","href":"/agent-skill"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/introduction"}]},{"tab":"Web Scraping API","groups":[{"group":"Get Started","pages":[{"title":"Quickstart - Web Scraping API","sidebarTitle":"Quickstart","href":"/apis/web-scraping-api/quickstart"},{"title":"Web Scraping API Request Cost","sidebarTitle":"Request Cost","href":"/apis/web-scraping-api/request-cost"},{"title":"Web Scraping API Parameters","sidebarTitle":"API Params","href":"/apis/web-scraping-api/api-params"},{"title":"LLM Extraction","href":"/apis/web-scraping-api/llm-extraction"},{"title":"Batch Scrape","description":null,"href":"/apis/web-scraping-api/batch-scrape"}]},{"group":"Features","pages":[{"title":"Output Formats","href":"/apis/web-scraping-api/features/output-formats"},{"title":"Structured Data Extraction","description":null,"href":"/apis/web-scraping-api/features/structured-data-extraction"},{"title":"Wait For","href":"/apis/web-scraping-api/features/wait-for"},{"title":"Page Interactions","href":"/apis/web-scraping-api/features/page-interactions"},{"title":"Custom Headers and Cookies","href":"/apis/web-scraping-api/features/custom-headers-and-cookies"}]}]},{"tab":"Websites Crawler","pages":[{"title":"Websites Crawler","href":"/scrapers/websites-crawler/quickstart"}]},{"tab":"Google SERP API","pages":[{"title":"Google SERP API","href":"/apis/google-serp-api/quickstart"}]},{"tab":"Google AI Mode API","pages":[{"title":"Google AI Mode API","href":"/apis/google-ai-mode/quickstart"}]},{"tab":"Google Maps API","pages":[{"title":"Google Maps API","href":"/apis/google-maps/search"}]},{"tab":"Scraper APIs","pages":[{"title":"Scraper APIs","href":"/apis/google-serp/ai-overview"}]},{"tab":"Scraper Jobs","pages":[{"title":"Scraper Jobs","href":"/scrapers/google-serp"}]}]},"basePath":"","title":"Output Formats - HasData Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}