Step by step guide to set up your Similarweb Batch API
Welcome to Similarweb’s Batch API - giving you scalable access to the world’s largest digital measure database!Get Similarweb data for more than 1,000,000 domains and 5 years of history, tens of metrics - in one API call!This guide has 2 quick steps to get millions of data points from our API.
Get started checklist:
🔑 Get an API Key tutorial OR if you already Batch API access generate API Key here
📈 Choose the data and metrics you need based on your subscription datahub.similarweb.com OR discover new datasets here
📝 Create a request report with a valid JSON
🔗 Connect and integrate to your Data lake (S3, Snowflake, Databricks)
Step-by-step guide:
Make a POST request with a JSON in the body or attached as a file as multipart/form-data
When requesting a report you must include in the JSON the following parameters.
Mandatory Parameters:
Parameters
Description
Acceptable Values
vtable
This represent the data set you are looking to choose metrics form you can find the full list on datahub.similarweb.com or here
traffic_and_engagement
domains
Characters in domain names can include letters, numbers, dashes, and hyphens. One request can include up to 1M domains.
amazon.com
countries
Countries with standard 2-letter ISO encoding when calling all metrics (excluding desktop_top_geo). For worldwide, use “WW”. This parameter is case-sensitive and must be inputted in capital letters. When calling desktop_top_geo, you must remove any countries from your JSON file.
For daily granularity, format the start-and-end date like this: YYYY-MM-DD. For monthly granularity, format the start-and-end date like this- YYYY-MM
Daily: 2023-06-30 Monthly: 2023-06
granularity
Time series granularity
monthly, weekly, daily
response_format
Output of the API call
JSON, csv, parquet, orc
Make sure to save the report ID you receive after your API request.
The request limit per user is 20 pending requests. if you receive a ‘429’
error it means you’ve exceeded the limit of allowed pending requests. Reduce
the frequency of your requests to stay within the limits of your account.
Optional Parameters:
Parameter
Description
Acceptable values
delivery_method
The default Value is “download_link”. When the delivery method is set to “snowflake”, the “response_format” field is not required
download_link, bucket_access, snowflake
delivery_method_params
Use this when requesting reports to be delivered to aggregated Snowflake tables. Input “table_name”: “your_table_name”. See set-up guide for more details.
Boolean, when set to true, will automatically override the dates to the minimum start date and maximum end date, valid values true or false, default is false.
true/false
latest
Boolean, when set to true will override the end date with the latest available date, if the start date is not specified it will also override the start date with the same.
true/false
window_size
String, when set will override the start date with a time relative to the end date.
Should be in the format - {number}{y/m/d}, for example - ‘12d’, ‘3m’, or ‘2y’.
limit
Integer, Limits the number of results per entity selected.
above 0, most metrics default is 100
Include_subdomains
Boolean, Default is true.
true/false
webhook_url
Enter the delivery URL you’d like us to ping when the status of your report changes.
URL
sort
Allows you to sort by a specific metric
specific metrics: “sort”: “all_traffic_visits”
After you made your request and got your report ID, use the Request Report Status to receive the report status.
Upon completion, you will need to request the report status.GET Request Report Status
The download link will remain valid for 30 days. We recommend saving these for
a certain time period just in case you will need our assistance to
troubleshoot any issue that may occur.
Data credits are calculated for each report based on the number of results you are actually receiving:Formula: Number of domains X Number of metrics X history X cadence (daily/monthly) X Number of countries X Number of results
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Similarweb","colors":{"primary":"#185BFE","light":"#FF791B","dark":"#FF791B"},"logo":{"light":"https://mintcdn.com/similarweb-zp8zf/QQXWocDl1farlVor/logo-black.svg?fit=max\u0026auto=format\u0026n=QQXWocDl1farlVor\u0026q=85\u0026s=c66a9743af63dd5fde25d9aca64abd54","dark":"https://mintcdn.com/similarweb-zp8zf/QQXWocDl1farlVor/logo-white.svg?fit=max\u0026auto=format\u0026n=QQXWocDl1farlVor\u0026q=85\u0026s=7f385f146e4c0c95b68d89d782d72aa0"},"favicon":"/favicon.png","appearance":{"default":"light"},"background":{"color":{"dark":"#0A2540"}},"navbar":{"links":[{"label":"Contact Us","href":"https://www.similarweb.com/corp/contact-us/"}],"primary":{"type":"button","label":"Go to Similarweb","href":"https://www.similarweb.com/"}},"footer":{"socials":{"facebook":"https://www.facebook.com/Similarweb","x":"https://x.com/Similarweb","linkedin":"https://www.linkedin.com/company/similarweb","youtube":"https://www.youtube.com/channel/UCVCI01HR6iB4AA4ChW08cvQ","instagram":"https://www.instagram.com/similarwebinsights/"}},"fonts":{"heading":{"family":"DM Sans","weight":500},"body":{"family":"Roboto","weight":400}},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"book-open-cover","href":"https://www.similarweb.com/blog/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"similarweb-zp8zf","hasAudioNarration":false,"actualSubdomain":"similarweb-zp8zf","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-onboarding","repo":"similarweb","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae926ffd9a51c36fb3c6051:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Batch API","count":11},{"language":"default","tag":"API Documentation","count":10},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Similarweb API Overview","count":4},{"language":"default","tag":"Batch API - Integrations","count":3},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Set up your Batch API","count":2},{"language":"default","tag":"Rest API","count":2},{"language":"default","tag":"Keyword Research","count":2},{"language":"default","tag":"Recipes","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"docs/set-up-your-batch-api","slug":"/docs/set-up-your-batch-api","pageMetadata":{"title":"Set Up Your Batch API","sidebarTitle":"Overview","description":"Step by step guide to set up your Similarweb Batch API","href":"/docs/set-up-your-batch-api"},"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: \"Step by step guide to set up your Similarweb Batch API\"\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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Welcome to Similarweb’s Batch API - giving you scalable access to the world’s largest digital measure database!`}),`\n`,_jsx(_components.p,{children:`Get Similarweb data for more than 1,000,000 domains and 5 years of history, tens of metrics - in one API call!`}),`\n`,_jsx(_components.p,{children:`This guide has 2 quick steps to get millions of data points from our API.`}),`\n`,_jsx(Heading,{level:`2`,id:`get-started-checklist`,children:`Get started checklist:`}),`\n`,_jsxs(_components.p,{children:[`🔑 `,_jsx(_components.a,{href:`/docs/authentication`,children:`Get an API Key tutorial`}),` OR if you already Batch API access generate API Key `,_jsx(_components.a,{href:`https://account.similarweb.com/batch-api?from=developershub`,children:`here`}),` `,_jsx(`br`,{}),`\n📈 Choose the data and metrics you need based on your subscription `,_jsx(_components.a,{href:`https://dash.readme.com/go/similarweb?redirect=%2Fv4.0%2Fdocs%2Fdatahub`,children:`datahub.similarweb.com`}),` OR discover new datasets `,_jsx(_components.a,{href:`https://smwb-batch-api.streamlit.app/`,children:`here`}),` `,_jsx(`br`,{}),`\n📝 Create a request report with a valid JSON `,_jsx(`br`,{}),`\n🔗 Connect and integrate to your Data lake (`,_jsx(_components.a,{href:`s3-bucket`,children:`S3`}),`, `,_jsx(_components.a,{href:`snowflake`,children:`Snowflake`}),`, Databricks)`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-by-step-guide`,children:`Step-by-step guide:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Make a POST request with a JSON in the body or attached as a file as multipart/form-data`}),`\n`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`POST`,numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.similarweb.com/batch/v4/request-report`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,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:`15`,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:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.similarweb.com/batch/v4/request-report\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\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:`{}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'request'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Batchexample.json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/Users/Batchexample.json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'rb'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'application/json'`}),_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:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` 'api-key'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.request(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, url, `}),_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:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`files)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.text)`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-json`,children:`Example JSON:`}),`\n`,_jsx(CodeBlock,{filename:`Requst Body`,numberOfLines:`26`,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:`26`,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:` \"delivery_information\"`}),_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:` \"response_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"csv\"`})]}),`\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:` \"report_query\"`}),_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:` \"tables\"`}),_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:` \"vtable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"traffic_and_engagement\"`}),_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:` \"granularity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"monthly\"`}),_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:` \"filters\"`}),_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:` \"domains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"similarweb.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api.similarweb.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:` \"countries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"WW\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_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:` \"include_subdomains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\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:` \"metrics\"`}),_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:` \"all_traffic_visits\"`}),_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:` \"desktop_new_visitors\"`}),_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:` \"desktop_pages_per_visit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"desktop_returning_visitors\"`})}),`\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:` \"start_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-02\"`}),_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:` \"end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02\"`})]}),`\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`,_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`]})})}),`\n`,_jsx(_components.p,{children:`When requesting a report you must include in the JSON the following parameters.`}),`\n`,_jsx(Heading,{level:`3`,id:`mandatory-parameters`,children:`Mandatory Parameters:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameters`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Acceptable Values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`vtable`}),_jsxs(_components.td,{children:[`This represent the data set you are looking to choose metrics form you can find the full list on `,_jsx(_components.a,{href:`https://dash.readme.com/go/similarweb?redirect=%2Fv4.0%2Fdocs%2Fdatahub`,children:`datahub.similarweb.com`}),` or `,_jsx(_components.a,{href:`https://smwb-batch-api.streamlit.app/`,children:`here`})]}),_jsx(_components.td,{children:`traffic_and_engagement`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`domains`}),_jsx(_components.td,{children:`Characters in domain names can include letters, numbers, dashes, and hyphens. One request can include up to 1M domains.`}),_jsx(_components.td,{children:`amazon.com`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`countries`}),_jsx(_components.td,{children:`Countries with standard 2-letter ISO encoding when calling all metrics (excluding desktop_top_geo). For worldwide, use “WW”. This parameter is case-sensitive and must be inputted in capital letters. When calling desktop_top_geo, you must remove any countries from your JSON file.`}),_jsxs(_components.td,{children:[`WW, US, GB `,_jsx(_components.a,{href:`country-codes`,children:`All country codes`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metrics`}),_jsx(_components.td,{children:`List of metrics per dataset`}),_jsx(_components.td,{children:`all_traffic_visits`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_date, end_date`}),_jsx(_components.td,{children:`For daily granularity, format the start-and-end date like this: YYYY-MM-DD. For monthly granularity, format the start-and-end date like this- YYYY-MM`}),_jsx(_components.td,{children:`Daily: 2023-06-30 Monthly: 2023-06`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`granularity`}),_jsx(_components.td,{children:`Time series granularity`}),_jsx(_components.td,{children:`monthly, weekly, daily`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`response_format`}),_jsx(_components.td,{children:`Output of the API call`}),_jsx(_components.td,{children:`JSON, csv, parquet, orc`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Make sure to `,_jsx(_components.strong,{children:`save the report ID `}),`you receive after your API request.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The request limit per user is 20 pending requests. if you receive a ‘429’\nerror it means you’ve exceeded the limit of allowed pending requests. Reduce\nthe frequency of your requests to stay within the limits of your account.`})}),`\n`,_jsx(Heading,{level:`3`,id:`optional-parameters`,children:`Optional Parameters:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Acceptable values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`delivery_method`}),_jsx(_components.td,{children:`The default Value is “download_link”. When the delivery method is set to “snowflake”, the “response_format” field is not required`}),_jsx(_components.td,{children:`download_link, bucket_access, snowflake`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`delivery_method_params`}),_jsxs(_components.td,{children:[`Use this when requesting reports to be delivered to aggregated Snowflake tables. Input “table_name”: “your_table_name”. See `,_jsx(_components.a,{href:`/docs/snowflake`,children:`set-up guide`}),` for more details.`]}),_jsx(_components.td,{children:`table_name, integration_name, retention_days, overwrite_partitions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`all_history`}),_jsx(_components.td,{children:`Boolean, when set to true, will automatically override the dates to the minimum start date and maximum end date, valid values true or false, default is false.`}),_jsx(_components.td,{children:`true/false`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`latest`}),_jsx(_components.td,{children:`Boolean, when set to true will override the end date with the latest available date, if the start date is not specified it will also override the start date with the same.`}),_jsx(_components.td,{children:`true/false`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`window_size`}),_jsx(_components.td,{children:`String, when set will override the start date with a time relative to the end date.`}),_jsx(_components.td,{children:`Should be in the format - {number}{y/m/d}, for example - ‘12d’, ‘3m’, or ‘2y’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`limit`}),_jsx(_components.td,{children:`Integer, Limits the number of results per entity selected.`}),_jsx(_components.td,{children:`above 0, most metrics default is 100`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Include_subdomains`}),_jsx(_components.td,{children:`Boolean, Default is true.`}),_jsx(_components.td,{children:`true/false`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`webhook_url`}),_jsx(_components.td,{children:`Enter the delivery URL you’d like us to ping when the status of your report changes.`}),_jsx(_components.td,{children:`URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`sort`}),_jsx(_components.td,{children:`Allows you to sort by a specific metric`}),_jsx(_components.td,{children:`specific metrics: “sort”: “all_traffic_visits”`})]})]})]}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsx(_components.li,{children:`After you made your request and got your report ID, use the Request Report Status to receive the report status.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Upon completion, you will need to request the report status.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`GET Request Report Status`})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`GET`,numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.similarweb.com/v3/batch/request-status/{{generated_report_id}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,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:`12`,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:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.similarweb.com/v3/batch/request-status/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`generated_report_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\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:`{}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` 'api-key'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.request(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, url, `}),_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:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.text)`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example response:`})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Completed Report`,numberOfLines:`6`,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:`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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data_points_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1779429`}),_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:` \"download_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example_url.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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_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:` \"used_quota\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35589`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`In Progress`,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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`date-credits-cost-per-request`,children:`Date Credits cost per request:`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`The download link will remain valid for 30 days. We recommend saving these for\na certain time period just in case you will need our assistance to\ntroubleshoot any issue that may occur.`})}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`Data credits are calculated for each report based on the number of results you are actually receiving:`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Formula`}),`: Number of `,_jsx(_components.strong,{children:`domains`}),` X Number of `,_jsx(_components.strong,{children:`metrics`}),` X `,_jsx(_components.strong,{children:`history`}),` X `,_jsx(_components.strong,{children:`cadence`}),` (daily/monthly) X Number of `,_jsx(_components.strong,{children:`countries`}),` X Number of `,_jsx(_components.strong,{children:`results`})]})]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`In order to calculate the estimated credits the report will cost, you can use the “request-validate” endpoint`}),_jsx(_components.p,{children:_jsx(_components.a,{href:`https://api.similarweb.com/v3/batch/request-validate`,children:`https://api.similarweb.com/v3/batch/request-validate`})})]})]})}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":"Set Up Your Batch API","sidebarTitle":"Overview","description":"Step by step guide to set up your Similarweb Batch API","href":"/docs/set-up-your-batch-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get started checklist:","slug":"get-started-checklist","depth":2,"children":[{"title":"Step-by-step guide:","slug":"step-by-step-guide","depth":3,"children":[]},{"title":"Example JSON:","slug":"example-json","depth":3,"children":[]},{"title":"Mandatory Parameters:","slug":"mandatory-parameters","depth":3,"children":[]},{"title":"Optional Parameters:","slug":"optional-parameters","depth":3,"children":[]}]},{"title":"Date Credits cost per request:","slug":"date-credits-cost-per-request","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"similarweb-zp8zf","siteName":"Similarweb","title":"Set Up Your Batch API - Similarweb","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T07:50:29.041Z","originalFileLocation":"docs/set-up-your-batch-api.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=\"light\"}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=\"Step by step guide to set up your Similarweb Batch API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Similarweb\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set Up Your Batch API - Similarweb\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step by step guide to set up your Similarweb Batch API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Similarweb\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://similarweb-zp8zf.mintlify.site/_mintlify/api/og/v2?division=Set+up+your+Batch+API\u0026amp;title=Set+Up+Your+Batch+API\u0026amp;description=Step+by+step+guide+to+set+up+your+Similarweb+Batch+API\u0026amp;theme=5092a9ff0a81408280b82350\u0026amp;signature=a28fc529b7447f90f158b240324b4225c5e5d56334cf8b5f69d9e2a4a0b0b53e\">\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=\"Set Up Your Batch API - Similarweb\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step by step guide to set up your Similarweb Batch API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://similarweb-zp8zf.mintlify.site/_mintlify/api/og/v2?division=Set+up+your+Batch+API\u0026amp;title=Set+Up+Your+Batch+API\u0026amp;description=Step+by+step+guide+to+set+up+your+Similarweb+Batch+API\u0026amp;theme=5092a9ff0a81408280b82350\u0026amp;signature=a28fc529b7447f90f158b240324b4225c5e5d56334cf8b5f69d9e2a4a0b0b53e\">\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/similarweb-zp8zf/hTPLQpheMDfMDQXG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Similarweb\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#185BFE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/set-up-your-batch-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://similarweb-zp8zf.mintlify.app/#organization\",\"name\":\"Similarweb\",\"url\":\"https://similarweb-zp8zf.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/similarweb-zp8zf/QQXWocDl1farlVor/logo-black.svg?fit=max\u0026auto=format\u0026n=QQXWocDl1farlVor\u0026q=85\u0026s=c66a9743af63dd5fde25d9aca64abd54\"}},{\"@type\":\"WebSite\",\"@id\":\"https://similarweb-zp8zf.mintlify.app#website\",\"name\":\"Similarweb\",\"url\":\"https://similarweb-zp8zf.mintlify.app\",\"publisher\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api#webpage\",\"url\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api\",\"name\":\"Set Up Your Batch API\",\"description\":\"Step by step guide to set up your Similarweb Batch API\",\"dateModified\":\"2026-01-07T07:50:29.041Z\",\"isPartOf\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Similarweb\",\"item\":\"https://similarweb-zp8zf.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set Up Your Batch API\",\"item\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api#article\",\"headline\":\"Set Up Your Batch API\",\"name\":\"Set Up Your Batch API\",\"description\":\"Step by step guide to set up your Similarweb Batch API\",\"url\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api\",\"mainEntityOfPage\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app/docs/set-up-your-batch-api#webpage\"},\"dateModified\":\"2026-01-07T07:50:29.041Z\",\"publisher\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://similarweb-zp8zf.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Similarweb\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Similarweb\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/set-up-your-batch-api.md","siteName":"Similarweb","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"book-open-cover","href":"https://www.similarweb.com/blog/"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/similarweb-web-traffic-api"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes/overview"}]},{"tab":"API Documentation","dropdowns":[{"dropdown":"Batch API","groups":[{"group":"Batch API","pages":[{"group":"Set up your Batch API","pages":[{"title":"Set Up Your Batch API","sidebarTitle":"Overview","href":"/docs/set-up-your-batch-api"},{"title":"Report Endpoints","description":null,"href":"/docs/report-endpoints"}]},{"title":"API Discovery Endpoints","href":"/docs/api-discovery-endpoints"}]},{"group":"Batch API - Integrations","pages":[{"title":"Snowflake API Integration","href":"/docs/snowflake"},{"title":"Amazon S3 Integration","href":"/docs/s3-bucket"},{"title":"Salesforce Connector","href":"/docs/salesforce-connector-1"}]},{"group":"Datasets","pages":[{"group":"API Reference","pages":[{"title":"Ecommerce Product Dataset (Shopper Intelligence)","deprecated":false,"version":null,"openapi":"batch-api.json post /v3/batch/shopper/request-report","href":"/api-reference/ecommerce-product-dataset-shopper-intelligence"},{"title":"Websites Dataset (Traffic and Engagement)","deprecated":false,"version":null,"openapi":"batch-api.json post /batch/v4/request-report","href":"/api-reference/websites-dataset-traffic-and-engagement"}]}]}]},{"dropdown":"Rest API","groups":[{"group":"Keyword Research","pages":[{"title":"Keyword Research","openapi":"keywords-api.json get /keywords","href":"/keywords"},{"title":"SERP Players","openapi":"keywords-comp.json get /{domain_name}/search-competitors/paidsearchcompetitors","href":"/keywords-comp"}]}]}]},{"tab":"What's New?","pages":[{"title":"What's New?","href":"/changelog"}]}]},"basePath":"","title":"Set Up Your Batch API - Similarweb","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}