[ { "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.", "url": "https://example.com/", "final_url": "https://example.com/", "html2text": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for\ntesting and monitoring purposes.", "page_html": "<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content=\"width=device-width,initial-scale=1\"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>\n", "page_title": "Example Domain", "country": null, "timestamp": "2026-10-19T18:02:16.659Z", "input": { "url": "https://example.com", "country": "us" } }]
网页内容 API
使用 Fetch API 按 URL 抓取任意网页
使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。
[ { "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.", "url": "https://example.com/", "final_url": "https://example.com/", "html2text": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for\ntesting and monitoring purposes.", "page_html": "<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content=\"width=device-width,initial-scale=1\"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>\n", "page_title": "Example Domain", "country": null, "timestamp": "2026-10-19T18:02:16.659Z", "input": { "url": "https://example.com", "country": "us" } }]
Fetch API(原 Crawl API)是 Web Unlocker API 在 Scraper API 中的对应产品。发送任意公开 URL,即可在一条记录中获取该网页的 Markdown、纯文本、原始 HTML 和 JSON-LD。
查询参数
string
默认值:"gd_m6gjtfmeh43we6cqc"
必填
用于此请求的数据集 ID。
必须设置为 gd_m6gjtfmeh43we6cqc 才能采集 Fetch API - 按 URL 采集 数据。
[ { "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.", "url": "https://example.com/", "final_url": "https://example.com/", "html2text": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for\ntesting and monitoring purposes.", "page_html": "<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content=\"width=device-width,initial-scale=1\"><title>Example Domain</title><style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>\n", "page_title": "Example Domain", "country": null, "timestamp": "2026-10-19T18:02:16.659Z", "input": { "url": "https://example.com", "country": "us" } }]
此页面对您有帮助吗?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bright Data Docs","description":"Documentation for Bright Data proxies, Web Unlocker API, SERP API, Web Scraper API, Browser API, Bright Data MCP, datasets and the CLI.","colors":{"primary":"#4180f9","light":"#4180f9","dark":"#4180f9"},"logo":{"light":"https://mintcdn.com/brightdata/FreEYbEGZchU-2Iw/logo/light.svg?fit=max\u0026auto=format\u0026n=FreEYbEGZchU-2Iw\u0026q=85\u0026s=fa5461a75d0b4cf2e744c89d4b67afac","dark":"https://mintcdn.com/brightdata/FreEYbEGZchU-2Iw/logo/dark.svg?fit=max\u0026auto=format\u0026n=FreEYbEGZchU-2Iw\u0026q=85\u0026s=43d5b51e1516be57edb429337abdc90f","href":"https://brightdata.com/"},"favicon":"https://mintcdn.com/brightdata/5sJgYq9iW-Vo_7rr/favicon.svg?fit=max\u0026auto=format\u0026n=5sJgYq9iW-Vo_7rr\u0026q=85\u0026s=1b96b56f36033019c22871f4799240b0","api":{"mdx":{"auth":{"method":"bearer","name":"API_KEY"}}},"navbar":{"links":[{"href":"https://help.brightdata.com/hc/en-us/requests/new","label":"Support"}],"primary":{"type":"button","label":"Sign up","href":"https://brightdata.com/?hs_signup=1\u0026utm_source=docs"}},"footer":{"socials":{"linkedin":"https://il.linkedin.com/company/bright-data","youtube":"https://www.youtube.com/channel/UCM_0cG1ljAoEUcZIyoUIq6g","github":"https://github.com/luminati-io"}},"styling":{"eyebrows":"section","latex":true},"integrations":{"ga4":{"measurementId":"G-20NKMKN19K"},"gtm":{"tagId":"GTM-P69HL92P"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"cn","href":"cn/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"brightdata","hasAudioNarration":false,"actualSubdomain":"brightdata","customDomains":["docs.brightdata.com"],"gitSource":{"type":"github","owner":"luminati-io","repo":"webdocs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afdd90680aa056f280d1bfc","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"en","tag":"Data extraction","count":354},{"language":"cn","tag":"数据提取","count":354},{"language":"en","tag":"API reference","count":340},{"language":"cn","tag":"API 参考","count":339},{"language":"en","tag":"Documentation","count":206},{"language":"cn","tag":"文档","count":206},{"language":"en","tag":"Scraper API","count":157},{"language":"cn","tag":"Scraper API","count":157},{"language":"en","tag":"Integrations","count":110},{"language":"cn","tag":"集成","count":110},{"language":"en","tag":"SERP API","count":96},{"language":"cn","tag":"SERP API","count":96},{"language":"en","tag":"Social Media APIs","count":66},{"language":"cn","tag":"社交媒体 API","count":66},{"language":"cn","tag":"管理 API","count":64},{"language":"en","tag":"Administrative APIs","count":51},{"language":"en","tag":"Account Management API","count":51},{"language":"cn","tag":"账号管理 API","count":51},{"language":"cn","tag":"代理网络","count":47},{"language":"en","tag":"Proxy","count":46}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"googleFontsInlined":false},"customCss":[{"filePath":"api-reference/style.css","content":".scrollable-list{max-height:150px;overflow-y:auto;border:1px solid #ccc;padding:10px;width:200px;margin:20px}.scrollable-list ul{padding:0;margin:0}.scrollable-list li{transition:transform 0.3s ease, background-color 0.3s ease;padding:5px;margin:4px 0;background-color:#f5f5f5;list-style:none}.scrollable-list li:hover{transform:translateX(10px);background-color:#e0f7fa}"},{"filePath":"style.css","content":"footer{margin-top:2rem}div:has(>div.flex.flex-row-reverse>div.relative.grow>div.mdx-content>.bd-landing){max-width:none!important}div.mdx-content:has(>.bd-landing),div.prose:has(>.bd-landing){max-width:none!important;width:100%!important}div:has(>div.mdx-content>.bd-landing)>header.relative.leading-none,div:has(>div.mdx-content>.bd-landing)>header{display:none!important}.bd-landing{width:100%;max-width:100%}.bd-landing{--bd-primary: #4180f9;--bd-primary-tint: rgba(65, 128, 249, 0.08);--bd-primary-border: rgba(65, 128, 249, 0.25)}.bd-page{width:100%;max-width:100%;margin:0 auto;padding:0 0 3rem;box-sizing:border-box}.bd-hero{display:grid;grid-template-columns:1fr;gap:2rem;align-items:start;margin:0.5rem 0 1.25rem}@media (min-width: 960px){.bd-hero{grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);gap:3rem}}.bd-hero-copy{min-width:0}.bd-hero-image{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center}.bd-hero-image img{width:100%;max-width:480px;max-height:360px;height:auto;object-fit:contain;display:block}.bd-eyebrow{display:inline-block;font-size:0.75rem;font-weight:600;color:var(--bd-primary);text-transform:uppercase;letter-spacing:0.08em;margin-bottom:0.75rem}.bd-hero-copy .bd-headline,h1.bd-headline{font-size:2.75rem!important;font-weight:800!important;line-height:1.05!important;margin:0 0 1rem!important;letter-spacing:-0.025em!important;display:block!important;text-wrap:balance}.bd-hero-copy .bd-headline>a,.bd-hero-copy .bd-headline::before{display:none!important}.bd-subhead{font-size:1.125rem;line-height:1.6;color:#475569;margin:0 0 1.5rem;max-width:38rem}.dark .bd-subhead{color:#cbd5e1}.bd-cta-row{display:flex;flex-wrap:wrap;gap:0.75rem;margin:1.25rem 0 0}.bd-cta-row a.bd-cta-primary,.bd-cta-row a.bd-cta-secondary{display:inline-flex;align-items:center;gap:0.5rem;padding:0.75rem 1.25rem;border-radius:8px;font-size:0.9375rem;font-weight:600;text-decoration:none!important;transition:all 0.15s ease}.bd-cta-row a.bd-cta-primary{background:var(--bd-primary);color:#fff!important;border:1px solid var(--bd-primary)}.bd-cta-row a.bd-cta-primary:hover{background:#2f6ce8;transform:translateY(-1px);box-shadow:0 6px 16px rgba(65, 128, 249, 0.25)}.bd-cta-row a.bd-cta-secondary{background:transparent;color:var(--bd-primary)!important;border:1px solid var(--bd-primary-border)}.bd-cta-row a.bd-cta-secondary:hover{background:var(--bd-primary-tint);border-color:var(--bd-primary)}.bd-callout{display:flex;align-items:center;gap:0.75rem;padding:0.875rem 1.25rem;margin:0 0 2rem;background:var(--bd-primary-tint);border:1px solid var(--bd-primary-border);border-radius:10px;font-size:0.9375rem;line-height:1.5}.bd-callout a{color:var(--bd-primary)!important;font-weight:600;text-decoration:underline}.bd-callout-icon{flex:0 0 auto;font-size:1rem;line-height:1}.bd-pill{display:inline-block;padding:0.25rem 0.625rem;background:var(--bd-primary);color:#fff;border-radius:999px;font-size:0.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;vertical-align:middle}.bd-group-label{margin-top:0.5rem;margin-bottom:1rem}h3.bd-group-heading,.bd-page h3.bd-group-heading{font-size:0.8125rem!important;font-weight:700!important;text-transform:uppercase;letter-spacing:0.08em;color:#64748b!important;margin-top:2.5rem!important;margin-bottom:1rem!important;padding-left:0!important}.dark h3.bd-group-heading,.dark .bd-page h3.bd-group-heading{color:#94a3b8!important}h3.bd-group-heading::before,.bd-page h3.bd-group-heading::before{display:none!important;content:none!important}.bd-landing a[href]:has(>div),.bd-landing [class*=\"card\"]{transition:all 0.2s ease!important}.bd-landing a[href]:has(>div):hover,.bd-landing [class*=\"card\"]:hover{border-color:var(--bd-primary)!important;transform:translateY(-2px)!important;box-shadow:0 8px 24px rgba(65, 128, 249, 0.12)!important}.bd-landing svg[class*=\"icon\"],.bd-landing [class*=\"card\"] svg{color:var(--bd-primary)!important}.bd-page>h2{font-size:1.75rem!important;font-weight:700!important;margin-top:4rem!important;margin-bottom:1.25rem!important;line-height:1.2!important;position:relative;padding-left:1rem;color:inherit}.bd-page>h2::before{content:\"\";position:absolute;left:0;top:0.25rem;bottom:0.25rem;width:4px;background:var(--bd-primary);border-radius:2px}.bd-page>h2+p,.bd-page>h3+p{margin-top:0!important;margin-bottom:1.5rem!important;color:#64748b;font-size:1rem;line-height:1.6}.dark .bd-page>h2+p,.dark .bd-page>h3+p{color:#94a3b8}.bd-page>h3{font-size:1.125rem!important;font-weight:600!important;margin-top:2rem!important;margin-bottom:1rem!important;color:inherit}.bd-page>p{font-size:1rem;line-height:1.6;color:inherit;margin:0 0 1.5rem}div.mt-12>li>div{font-weight:600}div.mt-12>h5{font-weight:bolder}.bd-browse-all{display:inline-flex;align-items:center;gap:0.375rem;margin-top:1.25rem;margin-bottom:2rem;font-weight:600;color:var(--bd-primary)!important}.bd-credits{margin:1.5rem 0 0;font-size:0.875rem;line-height:1.6;color:#64748b}.dark .bd-credits{color:#94a3b8}.bd-hero-code{min-width:0;max-width:100%}.bd-hero-code pre{font-size:0.8125rem}.bd-hero{margin-bottom:3rem}.bd-page--plain>h2{padding-left:0!important}.bd-page--plain>h2::before{display:none!important;content:none!important}.bd-landing p.truncate{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.bd-landing a.tile,.bd-landing a.tile>div{align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important}.bd-landing a.tile img{width:100%!important;align-self:stretch!important}.bd-catalog-row{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 2fr);gap:2rem 3rem;padding:2.25rem 0}.bd-catalog-row+.bd-catalog-row{border-top:1px solid rgba(148, 163, 184, 0.18)}@media (max-width: 860px){.bd-catalog-row{grid-template-columns:1fr;gap:1rem}}.bd-catalog-info h3{font-size:1.1875rem!important;font-weight:600!important;margin:0 0 0.5rem!important}.bd-catalog-info h3 a,.bd-catalog-info h3::before{display:none!important}.bd-catalog-info p{margin:0;font-size:0.9375rem;line-height:1.6;color:#64748b;max-width:26rem}.dark .bd-catalog-info p{color:#94a3b8}.bd-catalog-items{display:grid;grid-template-columns:repeat(auto-fill, minmax(12.5rem, 1fr));gap:0.25rem 1rem;align-content:start}a.bd-catalog-item{display:flex;align-items:flex-start;gap:0.625rem;padding:0.5rem 0.625rem;border-radius:8px;font-size:0.9375rem;font-weight:500;color:inherit!important;text-decoration:none!important;border:none!important;transition:background 0.15s ease}a.bd-catalog-item:hover{background:rgba(65, 128, 249, 0.08)}a.bd-catalog-item:hover .bd-catalog-item-name{color:var(--bd-primary, #4180f9)}.bd-catalog-item-text{display:flex;flex-direction:column;gap:0.125rem;min-width:0}.bd-catalog-item-name{line-height:1.35}.bd-catalog-item-desc{font-size:0.8125rem;font-weight:400;line-height:1.45;color:#64748b}.dark .bd-catalog-item-desc{color:#94a3b8}a.bd-catalog-item svg{margin-top:0.2rem}a.bd-catalog-item svg,a.bd-catalog-item [class*=\"icon\"]{flex:0 0 auto;width:1rem;height:1rem;color:var(--bd-primary, #4180f9)}.bd-footer-links{display:flex;flex-wrap:wrap;gap:2rem;margin-top:5rem;padding-top:1.75rem;border-top:1px solid rgba(148, 163, 184, 0.25)}.bd-footer-links a{font-size:0.875rem;font-weight:500;color:#64748b!important;text-decoration:none!important}.bd-footer-links a:hover{color:var(--bd-primary)!important}.dark .bd-footer-links a{color:#94a3b8!important}.scrollable-list{max-height:150px;overflow-y:auto;border:1px solid #ccc;padding:10px;width:200px;margin:20px}.scrollable-list ul{padding:0;margin:0}.scrollable-list li{transition:transform 0.3s ease, background-color 0.3s ease;padding:5px;margin:4px 0;background-color:#f5f5f5;list-style:none}.scrollable-list li:hover{transform:translateX(10px);background-color:#e0f7fa}"}],"page":{"pagePath":"cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url","slug":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url","pageMetadata":{"title":"使用 Fetch API 按 URL 抓取任意网页","description":"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。","sidebarTitle":"Fetch API - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url"},"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: \"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Fetch API(原 Crawl API)是 Web Unlocker API 在 Scraper API 中的对应产品。发送任意公开 URL,即可在一条记录中获取该网页的 Markdown、纯文本、原始 HTML 和 JSON-LD。`}),`\n`,_jsx(Heading,{level:`2`,id:`查询参数`,children:`查询参数`}),`\n`,_jsxs(ParamField,{query:`dataset_id`,type:`string`,default:`gd_m6gjtfmeh43we6cqc`,required:true,id:`param-dataset-id`,children:[_jsx(_components.p,{children:`用于此请求的数据集 ID。`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`必须设置为 `,_jsx(_components.code,{children:`gd_m6gjtfmeh43we6cqc`}),` 才能采集 `,_jsx(_components.strong,{children:`Fetch API - 按 URL 采集`}),` 数据。`]})})]}),`\n`,_jsx(ParamField,{query:`notify`,type:`boolean`,default:false,id:`param-notify`,children:_jsx(_components.p,{children:`请求完成时是否发送通知。`})}),`\n`,_jsx(ParamField,{query:`include_errors`,type:`boolean`,default:true,id:`param-include-errors`,children:_jsx(_components.p,{children:`是否在响应中包含错误。`})}),`\n`,_jsx(ParamField,{query:`custom_output_fields`,type:`string`,id:`param-custom-output-fields`,children:_jsxs(_components.p,{children:[`仅返回列出的输出字段,字段之间用竖线(`,_jsx(_components.code,{children:`|`}),`)分隔。例如,`,_jsx(_components.code,{children:`url|markdown`}),` 仅返回 URL 和网页的 Markdown 版本。`]})}),`\n`,_jsx(Heading,{level:`2`,id:`请求体`,children:`请求体`}),`\n`,_jsxs(ParamField,{body:`input`,type:`object[]`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`输入对象数组。`}),_jsxs(Expandable,{title:`属性`,children:[_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`要获取的网页 URL。接受任意公开域名。`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country`,children:_jsxs(_components.p,{children:[`获取网页时使用的两位国家代码,请使用大写,例如 `,_jsx(_components.code,{children:`US`}),` 或 `,_jsx(_components.code,{children:`DE`}),`。使用小写代码时仍会按该国家获取网页,但记录中的 `,_jsx(_components.code,{children:`country`}),` 字段会返回 `,_jsx(_components.code,{children:`null`}),`,如下方示例响应所示。`]})})]}),_jsx(Heading,{level:`4`,id:`示例`,children:`示例`}),_jsx(CodeBlock,{filename:``,wrap:`true`,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:` \"input\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"country\"`}),_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`,_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(Heading,{level:`2`,id:`输出字段`,children:`输出字段`}),`\n`,_jsx(_components.p,{children:`每条记录包含以下字段:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`字段`}),_jsx(_components.th,{children:`类型`}),_jsx(_components.th,{children:`说明`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`url`}),_jsx(_components.td,{children:`输入的 URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`final_url`})}),_jsx(_components.td,{children:`url`}),_jsx(_components.td,{children:`重定向后的 URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page_title`})}),_jsx(_components.td,{children:`text`}),_jsx(_components.td,{children:`网页标题`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{children:`country`}),_jsx(_components.td,{children:`获取网页时使用的国家`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markdown`})}),_jsx(_components.td,{children:`Markdown`}),_jsx(_components.td,{children:`以 Markdown 格式呈现的网页内容,保留标题、列表和链接`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`html2text`})}),_jsx(_components.td,{children:`text`}),_jsx(_components.td,{children:`去除所有 HTML 标签和格式后的网页文本`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page_html`})}),_jsx(_components.td,{children:`HTML`}),_jsx(_components.td,{children:`完整的 HTML 源代码,包括标签、脚本和样式`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ld_json`})}),_jsx(_components.td,{children:`JSON`}),_jsx(_components.td,{children:`网页中的 JSON-LD 结构化元数据,例如 schema.org 数据`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`如只需要部分字段,请设置 `,_jsx(_components.code,{children:`custom_output_fields`}),`,例如 `,_jsx(_components.code,{children:`custom_output_fields=url|markdown`}),`。`]}),`\n`,_jsxs(_components.p,{children:[`没有值的字段可能不会出现在记录中。例如,当网页没有 JSON-LD 元数据时,记录中不包含 `,_jsx(_components.code,{children:`ld_json`}),`,如 `,_jsx(_components.code,{children:`https://example.com`}),` 的示例响应所示。`]})]})}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":"使用 Fetch API 按 URL 抓取任意网页","description":"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。","sidebarTitle":"Fetch API - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Fetch API(原 Crawl API)是 Web Unlocker API 在 Scraper API 中的对应产品。发送任意公开 URL,即可在一条记录中获取该网页的 Markdown、纯文本、原始 HTML 和 JSON-LD。`}),`\n`,_jsx(Heading,{level:`2`,id:`查询参数`,children:`查询参数`}),`\n`,_jsxs(ParamField,{query:`dataset_id`,type:`string`,default:`gd_m6gjtfmeh43we6cqc`,required:true,id:`param-dataset-id`,children:[_jsx(_components.p,{children:`用于此请求的数据集 ID。`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`必须设置为 `,_jsx(_components.code,{children:`gd_m6gjtfmeh43we6cqc`}),` 才能采集 `,_jsx(_components.strong,{children:`Fetch API - 按 URL 采集`}),` 数据。`]})})]}),`\n`,_jsx(ParamField,{query:`notify`,type:`boolean`,default:false,id:`param-notify`,children:_jsx(_components.p,{children:`请求完成时是否发送通知。`})}),`\n`,_jsx(ParamField,{query:`include_errors`,type:`boolean`,default:true,id:`param-include-errors`,children:_jsx(_components.p,{children:`是否在响应中包含错误。`})}),`\n`,_jsx(ParamField,{query:`custom_output_fields`,type:`string`,id:`param-custom-output-fields`,children:_jsxs(_components.p,{children:[`仅返回列出的输出字段,字段之间用竖线(`,_jsx(_components.code,{children:`|`}),`)分隔。例如,`,_jsx(_components.code,{children:`url|markdown`}),` 仅返回 URL 和网页的 Markdown 版本。`]})}),`\n`,_jsx(Heading,{level:`2`,id:`请求体`,children:`请求体`}),`\n`,_jsxs(ParamField,{body:`input`,type:`object[]`,required:true,id:`param-input`,children:[_jsx(_components.p,{children:`输入对象数组。`}),_jsxs(Expandable,{title:`属性`,children:[_jsx(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:_jsx(_components.p,{children:`要获取的网页 URL。接受任意公开域名。`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country`,children:_jsxs(_components.p,{children:[`获取网页时使用的两位国家代码,请使用大写,例如 `,_jsx(_components.code,{children:`US`}),` 或 `,_jsx(_components.code,{children:`DE`}),`。使用小写代码时仍会按该国家获取网页,但记录中的 `,_jsx(_components.code,{children:`country`}),` 字段会返回 `,_jsx(_components.code,{children:`null`}),`,如下方示例响应所示。`]})})]}),_jsx(Heading,{level:`4`,id:`示例`,children:`示例`}),_jsx(CodeBlock,{filename:``,wrap:`true`,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:` \"input\"`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"country\"`}),_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`,_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(Heading,{level:`2`,id:`输出字段`,children:`输出字段`}),`\n`,_jsx(_components.p,{children:`每条记录包含以下字段:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`字段`}),_jsx(_components.th,{children:`类型`}),_jsx(_components.th,{children:`说明`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{children:`url`}),_jsx(_components.td,{children:`输入的 URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`final_url`})}),_jsx(_components.td,{children:`url`}),_jsx(_components.td,{children:`重定向后的 URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page_title`})}),_jsx(_components.td,{children:`text`}),_jsx(_components.td,{children:`网页标题`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{children:`country`}),_jsx(_components.td,{children:`获取网页时使用的国家`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markdown`})}),_jsx(_components.td,{children:`Markdown`}),_jsx(_components.td,{children:`以 Markdown 格式呈现的网页内容,保留标题、列表和链接`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`html2text`})}),_jsx(_components.td,{children:`text`}),_jsx(_components.td,{children:`去除所有 HTML 标签和格式后的网页文本`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page_html`})}),_jsx(_components.td,{children:`HTML`}),_jsx(_components.td,{children:`完整的 HTML 源代码,包括标签、脚本和样式`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ld_json`})}),_jsx(_components.td,{children:`JSON`}),_jsx(_components.td,{children:`网页中的 JSON-LD 结构化元数据,例如 schema.org 数据`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`如只需要部分字段,请设置 `,_jsx(_components.code,{children:`custom_output_fields`}),`,例如 `,_jsx(_components.code,{children:`custom_output_fields=url|markdown`}),`。`]}),`\n`,_jsxs(_components.p,{children:[`没有值的字段可能不会出现在记录中。例如,当网页没有 JSON-LD 元数据时,记录中不包含 `,_jsx(_components.code,{children:`ld_json`}),`,如 `,_jsx(_components.code,{children:`https://example.com`}),` 的示例响应所示。`]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_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:` \"markdown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"final_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"html2text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`testing and monitoring purposes.\"`}),_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:` \"page_html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003c!doctype html>\u003chtml lang=en>\u003chead>\u003cmeta charset=utf-8>\u003clink rel=icon href=data:,>\u003cmeta name=viewport content=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`width=device-width,initial-scale=1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`>\u003ctitle>Example Domain\u003c/title>\u003cstyle>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}\u003c/style>\u003c/head>\u003cbody>\u003cp>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.\u003c/p>\u003cscript src=/s.js>\u003c\\/script>\u003c/body>\u003c/html>`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page_title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Domain\"`}),_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:` \"country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-19T18:02:16.659Z\"`}),_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:` \"input\"`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"us\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_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`]})})})})]})}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":"使用 Fetch API 按 URL 抓取任意网页","description":"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。","sidebarTitle":"Fetch API - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url"}}}},"mdxExtracts":{"tableOfContents":[{"title":"查询参数","slug":"查询参数","depth":2,"children":[]},{"title":"请求体","slug":"请求体","depth":2,"children":[{"title":"示例","slug":"示例","depth":4,"children":[]}]},{"title":"输出字段","slug":"输出字段","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"markdown\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"final_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"html2text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">testing and monitoring purposes.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page_html\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u0026#x3C;!doctype html>\u0026#x3C;html lang=en>\u0026#x3C;head>\u0026#x3C;meta charset=utf-8>\u0026#x3C;link rel=icon href=data:,>\u0026#x3C;meta name=viewport content=\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">width=device-width,initial-scale=1\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">>\u0026#x3C;title>Example Domain\u0026#x3C;/title>\u0026#x3C;style>html{color-scheme:light dark;background:light-dark(#eee,#222)}body{font:16px/1.6 system-ui,sans-serif;max-width:26em;margin:auto;padding:25vh 2em 2em;text-align:center}\u0026#x3C;/style>\u0026#x3C;/head>\u0026#x3C;body>\u0026#x3C;p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.\u0026#x3C;/p>\u0026#x3C;script src=/s.js>\u0026#x3C;/script>\u0026#x3C;/body>\u0026#x3C;/html>\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page_title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Domain\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"country\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-19T18:02:16.659Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"input\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"country\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"us\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"使用 Fetch API 按 URL 抓取任意网页","path":"/datasets/v3/scrape","servers":[{"url":"https://api.brightdata.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{"dataset_id":{"schema":[{"type":"string","description":"用于此请求的数据集 ID。","required":true}]},"notify":{"schema":[{"type":"boolean","description":"请求完成时是否发送通知。"}]},"include_errors":{"schema":[{"type":"boolean","description":"是否在响应中包含错误。"}]},"custom_output_fields":{"schema":[{"type":"string","description":"仅返回列出的输出字段,字段之间用竖线( `|` )分隔。例如, `url|markdown` 仅返回 URL 和网页的 Markdown 版本。"}]}},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"input":[{"type":"array","items":[{"type":"object","properties":{"url":[{"type":"string","description":"要获取的网页 URL。接受任意公开域名。","required":true}],"country":[{"type":"string","description":"获取网页时使用的两位国家代码,请使用大写,例如 `US` 或 `DE` 。使用小写代码时仍会按该国家获取网页,但记录中的 `country` 字段会返回 `null` ,如下方示例响应所示。"}]}}],"description":"输入对象数组。","required":true}]}}],"examples":{"example":{"value":{"input":[{"url":"\u003cstring>","country":"\u003cstring>"}]}}}}}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/brightdata/68bae243aeababfe/script.js","/_mintlify/custom/brightdata/c119bb67904233e1/nav-internal-links.js","/_mintlify/custom/brightdata/2dd0be8455e09562/prompt-copy-plaintext.js","/_mintlify/custom/brightdata/614f9419dc2a8785/marketing-attribution.js"],"subdomain":"brightdata","siteName":"Bright Data Docs","title":"使用 Fetch API 按 URL 抓取任意网页 - Bright Data Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url","matchLevel":1},"cn":{"href":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url","matchLevel":0}}},"lastModified":"2026-11-12T11:38:24.693Z","originalFileLocation":"cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url.mdx","locale":"cn"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bright Data Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_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/brightdata/uUUbPQlQGu6JyjN0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"使用 Fetch API 按 URL 抓取任意网页 - Bright Data Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bright Data Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://brightdata.mintlify.site/_mintlify/api/og/v2?division=%E7%BD%91%E9%A1%B5%E5%86%85%E5%AE%B9+API\u0026amp;title=%E4%BD%BF%E7%94%A8+Fetch+API+%E6%8C%89+URL+%E6%8A%93%E5%8F%96%E4%BB%BB%E6%84%8F%E7%BD%91%E9%A1%B5\u0026amp;description=%E4%BD%BF%E7%94%A8+Bright+Data+Fetch+API+%E7%88%AC%E8%99%AB%E6%8C%89+URL+%E9%87%87%E9%9B%86%E4%BB%BB%E6%84%8F%E5%85%AC%E5%BC%80%E7%BD%91%E9%A1%B5%EF%BC%8C%E4%BB%A5+Markdown%E3%80%81%E7%BA%AF%E6%96%87%E6%9C%AC%E3%80%81%E5%8E%9F%E5%A7%8B+HTML+%E6%88%96+JSON-LD+%E6%A0%BC%E5%BC%8F%E8%BF%94%E5%9B%9E%EF%BC%8C%E5%B9%B6%E5%8F%AF%E9%80%9A%E8%BF%87+country+%E5%8F%82%E6%95%B0%E6%8C%87%E5%AE%9A%E5%9B%BD%E5%AE%B6%E3%80%82%E5%8F%91%E9%80%81+POST+%2Fdatasets%2Fv3%2Fscrape+%E8%8E%B7%E5%8F%96%E7%BB%93%E6%9E%9C%E3%80%82\u0026amp;theme=7da10763b4cc41bb49d4e8a2\u0026amp;signature=26774a3c7ed58b683a23338aac5ad36eb88a27651e8b3e816ee2e35e9e5c0568\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"使用 Fetch API 按 URL 抓取任意网页 - Bright Data Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://brightdata.mintlify.site/_mintlify/api/og/v2?division=%E7%BD%91%E9%A1%B5%E5%86%85%E5%AE%B9+API\u0026amp;title=%E4%BD%BF%E7%94%A8+Fetch+API+%E6%8C%89+URL+%E6%8A%93%E5%8F%96%E4%BB%BB%E6%84%8F%E7%BD%91%E9%A1%B5\u0026amp;description=%E4%BD%BF%E7%94%A8+Bright+Data+Fetch+API+%E7%88%AC%E8%99%AB%E6%8C%89+URL+%E9%87%87%E9%9B%86%E4%BB%BB%E6%84%8F%E5%85%AC%E5%BC%80%E7%BD%91%E9%A1%B5%EF%BC%8C%E4%BB%A5+Markdown%E3%80%81%E7%BA%AF%E6%96%87%E6%9C%AC%E3%80%81%E5%8E%9F%E5%A7%8B+HTML+%E6%88%96+JSON-LD+%E6%A0%BC%E5%BC%8F%E8%BF%94%E5%9B%9E%EF%BC%8C%E5%B9%B6%E5%8F%AF%E9%80%9A%E8%BF%87+country+%E5%8F%82%E6%95%B0%E6%8C%87%E5%AE%9A%E5%9B%BD%E5%AE%B6%E3%80%82%E5%8F%91%E9%80%81+POST+%2Fdatasets%2Fv3%2Fscrape+%E8%8E%B7%E5%8F%96%E7%BB%93%E6%9E%9C%E3%80%82\u0026amp;theme=7da10763b4cc41bb49d4e8a2\u0026amp;signature=26774a3c7ed58b683a23338aac5ad36eb88a27651e8b3e816ee2e35e9e5c0568\">\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/brightdata/uUUbPQlQGu6JyjN0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bright Data Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4180f9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.brightdata.com/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.brightdata.com/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.brightdata.com/#organization\",\"name\":\"Bright Data Docs\",\"url\":\"https://docs.brightdata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/brightdata/FreEYbEGZchU-2Iw/logo/light.svg?fit=max\u0026auto=format\u0026n=FreEYbEGZchU-2Iw\u0026q=85\u0026s=fa5461a75d0b4cf2e744c89d4b67afac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.brightdata.com#website\",\"name\":\"Bright Data Docs\",\"url\":\"https://docs.brightdata.com\",\"publisher\":{\"@id\":\"https://docs.brightdata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url#webpage\",\"url\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\",\"name\":\"使用 Fetch API 按 URL 抓取任意网页\",\"description\":\"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\",\"dateModified\":\"2026-11-12T11:38:24.693Z\",\"isPartOf\":{\"@id\":\"https://docs.brightdata.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"数据提取\",\"item\":\"https://docs.brightdata.com/cn/api-reference/rest-api/scraper/asynchronous-requests\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scraper API\",\"item\":\"https://docs.brightdata.com/cn/api-reference/rest-api/scraper/asynchronous-requests\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"使用 Fetch API 按 URL 抓取任意网页\",\"item\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url#apireference\",\"headline\":\"使用 Fetch API 按 URL 抓取任意网页\",\"name\":\"使用 Fetch API 按 URL 抓取任意网页\",\"description\":\"使用 Bright Data Fetch API 爬虫按 URL 采集任意公开网页,以 Markdown、纯文本、原始 HTML 或 JSON-LD 格式返回,并可通过 country 参数指定国家。发送 POST /datasets/v3/scrape 获取结果。\",\"url\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url\",\"mainEntityOfPage\":{\"@id\":\"https://docs.brightdata.com/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url#webpage\"},\"dateModified\":\"2026-11-12T11:38:24.693Z\",\"publisher\":{\"@id\":\"https://docs.brightdata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.brightdata.com#website\"}}]}\u003c/script>","agentPointerHref":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url.md","siteName":"Bright Data Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url"}]},{"language":"cn","tabs":[{"tab":"文档","pages":[{"title":"文档","href":"/cn/introduction"}]},{"tab":"API 参考","groups":[{"group":"基础","pages":[{"title":"认证","icon":"shield-keyhole","href":"/cn/api-reference/authentication"},{"title":"术语","icon":"clipboard-list","href":"/cn/api-reference/terminology"},{"group":"CLI","icon":"terminal","pages":[{"title":"Bright Data CLI","sidebarTitle":"概览","icon":"terminal","href":"/cn/products/cli/overview"},{"title":"安装和设置","sidebarTitle":"安装","icon":"download","href":"/cn/products/cli/installation"},{"title":"命令参考","sidebarTitle":"命令","icon":"code","href":"/cn/products/cli/commands"},{"title":"使用示例","sidebarTitle":"示例","icon":"book-open","href":"/cn/products/cli/examples"},{"title":"常见问题","sidebarTitle":"常见问题","icon":"question","href":"/cn/products/cli/faqs"}]},{"title":"Python SDK","sidebarTitle":"Python SDK","icon":"Python","href":"/cn/api-reference/SDK"},{"sidebarTitle":"JavaScript SDK","icon":"node-js","title":"JavaScript SDK","href":"/cn/api-reference/SDK-JS"}]},{"group":"数据提取","pages":[{"group":"Scraper API","pages":[{"title":"异步请求","openapi":"api-reference/rest-api/scraper/cn-scraper-rest-api.json POST /datasets/v3/trigger","href":"/cn/api-reference/rest-api/scraper/asynchronous-requests"},{"title":"同步请求","sidebarTitle":"同步请求","openapi":"cn-dca-api POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/synchronous-requests"},{"group":"交付 API","pages":[{"title":"下载 Snapshot","openapi":"cn-dca-api GET /datasets/v3/snapshot/{snapshot_id}","href":"/cn/api-reference/scrapers/delivery-apis/download-snapshot"},{"title":"交付快照","openapi":"cn-dca-api POST /datasets/v3/deliver/{snapshot_id}","href":"/cn/api-reference/scrapers/delivery-apis/deliver-snapshot"}]},{"group":"管理 API","pages":[{"title":"获取所有采集器","openapi":"cn-dca-api get /datasets/v3/scrapers","sidebarTitle":"所有采集器","href":"/cn/api-reference/scrapers/management-apis/get-scrapers"},{"title":"监控进度","openapi":"cn-dca-api GET /datasets/v3/progress/{snapshot_id}","href":"/cn/api-reference/scrapers/management-apis/monitor-progress"},{"title":"获取快照","openapi":"cn-dca-api get /datasets/v3/snapshots","href":"/cn/api-reference/scrapers/management-apis/get-snapshots"},{"title":"监控交付","openapi":"cn-dca-api get /datasets/v3/delivery/{delivery_id}","href":"/cn/api-reference/scrapers/management-apis/monitor-delivery"},{"title":"获取快照交付部分","openapi":"cn-dca-api get /datasets/v3/snapshot/{snapshot_id}/parts","href":"/cn/api-reference/scrapers/management-apis/get-snapshot-delivery-parts"},{"title":"获取快照输入","openapi":"cn-dca-api get /datasets/v3/snapshot/{snapshot_id}/input","href":"/cn/api-reference/scrapers/management-apis/get-snapshot-input"},{"title":"获取快照数据","openapi":"cn-dca-api get /datasets/v3/log/{snapshot_id}","href":"/cn/api-reference/scrapers/management-apis/snapshot-data"},{"title":"取消快照","openapi":"cn-dca-api post /datasets/v3/snapshot/{snapshot_id}/cancel","href":"/cn/api-reference/scrapers/management-apis/cancel-snapshot"},{"title":"暂停快照","openapi":"cn-dca-api post /datasets/v3/snapshot/{snapshot_id}/pause","href":"/cn/api-reference/scrapers/management-apis/pause-snapshot"},{"title":"恢复快照","openapi":"cn-dca-api post /datasets/v3/snapshot/{snapshot_id}/resume","href":"/cn/api-reference/scrapers/management-apis/resume-snapshot"},{"title":"重新运行快照","openapi":"api-reference/cn-dca-api post /datasets/v3/snapshot/{snapshot_id}/rerun","href":"/cn/api-reference/scrapers/management-apis/rerun-snapshot"},{"title":"获取采集器填充率","openapi":"cn-dca-api get /datasets/v3/scraper/{dataset_id}/fill_rate","sidebarTitle":"采集器填充率","href":"/cn/api-reference/scrapers/management-apis/get-fill-rates"},{"title":"获取快照填充率","openapi":"cn-dca-api get /datasets/v3/snapshot/{snapshot_id}/fill_rate","sidebarTitle":"快照填充率","href":"/cn/api-reference/scrapers/management-apis/get-snapshot-fill-rates"}]},{"group":"社交媒体 API","pages":[{"title":"社交媒体 Scraper API","sidebarTitle":"概览","href":"/cn/api-reference/scrapers/social-media-apis/overview"},{"group":"Facebook","pages":[{"title":"按 URL 抓取 Facebook 主页帖子","openapi":"api-reference/sdk-specs/facebook-pages-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-pages-posts-collect-by-url"},{"title":"按用户名发现 Facebook 主页帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-pages-posts-discover-by-username"},{"title":"按 URL 抓取 Facebook 评论","openapi":"api-reference/sdk-specs/facebook-comments-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-comments-collect-by-url"},{"title":"按群组 URL 抓取 Facebook 帖子","openapi":"api-reference/sdk-specs/facebook-posts-by-group-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-posts-by-group-collect-by-url"},{"title":"按 URL 抓取 Facebook 帖子","openapi":"api-reference/sdk-specs/facebook-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-posts-collect-by-url"},{"title":"按 URL 抓取 Facebook Marketplace 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-marketplace-collect-by-url"},{"title":"按关键词发现 Facebook Marketplace 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-marketplace-discover-by-keyword"},{"title":"按 URL 发现 Facebook Marketplace 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-marketplace-discover-by-url"},{"title":"按 URL 抓取 Facebook 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-profiles-collect-by-url"},{"title":"按 URL 抓取 Facebook 主页和个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-pages-and-profiles-collect-by-url"},{"title":"按 URL 抓取 Facebook 活动","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-events-collect-by-url"},{"title":"按 URL 发现 Facebook 活动","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-events-discover-by-url"},{"title":"按场地发现 Facebook 活动","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-events-discover-by-venue"},{"title":"按资料 URL 抓取 Facebook Reels","openapi":"api-reference/sdk-specs/facebook-reels-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-reels-collect-by-url"},{"title":"按 URL 抓取 Facebook 公司评论","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/facebook-company-reviews-collect-by-url"}]},{"group":"Instagram","pages":[{"title":"按 URL 抓取 Instagram 个人资料","openapi":"api-reference/sdk-specs/instagram-profiles-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-profiles-collect-by-url"},{"title":"按用户名发现 Instagram 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-profiles-discover-by-username"},{"title":"按 URL 抓取 Instagram 帖子","openapi":"api-reference/sdk-specs/instagram-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-posts-collect-by-url"},{"title":"按 URL 发现 Instagram 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-posts-discover-by-url"},{"title":"按 URL 抓取 Instagram Reels","openapi":"api-reference/sdk-specs/instagram-reels-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-reels-collect-by-url"},{"title":"按 URL 发现 Instagram Reels","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-reels-discover-by-url"},{"title":"抓取全部 Instagram Reels","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-reels-collect-all"},{"title":"按 URL 抓取 Instagram 评论","openapi":"api-reference/sdk-specs/instagram-comments-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/instagram-comments-collect-by-url"}]},{"group":"LinkedIn","pages":[{"title":"按 URL 抓取 LinkedIn 个人资料","openapi":"api-reference/sdk-specs/linkedin-profiles-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-profiles-collect-by-url"},{"title":"按 URL 抓取 LinkedIn 公司","openapi":"api-reference/sdk-specs/linkedin-companies-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-companies-collect-by-url"},{"title":"按 URL 发现 LinkedIn 职位","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-jobs-discover-by-url"},{"title":"按 URL 抓取 LinkedIn 职位","openapi":"api-reference/sdk-specs/linkedin-jobs-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-jobs-collect-by-url"},{"title":"按关键词发现 LinkedIn 职位","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-jobs-discover-by-keyword"},{"title":"按个人资料 URL 发现 LinkedIn 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-posts-discover-by-profile-url"},{"title":"按 URL 发现 LinkedIn 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-posts-discover-by-url"},{"title":"按 URL 抓取 LinkedIn 帖子","openapi":"api-reference/sdk-specs/linkedin-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-posts-collect-by-url"},{"title":"按公司 URL 发现 LinkedIn 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-posts-discover-by-company-url"},{"title":"发现新的 LinkedIn 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/linkedin-people-discover-new-profiles"}]},{"group":"TikTok","pages":[{"title":"按 URL 抓取 TikTok 个人资料","openapi":"api-reference/sdk-specs/tiktok-profiles-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-profiles-collect-by-url"},{"title":"按搜索 URL 发现 TikTok 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-profiles-discover-by-search-url"},{"title":"按 URL 抓取 TikTok 帖子","openapi":"api-reference/sdk-specs/tiktok-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-posts-collect-by-url"},{"title":"按关键词发现 TikTok 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-posts-discover-by-keyword"},{"title":"按个人资料 URL 发现 TikTok 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-posts-discover-by-profile-url"},{"title":"按 URL 发现 TikTok 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-posts-discover-by-url"},{"title":"按 URL 抓取 TikTok Shop 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-shop-collect-by-url"},{"title":"按分类发现 TikTok Shop 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-shop-discover-by-category"},{"title":"按关键词发现 TikTok Shop 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-shop-discover-by-keyword"},{"title":"按店铺发现 TikTok Shop 商品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-shop-discover-by-shop"},{"title":"按 URL 抓取 TikTok 评论","openapi":"api-reference/sdk-specs/tiktok-comments-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-comments-collect-by-url"},{"title":"按个人资料抓取 TikTok 帖子(Fast API)","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/tiktok-posts-by-profile-fast-api-collect-by-url"}]},{"group":"Reddit","pages":[{"title":"按 URL 抓取 Reddit 帖子","openapi":"api-reference/sdk-specs/reddit-posts-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/reddit-posts-collect-by-url"},{"title":"按关键词发现 Reddit 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/reddit-posts-discover-by-keyword"},{"title":"按子版块 URL 发现 Reddit 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/reddit-posts-discover-by-subreddit-url"},{"title":"按 URL 抓取 Reddit 评论","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/reddit-comments-collect-by-url"}]},{"group":"X (Twitter)","pages":[{"title":"按 URL 抓取 X (Twitter) 帖子","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/twitter-posts-collect-by-url"},{"title":"按 URL 抓取 X (Twitter) 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/twitter-profiles-collect-by-url"},{"title":"按用户名发现 X (Twitter) 个人资料","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/twitter-profiles-discover-by-username"}]},{"title":"Pinterest API 抓取工具","sidebarTitle":"Pinterest","href":"/cn/api-reference/scrapers/social-media-apis/pinterest"},{"title":"Quora API 抓取器","sidebarTitle":"Quora","href":"/cn/api-reference/scrapers/social-media-apis/quora"},{"title":"Vimeo API 抓取器","sidebarTitle":"Vimeo","href":"/cn/api-reference/scrapers/social-media-apis/vimeo"},{"group":"YouTube","pages":[{"title":"按 URL 抓取 YouTube 视频","openapi":"api-reference/sdk-specs/youtube-videos-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-collect-by-url"},{"title":"从探索页发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-explore"},{"title":"按话题标签发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-hashtag"},{"title":"按关键词发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-keyword"},{"title":"按播客 URL 发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-podcast-url"},{"title":"按搜索筛选条件发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-search-filters"},{"title":"按 URL 发现 YouTube 视频","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-videos-discover-by-url"},{"title":"按 URL 抓取 YouTube 频道","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-channels-collect-by-url"},{"title":"按关键词发现 YouTube 频道","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-channels-discover-by-keyword"},{"title":"按 URL 抓取 YouTube 评论","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/social-media-apis/youtube-comments-collect-by-url"}]}]},{"group":"电商 API","pages":[{"group":"Amazon","pages":[{"title":"按 URL 抓取 Amazon 产品","openapi":"api-reference/sdk-specs/amazon-products-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-collect-by-url"},{"title":"按畅销榜 URL 发现 Amazon 产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-discover-by-best-sellers-url"},{"title":"按类别 URL 发现 Amazon 产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-discover-by-category-url"},{"title":"按关键词发现 Amazon 产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-discover-by-keyword"},{"title":"按 UPC 发现 Amazon 产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-discover-by-upc"},{"title":"按 URL 抓取 Amazon 评论","openapi":"api-reference/sdk-specs/amazon-reviews-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-reviews-collect-by-url"},{"title":"按 URL 抓取 Amazon 卖家信息","openapi":"api-reference/sdk-specs/amazon-sellers-info-collect-by-url POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-sellers-info-collect-by-url"},{"title":"按 URL 抓取 Amazon 全球产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-global-collect-by-url"},{"title":"按品牌发现 Amazon 全球产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-global-discover-by-brand"},{"title":"按类别 URL 发现 Amazon 全球产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-global-discover-by-category-url"},{"title":"按关键词发现 Amazon 全球产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-global-discover-by-keywords"},{"title":"按卖家发现 Amazon 全球产品","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-global-discover-by-seller"},{"title":"按 URL 抓取 Amazon 产品搜索","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/e-commerce-apis/amazon-products-search-collect-by-url"}]}]},{"group":"搜索引擎 API","pages":[{"group":"Google","pages":[{"title":"按 URL 抓取 Google 地图地点","sidebarTitle":"地图 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-maps-collect-by-url"},{"title":"按 CID 发现 Google 地图地点","sidebarTitle":"地图 - 按 CID 发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-maps-discover-by-cid"},{"title":"按 place_id 发现 Google 地图地点","sidebarTitle":"地图 - 按 place_id 发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-maps-discover-by-place-id"},{"title":"按地理位置发现 Google 地图地点","sidebarTitle":"地图 - 按位置发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-maps-discover-by-location"},{"title":"按 URL 抓取 Google 地图评论","sidebarTitle":"地图评论 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-maps-reviews-collect-by-url"},{"title":"按 URL 抓取 Google 购物商品","sidebarTitle":"购物 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-shopping-collect-by-url"},{"title":"按关键词发现 Google 购物商品","sidebarTitle":"购物 - 按关键词发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-shopping-discover-by-keyword"},{"title":"按 URL 抓取 Google 购物搜索结果(美国)","sidebarTitle":"购物搜索(美国)- 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-shopping-products-search-us-collect-by-url"},{"title":"按 URL 抓取 Google SERP 100 条结果","sidebarTitle":"SERP 100 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-serp-100-collect-by-url"},{"title":"按 URL 抓取 Google AI 模式搜索","sidebarTitle":"AI 模式搜索 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-ai-mode-search-collect-by-url"},{"title":"按 URL 抓取 Google 航班","sidebarTitle":"航班 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-flights-collect-by-url"},{"title":"按输入筛选条件发现 Google 航班","sidebarTitle":"航班 - 按输入筛选条件发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-flights-discover-by-input-filters"},{"title":"按 URL 抓取 Google 酒店","sidebarTitle":"酒店 - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-hotel-collect-by-url"},{"title":"按筛选 URL 发现 Google 酒店","sidebarTitle":"酒店 - 按筛选 URL 发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-hotel-discover-by-filter-url"},{"title":"按搜索条件发现 Google 酒店","sidebarTitle":"酒店 - 按搜索条件发现","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/search-engines-apis/google-hotel-discover-by-search"}]}]},{"group":"AI 搜索 API","pages":[{"title":"按提示搜索 ChatGPT","description":"使用 Bright Data Scraper API 按提示采集 ChatGPT 回答及引用来源。发送 POST /datasets/v3/scrape 请求,dataset_id 为 gd_m7aof0k82r803d5bjm。","openapi":"api-reference/sdk-specs/chatgpt-search-by-prompt POST /datasets/v3/scrape","href":"/cn/api-reference/scrapers/ai-search-apis/chatgpt-search-by-prompt"}]},{"group":"网页内容 API","pages":[{"title":"使用 Fetch API 按 URL 抓取任意网页","sidebarTitle":"Fetch API - 按 URL 采集","api":"POST https://api.brightdata.com/datasets/v3/scrape","href":"/cn/api-reference/scrapers/web-content-apis/fetch-api-collect-by-url"}]}]},{"group":"Scraper Studio API","pages":[{"group":"发起采集","pages":[{"title":"异步触发爬虫进行批量采集","description":"使用 POST /dca/trigger 为 Scraper Studio 采集器启动异步批量采集。请求体是输入对象的 JSON 数组,并返回 collection_id 以便稍后获取结果。","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/trigger","href":"/cn/api-reference/scraper-studio-api/Trigger_a_scraper_for_batch_collection_method"},{"title":"触发爬虫进行实时收集(异步)","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/trigger_immediate","href":"/cn/api-reference/scraper-studio-api/initiate-a-realtime-job/async-realtime-job"},{"title":"同步触发爬虫进行实时数据采集","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/crawl","href":"/cn/api-reference/scraper-studio-api/initiate-a-realtime-job/sync-realtime-job"}]},{"group":"获取数据","pages":[{"title":"接收批量数据","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/dataset","href":"/cn/api-reference/scraper-studio-api/Receive_batch_data"},{"title":"从实时工作爬虫接收数据","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/get_result","href":"/cn/api-reference/scraper-studio-api/Receive_data_from_real_time_work_scraper"}]},{"group":"管理作业","pages":[{"title":"获取作业元数据","sidebarTitle":"作业元数据","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/log/{job_id}","href":"/cn/api-reference/scraper-studio-api/job-data"},{"title":"暂停 Scraper Studio 作业","sidebarTitle":"暂停作业","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/jobs/{job_id}/pause","href":"/cn/api-reference/scraper-studio-api/pause-job"},{"title":"恢复 Scraper Studio 作业","sidebarTitle":"恢复作业","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/jobs/{job_id}/resume","href":"/cn/api-reference/scraper-studio-api/resume-job"},{"title":"取消 Scraper Studio 作业","sidebarTitle":"取消作业","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/jobs/{job_id}/cancel","href":"/cn/api-reference/scraper-studio-api/cancel-job"},{"title":"重新运行 Scraper Studio 作业","sidebarTitle":"重新运行作业","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/jobs/{job_id}/rerun","href":"/cn/api-reference/scraper-studio-api/rerun-job"}]},{"group":"爬虫与作业管理","pages":[{"title":"列出 Scraper Studio 爬虫","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/collectors_list","href":"/cn/api-reference/scraper-studio-api/list-scrapers"},{"title":"列出 Scraper Studio 作业","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/collector/jobs","href":"/cn/api-reference/scraper-studio-api/list-jobs"},{"title":"删除 Scraper Studio 爬虫","sidebarTitle":"删除爬虫","openapi":"api-reference/cn-web-scraper-ide-rest-api DELETE /dca/collector/{scraper_id}","href":"/cn/api-reference/scraper-studio-api/delete-scraper"}]},{"group":"AI 工作流 API","pages":[{"title":"创建爬虫模板","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/collector","href":"/cn/api-reference/scraper-studio-api/ai-flow/create-scraper-template"},{"title":"触发 AI 工作流","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/collectors/{collector_id}/automate_template","href":"/cn/api-reference/scraper-studio-api/ai-flow/trigger-ai-flow"},{"title":"AI 任务进度","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/collectors/{collector_id}/automate_template/progress","href":"/cn/api-reference/scraper-studio-api/ai-flow/ai-job-progress"},{"title":"触发自我修复","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/collectors/{collector_id}/refactor_template","href":"/cn/api-reference/scraper-studio-api/ai-flow/trigger-self-healing"},{"title":"自愈工作进度","openapi":"api-reference/cn-web-scraper-ide-rest-api GET /dca/collectors/{collector_id}/refactor_template/progress","href":"/cn/api-reference/scraper-studio-api/ai-flow/self-healing-job-progress"},{"title":"恢复自我修复任务","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/collectors/{collector_id}/resume_automation_job","href":"/cn/api-reference/scraper-studio-api/ai-flow/resume-self-healing-job"},{"title":"取消自我修复任务","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/collectors/{collector_id}/cancel_automation","href":"/cn/api-reference/scraper-studio-api/ai-flow/cancel-self-healing-job"},{"title":"启用自动自我修复","openapi":"api-reference/cn-web-scraper-ide-rest-api POST /dca/auto_self_healing/create","href":"/cn/api-reference/scraper-studio-api/ai-flow/enable-auto-self-healing"}]}]},{"group":"数据集市场 API","pages":[{"title":"数据集列表","openapi":"cn-dca-api GET /datasets/list","href":"/cn/api-reference/marketplace-dataset-api/get-dataset-list"},{"title":"获取数据集元数据","openapi":"cn-dca-api GET /datasets/{dataset_id}/metadata","href":"/cn/api-reference/marketplace-dataset-api/get-dataset-metadata"},{"title":"筛选数据集","openapi":"cn-dca-api POST /datasets/filter","href":"/cn/api-reference/marketplace-dataset-api/filter-dataset"},{"title":"获取快照元数据","openapi":"cn-dca-api GET /datasets/snapshots/{id}","href":"/cn/api-reference/marketplace-dataset-api/get-snapshot-meta"},{"title":"获取快照部分","openapi":"cn-dca-api GET /datasets/snapshots/{id}/parts","href":"/cn/api-reference/marketplace-dataset-api/get-snapshot-parts"},{"title":"快照内容","openapi":"cn-dca-api GET /datasets/snapshots/{id}/download","href":"/cn/api-reference/marketplace-dataset-api/download-the-file-by-snapshot_id"},{"title":"交付快照","openapi":"cn-dca-api POST /datasets/snapshots/{id}/deliver","href":"/cn/api-reference/marketplace-dataset-api/deliver-snapshot"},{"group":"交付设置","pages":[{"title":"获取配送选项","openapi":"api-reference/cn-dca-api GET /datasets/delivery_settings/options","href":"/cn/api-reference/marketplace-dataset-api/get-delivery-options"},{"title":"获取目标类型架构","openapi":"api-reference/cn-dca-api GET /datasets/delivery_settings/{destination_type}/schema","href":"/cn/api-reference/marketplace-dataset-api/get-destination-type-schema"},{"title":"获取数据集视图","openapi":"api-reference/cn-dca-api GET /datasets/views","href":"/cn/api-reference/marketplace-dataset-api/get-dataset-views"},{"title":"获取视图交付设置","openapi":"api-reference/cn-dca-api GET /datasets/views/{view_id}/delivery_settings","href":"/cn/api-reference/marketplace-dataset-api/get-view-delivery-settings"},{"title":"更新视图交付设置","openapi":"api-reference/cn-dca-api PUT /datasets/views/{view_id}/delivery_settings","href":"/cn/api-reference/marketplace-dataset-api/update-view-delivery-settings"},{"title":"批量更新视图交付设置","openapi":"api-reference/cn-dca-api PUT /datasets/views/delivery_settings/bulk","href":"/cn/api-reference/marketplace-dataset-api/bulk-update-view-delivery-settings"}]}]},{"group":"Web Unlocker API","pages":[{"title":"解锁网站","openapi":"cn-unlocker-rest-api POST /request","href":"/cn/api-reference/rest-api/unlocker/unlock-website"},{"title":"请求","openapi":"async-api-reference POST /unblocker/req","tag":"Async","href":"/cn/api-reference/rest-api/unlocker/request"},{"title":"响应","openapi":"async-api-reference GET /unblocker/get_result","tag":"Async","href":"/cn/api-reference/rest-api/unlocker/get-results"},{"title":"Web Unlocker API 成功率","sidebarTitle":"成功率","openapi":"api-reference/cn-unlocker-rest-api GET /unblocker/success_rate/{domain}","href":"/cn/api-reference/rest-api/unlocker/get-success-rate"}]},{"group":"浏览器 API","pages":[{"title":"获取浏览器会话","openapi":"GET /browser_sessions/{session_id}","href":"/cn/api-reference/browser-api/get-session"},{"title":"列出浏览器会话","openapi":"GET /browser_sessions","href":"/cn/api-reference/browser-api/get-sessions"}]},{"group":"SERP API","pages":[{"title":"SERP API","openapi":"api-reference/cn-serp-rest-api POST /request","href":"/cn/api-reference/rest-api/serp/serp-api"},{"title":"请求","openapi":"async-api-reference POST /serp/req","tag":"Async","href":"/cn/api-reference/rest-api/serp/request"},{"title":"响应","openapi":"async-api-reference GET /serp/get_result","tag":"Async","href":"/cn/api-reference/rest-api/serp/get-results"},{"group":"Google 搜索","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-search/text-search"},{"title":"本地化","href":"/cn/api-reference/serp/google-search/localization"},{"title":"图像搜索","href":"/cn/api-reference/serp/google-search/images"},{"title":"购物搜索","href":"/cn/api-reference/serp/google-search/shopping"},{"title":"新闻搜索","href":"/cn/api-reference/serp/google-search/news"},{"title":"视频搜索","href":"/cn/api-reference/serp/google-search/videos"},{"title":"短视频","href":"/cn/api-reference/serp/google-search/short-videos"},{"title":"职位搜索","href":"/cn/api-reference/serp/google-search/jobs"},{"title":"酒店","href":"/cn/api-reference/serp/google-search/hotel"},{"title":"通过图像搜索","href":"/cn/api-reference/serp/google-search/search-by-image"},{"title":"分页","href":"/cn/api-reference/serp/google-search/pagination"},{"title":"地理位置","href":"/cn/api-reference/serp/google-search/geo-location"},{"title":"解析的JSON","href":"/cn/api-reference/serp/google-search/parsed-json"},{"title":"设备(移动/桌面)","href":"/cn/api-reference/serp/google-search/device-mobile"},{"title":"设备(平台)","href":"/cn/api-reference/serp/google-search/device-ios"},{"title":"浏览器类型","href":"/cn/api-reference/serp/google-search/browser"},{"title":"多个请求","href":"/cn/api-reference/serp/google-search/multiple-requests"},{"title":"人工智能概览","href":"/cn/api-reference/serp/google-search/ai-overview"},{"title":"异步请求","href":"/cn/api-reference/serp/google-search/async"}]},{"group":"Google 地图","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-maps/text-search"},{"title":"本地化","href":"/cn/api-reference/serp/google-maps/localization"},{"title":"坐标","href":"/cn/api-reference/serp/google-maps/coordinates"},{"title":"分页","href":"/cn/api-reference/serp/google-maps/pagination"},{"title":"地点详情","href":"/cn/api-reference/serp/google-maps/place-details"},{"title":"筛选","href":"/cn/api-reference/serp/google-maps/filtering"},{"title":"解析的JSON","href":"/cn/api-reference/serp/google-maps/parsed-json"},{"title":"异步请求","href":"/cn/api-reference/serp/google-maps/async"}]},{"group":"Google 趋势","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-trends/text-search"},{"title":"地理位置","href":"/cn/api-reference/serp/google-trends/geo"},{"title":"本地化","href":"/cn/api-reference/serp/google-trends/localization"},{"title":"时间范围","href":"/cn/api-reference/serp/google-trends/time-range"},{"title":"分类","href":"/cn/api-reference/serp/google-trends/category"},{"title":"搜索类型","href":"/cn/api-reference/serp/google-trends/search-type"},{"title":"异步请求","href":"/cn/api-reference/serp/google-trends/async"}]},{"group":"Google 评论","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-reviews/text-search"},{"title":"本地化","href":"/cn/api-reference/serp/google-reviews/localization"},{"title":"排序(最新)","href":"/cn/api-reference/serp/google-reviews/sort-newest"},{"title":"排序(最高)","href":"/cn/api-reference/serp/google-reviews/sort-highest"},{"title":"排序(最低)","href":"/cn/api-reference/serp/google-reviews/sort-lowest"},{"title":"按关键词筛选","href":"/cn/api-reference/serp/google-reviews/filter-keyword"},{"title":"分页","href":"/cn/api-reference/serp/google-reviews/pagination"},{"title":"异步请求","href":"/cn/api-reference/serp/google-reviews/async"}]},{"group":"Google Lens","pages":[{"title":"图片URL","href":"/cn/api-reference/serp/google-lens/image-url"},{"title":"本地化","href":"/cn/api-reference/serp/google-lens/localization"},{"title":"地理位置","href":"/cn/api-reference/serp/google-lens/geo-location"},{"title":"解析JSON","href":"/cn/api-reference/serp/google-lens/parsed-json"},{"title":"精确匹配","href":"/cn/api-reference/serp/google-lens/exact-matches"},{"title":"视觉匹配","href":"/cn/api-reference/serp/google-lens/visual-matches"},{"title":"产品","href":"/cn/api-reference/serp/google-lens/products"},{"title":"家庭作业","href":"/cn/api-reference/serp/google-lens/homework"},{"title":"上传文件","href":"/cn/api-reference/serp/google-lens/upload-file"},{"title":"异步请求","href":"/cn/api-reference/serp/google-lens/async"}]},{"group":"Google 酒店","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-hotels/text-search"},{"title":"本地化","href":"/cn/api-reference/serp/google-hotels/localization"},{"title":"日期","href":"/cn/api-reference/serp/google-hotels/dates"},{"title":"占有率","href":"/cn/api-reference/serp/google-hotels/occupancy"},{"title":"占用率(儿童)","href":"/cn/api-reference/serp/google-hotels/occupancy-children"},{"title":"免费取消","href":"/cn/api-reference/serp/google-hotels/free-cancellation"},{"title":"住宿类型","href":"/cn/api-reference/serp/google-hotels/accommodation-type"},{"title":"货币","href":"/cn/api-reference/serp/google-hotels/currency"},{"title":"设备类型","href":"/cn/api-reference/serp/google-hotels/device-type"},{"title":"解析的JSON","href":"/cn/api-reference/serp/google-hotels/parsed-json"},{"title":"异步请求","href":"/cn/api-reference/serp/google-hotels/async"}]},{"group":"Google 航班","pages":[{"title":"文本搜索","href":"/cn/api-reference/serp/google-flights/text-search"},{"title":"本地化","href":"/cn/api-reference/serp/google-flights/localization"},{"title":"复杂搜索","href":"/cn/api-reference/serp/google-flights/complex-search"},{"title":"货币","href":"/cn/api-reference/serp/google-flights/currency"},{"title":"异步请求","href":"/cn/api-reference/serp/google-flights/async"}]}]}]},{"group":"网页搜索","pages":[{"group":"Business Search API","pages":[{"title":"Business Search API:搜索公司","sidebarTitle":"搜索公司","openapi":"api-reference/business-search/business-search-api POST /search/company","href":"/cn/api-reference/business-search/search-company"},{"title":"Business Search API:搜索人物","sidebarTitle":"搜索人物","openapi":"api-reference/business-search/business-search-api POST /search/people","href":"/cn/api-reference/business-search/search-people"}]}]},{"group":"AI 训练数据","pages":[{"group":"网络归档 API","pages":[{"title":"运行搜索","openapi":"api-reference/web-archive-api POST /webarchive/search","href":"/cn/api-reference/archive-api/run-a-search"},{"title":"获取搜索状态","openapi":"api-reference/web-archive-api GET /webarchive/search/{search_id}","href":"/cn/api-reference/archive-api/get-search-status"},{"title":"将快照传送到 S3、Azure Blob 或 GCP","sidebarTitle":"传送到云存储","openapi":"api-reference/web-archive-api POST /webarchive/dump","href":"/cn/api-reference/archive-api/deliver-to-cloud"},{"title":"获取数据快照的状态","sidebarTitle":"获取快照状态","openapi":"api-reference/web-archive-api GET /webarchive/dump/{dump_id}","href":"/cn/api-reference/archive-api/get-snapshot-status"},{"group":"所有状态","pages":[{"title":"获取所有搜索状态","sidebarTitle":"所有搜索状态","openapi":"api-reference/web-archive-api GET /webarchive/searches","href":"/cn/api-reference/archive-api/get-all-search-statuses"},{"title":"获取所有数据快照的状态","sidebarTitle":"所有快照状态","openapi":"api-reference/web-archive-api GET /webarchive/dumps","href":"/cn/api-reference/archive-api/get-all-snapshots-statuses"}]}]},{"group":"媒体数据 API","pages":[{"title":"媒体数据 API","openapi":"api-reference/media-data-api/media-data-api POST /dca/trigger_hp","hideApiMarker":true,"href":"/cn/api-reference/media-data-api/media-data-api"},{"title":"获取媒体数据 API 作业错误","sidebarTitle":"作业错误","openapi":"api-reference/media-data-api/media-data-api GET /dca/jobs/{job_id}/hp_errors","href":"/cn/api-reference/media-data-api/get-errors-for-job"}]}]},{"group":"代理","pages":[{"group":"代理网络","pages":[{"title":"地理位置定向","href":"/cn/api-reference/proxy/geolocation-targeting"},{"title":"请求和响应 C-Tag","href":"/cn/api-reference/proxy/c-tag"},{"title":"代理和 IP 轮换控制","href":"/cn/api-reference/proxy/rotate_ips"},{"title":"禁用节点轮换","sidebarTitle":"禁用节点轮换","href":"/cn/api-reference/proxy/keep_same_peer_in_session"},{"title":"在特定国家/地区选择超级代理","href":"/cn/api-reference/proxy/select_super_proxy_in_specific_country"},{"title":"配置 DNS 解析","href":"/cn/api-reference/proxy/configuring_dns_resolution"},{"title":"请求错误处理","href":"/cn/api-reference/proxy/request_error_handling"},{"title":"直接从超级代理发送请求","href":"/cn/api-reference/proxy/send_requests_directly_from_super_proxy"},{"title":"操作系统定位","href":"/cn/api-reference/proxy/os_targeting"},{"title":"选择特定的 gIP","href":"/cn/api-reference/proxy/select_a_specific_gip"},{"title":"选择特定的 IP","href":"/cn/api-reference/proxy/select_a_specific_ip"}]},{"group":"代理管理器 API","pages":[{"group":"安装与版本","pages":[{"title":"获取最新代理管理器 (PM) 版本","sidebarTitle":"获取最新的代理管理器版本","href":"/cn/api-reference/proxy-manager/get_the_latest_proxy_manager_versions"},{"title":"获取代理管理器版本","href":"/cn/api-reference/proxy-manager/get_proxy_manager_version"},{"title":"升级代理管理器","href":"/cn/api-reference/proxy-manager/upgrade_proxy_manager"},{"title":"获取当前 NodeJS 版本","href":"/cn/api-reference/proxy-manager/get_currently_running_nodejs_version"},{"title":"重启代理管理器","href":"/cn/api-reference/proxy-manager/restart_proxy_manager"},{"title":"关闭代理管理器","href":"/cn/api-reference/proxy-manager/shutdown_proxy_manager"}]},{"group":"用户与访问","pages":[{"title":"添加用户","href":"/cn/api-reference/proxy-manager/add_a_user"},{"title":"获取所有用户","href":"/cn/api-reference/proxy-manager/get_all_users"},{"title":"建立 IP 白名单","href":"/cn/api-reference/proxy-manager/allowlist-ips"},{"title":"建立访问用户界面的 IP 白名单","href":"/cn/api-reference/proxy-manager/ui-allowlist-ips"},{"title":"生成 API 密钥","href":"/cn/api-reference/proxy-manager/generate_token_for_token_based_authentication"}]},{"group":"设置与配置","pages":[{"title":"获取常规设置","href":"/cn/api-reference/proxy-manager/get_general_settings"},{"title":"更新常规设置","href":"/cn/api-reference/proxy-manager/update_general_settings"},{"title":"获取代理的显式配置","href":"/cn/api-reference/proxy-manager/get_explicit_configuration_of_all_or_specified_proxies"},{"title":"获取运行中代理的有效配置","sidebarTitle":"获取有效的配置","href":"/cn/api-reference/proxy-manager/get_effective_configuration_for_all_running_proxies"},{"title":"获取已启用区域的配置","href":"/cn/api-reference/proxy-manager/get_enabled_zones_configuration"}]},{"group":"代理端口","pages":[{"title":"创建新的代理端口","href":"/cn/api-reference/proxy-manager/create_a_new_proxy_port"},{"title":"删除代理端口(多个)","href":"/cn/api-reference/proxy-manager/delete_proxy_ports"},{"title":"删除代理端口","href":"/cn/api-reference/proxy-manager/delete_a_proxy_port"},{"title":"更新代理端口","href":"/cn/api-reference/proxy-manager/update_a_proxy_port"},{"title":"获取代理端口状态","href":"/cn/api-reference/proxy-manager/get_proxy_port_status"},{"title":"刷新代理管理器端口会话","sidebarTitle":"刷新 PM 端口会话","href":"/cn/api-reference/proxy-manager/refresh_proxy_manager_port_sessions"},{"title":"启用 SSL 分析(所有端口)","href":"/cn/api-reference/proxy-manager/enable_ssl_analyzing_on_all_proxy_ports"}]},{"group":"IP 与会话","pages":[{"title":"获取区域中分配的gIP","sidebarTitle":"获取分配的 gIP","href":"/cn/api-reference/proxy-manager/get_allocated_gips_in_zone"},{"title":"获取区域中分配的IP","href":"/cn/api-reference/proxy-manager/get_allocated_ips_in_zone"},{"title":"刷新区域中的 IP/gIP","sidebarTitle":"刷新 IP/gIP","href":"/cn/api-reference/proxy-manager/refresh_ips_or_gips_in_zone"}]},{"group":"IP 封禁","pages":[{"title":"禁用IP","href":"/cn/api-reference/proxy-manager/ban_an_ip_single_"},{"title":"禁止多个IP(数组)","href":"/cn/api-reference/proxy-manager/ban_ips_array_"},{"title":"禁止IP(所有端口)","href":"/cn/api-reference/proxy-manager/ban_an_ip_for_all_ports"},{"title":"解除IP封禁","href":"/cn/api-reference/proxy-manager/unban_an_ip"},{"title":"解禁 IP(多个)","href":"/cn/api-reference/proxy-manager/unban_ips"},{"title":"获取被封禁的IP","href":"/cn/api-reference/proxy-manager/get_banned_ips"}]},{"group":"日志与统计","pages":[{"title":"获取最近状态","href":"/cn/api-reference/proxy-manager/get_recent_stats"},{"title":"获取 HAR 日志","href":"/cn/api-reference/proxy-manager/get_har_logs"},{"title":"从日志文件获取末尾","href":"/cn/api-reference/proxy-manager/get_tail_from_the_log_file"}]}]}]},{"group":"管理 API","pages":[{"group":"账号管理 API","pages":[{"group":"账户与状态","pages":[{"title":"更改账户状态","openapi":"cn-openapi PUT /status","href":"/cn/api-reference/account-management-api/Change_account_status"},{"title":"账户状态","openapi":"cn-openapi GET /status","href":"/cn/api-reference/account-management-api/Get_account_status"},{"title":"获取当前服务状态","openapi":"cn-openapi GET /network_status/{NETWORK_TYPE}","href":"/cn/api-reference/account-management-api/Get_current_service_status"},{"title":"费用明细导出","sidebarTitle":"费用明细导出","openapi":"cn-openapi POST /costs/export/json","href":"/cn/api-reference/account-management-api/Export_cost_breakdown"},{"title":"获取免费套餐积分","sidebarTitle":"免费套餐积分","openapi":"cn-openapi GET /trials/free_tier","href":"/cn/api-reference/account-management-api/Get_free_tier_credits"},{"title":"获取定价方案","sidebarTitle":"定价方案","openapi":"cn-openapi GET /pricing_plans","href":"/cn/api-reference/account-management-api/Get_pricing_plans"},{"title":"总余额","openapi":"cn-openapi GET /customer/balance","href":"/cn/api-reference/account-management-api/Get_total_balance_through_API"},{"title":"获取支付方式","sidebarTitle":"支付方式","openapi":"cn-openapi GET /billing/pmethods","href":"/cn/api-reference/account-management-api/Get_payment_methods"},{"title":"获取自动充值设置","sidebarTitle":"自动充值设置","openapi":"cn-openapi GET /billing/autorecharge","href":"/cn/api-reference/account-management-api/Get_auto_recharge_settings"},{"title":"设置常规自动充值","sidebarTitle":"设置常规自动充值","openapi":"cn-openapi PUT /billing/autorecharge/regular","href":"/cn/api-reference/account-management-api/Set_regular_auto_recharge"},{"title":"设置数据集自动充值","sidebarTitle":"设置数据集自动充值","openapi":"cn-openapi PUT /billing/autorecharge/dataset","href":"/cn/api-reference/account-management-api/Set_dataset_auto_recharge"}]},{"group":"区域","pages":[{"title":"添加区域","openapi":"cn-openapi POST /zone","href":"/cn/api-reference/account-management-api/Add_a_Zone"},{"title":"活跃区域","openapi":"cn-openapi GET /zone/get_active_zones","href":"/cn/api-reference/account-management-api/Get_active_Zones"},{"title":"所有区域","openapi":"api-reference/cn-openapi GET /zone/get_all_zones","href":"/cn/api-reference/account-management-api/get-all-zones"},{"title":"区域信息","openapi":"cn-openapi GET /zone","href":"/cn/api-reference/account-management-api/Get_Zone_info"},{"title":"区域权限","openapi":"cn-openapi GET /zone/permissions","href":"/cn/api-reference/account-management-api/Get_Zone_permissions"},{"title":"区域状态","openapi":"cn-openapi GET /zone/status","href":"/cn/api-reference/account-management-api/Get_Zone_status"},{"title":"删除区域","openapi":"cn-openapi DELETE /zone","href":"/cn/api-reference/account-management-api/Remove_Zone"},{"title":"切换自动故障转移","openapi":"cn-openapi POST /zone/switch_100uptime","href":"/cn/api-reference/account-management-api/Switch_100_uptime_ON_OFF_in_a_Static_zone"},{"title":"启用/禁用区域","openapi":"cn-openapi POST /zone/change_disable","href":"/cn/api-reference/account-management-api/Turn_on_off_Zone"}]},{"group":"区域密码","pages":[{"title":"区域密码","openapi":"cn-openapi GET /zone/passwords","href":"/cn/api-reference/account-management-api/Get_Zone_passwords"},{"title":"添加区域密码","openapi":"api-reference/cn-openapi POST /zone/add_password","href":"/cn/api-reference/account-management-api/add-zone-password"},{"title":"删除区域密码","openapi":"api-reference/cn-openapi POST /zone/remove_password","href":"/cn/api-reference/account-management-api/remove-zone-password"}]},{"group":"白名单与黑名单","pages":[{"title":"允许/拒绝域名","sidebarTitle":"允许/拒绝域","openapi":"cn-openapi POST /zone/domain_perm","href":"/cn/api-reference/account-management-api/allowlist-or-denylist-domains"},{"title":"拒绝 IP","openapi":"cn-openapi POST /zone/blacklist","href":"/cn/api-reference/account-management-api/denylist-ip"},{"title":"允许列表 IP","openapi":"cn-openapi POST /zone/whitelist","href":"/cn/api-reference/account-management-api/allowlist-ip"},{"title":"区域拒绝列表 IP","openapi":"cn-openapi GET /zone/blacklist","href":"/cn/api-reference/account-management-api/zone-ip-denylist"},{"title":"区域允许列表 IP","openapi":"cn-openapi GET /zone/whitelist","href":"/cn/api-reference/account-management-api/zone-ip-allowlist"},{"title":"从区域允许列表/拒绝列表中移除域名","openapi":"cn-openapi DELETE /zone/domain_perm","href":"/cn/api-reference/account-management-api/remove-domain-from-zone-allowlist-or-denylist"},{"title":"从区域拒绝列表中移除 IP","openapi":"cn-openapi DELETE /zone/blacklist","href":"/cn/api-reference/account-management-api/remove-ip-from-zone-denylist"},{"title":"从区域允许列表中移除 IP","openapi":"cn-openapi DELETE /zone/whitelist","href":"/cn/api-reference/account-management-api/remove-ip-from-zone-allowlist"}]},{"group":"静态 IP","pages":[{"title":"添加静态 IP","openapi":"cn-openapi POST /zone/ips","href":"/cn/api-reference/account-management-api/Add_Static_Datacenter_ISP_IPs"},{"title":"在区域之间迁移静态 IP","sidebarTitle":"迁移静态 IP","openapi":"cn-openapi POST /zone/ips/migrate","href":"/cn/api-reference/account-management-api/Migrate_Static_Datacenter_ISP_IPs_between_zones"},{"title":"刷新静态 IP(数据中心 / ISP)","openapi":"cn-openapi POST /zone/ips/refresh","href":"/cn/api-reference/account-management-api/Refresh_Static_Datacenter_ISP_IPs"},{"title":"可用数据中心和 ISP IP 数量","sidebarTitle":"可用数据中心 \u0026 ISP IP 数量","openapi":"cn-openapi GET /zone/count_available_ips","href":"/cn/api-reference/account-management-api/Get_amount_of_available_Datacenter_and_ISP_IPs"},{"title":"每个区域可用的数据中心 \u0026 ISP IP","openapi":"cn-openapi GET /zone/route_ips","href":"/cn/api-reference/account-management-api/Get_the_available_Data_center_ISP_IPs_per_Zone"},{"title":"静态区域实时状态","openapi":"cn-openapi GET /zone/ips/unavailable","href":"/cn/api-reference/account-management-api/Get_live_status_of_Static_Datacenter_ISP_Zone_and_IPs_with_connectivity_problem"},{"title":"区域统计","openapi":"cn-openapi GET /zone/ips","href":"/cn/api-reference/account-management-api/Get_Zone_Static_Datacenter_ISP_IPs"},{"title":"获取待更换代理","openapi":"cn-openapi GET /zone/proxies_pending_replacement","href":"/cn/api-reference/account-management-api/get-proxies-pending-replacement"},{"title":"移除静态 IP(数据中心/ISP)","openapi":"cn-openapi DELETE /zone/ips","href":"/cn/api-reference/account-management-api/Remove_Static_Datacenter_ISP_IPs"}]},{"group":"住宅 IP","pages":[{"title":"刷新专用住宅 IP","openapi":"cn-openapi POST /zone/ips/refresh","href":"/cn/api-reference/account-management-api/Refresh_dedicated_residential_IPs"},{"title":"获取每个区域的可用专用 IP","sidebarTitle":"可用 IP/区域","openapi":"cn-openapi GET /zone/route_vips","href":"/cn/api-reference/account-management-api/Get_all_available_dedicated_residential_IPs_per_Zone"},{"title":"移除专用住宅 IP","openapi":"cn-openapi DELETE /zone/vips","href":"/cn/api-reference/account-management-api/Remove_dedicated_residential_IPs"}]},{"group":"地理数据","pages":[{"title":"获取可用国家","sidebarTitle":"获取国家","openapi":"cn-openapi GET /countrieslist","href":"/cn/api-reference/account-management-api/Get_Available_Countries"},{"title":"获取国家城市","openapi":"cn-openapi GET /cities","href":"/cn/api-reference/account-management-api/Get_country_cities"},{"title":"列出所有可用国家的城市(静态网络)","openapi":"cn-openapi GET /zone/static/cities","href":"/cn/api-reference/account-management-api/Get_list_of_available_cities_of_static_network_per_country"}]},{"group":"统计与用量","pages":[{"title":"最近尝试使用您区域的 IP","openapi":"cn-openapi GET /zone/recent_ips","href":"/cn/api-reference/account-management-api/Get_recent_IPs_attempting_to_use_your_Zone"},{"title":"区域带宽统计","openapi":"cn-openapi GET /zone/bw","href":"/cn/api-reference/account-management-api/Get_the_bandwidth_stats_for_a_Zone"},{"title":"所有区域的带宽统计","openapi":"cn-openapi GET /customer/bw","href":"/cn/api-reference/account-management-api/Get_the_bandwidth_stats_for_all_your_Zones"},{"title":"区域总费用与带宽","openapi":"cn-openapi GET /zone/cost","href":"/cn/api-reference/account-management-api/Get_the_total_cost_and_bandwidth_stats_for_a_Zone"},{"title":"域名消耗","openapi":"api-reference/proxy-manager GET /domains/{metric}","href":"/cn/api-reference/account-management-api/domain-consumption"}]}]}]}]},{"tab":"集成","pages":[{"title":"集成","href":"/cn/integrations/introduction"}]},{"tab":"账户管理","pages":[{"title":"账户管理","href":"/cn/general/account/overview"}]},{"tab":"遗留内容","hidden":true,"pages":[{"title":"遗留内容","href":"/cn/left-over/datasets-introduction"}]}]}]},"basePath":"","title":"使用 Fetch API 按 URL 抓取任意网页 - Bright Data Docs","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B6WFFOBL.js","utils-BN5um1KA.js","cloneDeep-C3md22mN.js","_Uint8Array-DLlL8L26.js","isObject-FP1Yky1u.js","utils-BSmbkXJR.js","addUniqueKeysToSchema-2tqcVnUE.js","snippetPresets-CtWfvr2J.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DkKHBy30.js","isEqual-O3q7y6pq.js","usePlaygroundInputsStore-Brc5H9UJ.js","shallow-C4L4xvbs.js","getApiPlaygroundDisplay-2bxyq_aI.js","CodeSnippet-BJu8ddd5.js","CodeSnippets-dazWmoqB.js","Page-CnLhKuUV.js","getPastedJson-Chy3Qa1S.js","icon-CyO7h3jh.js","MethodPill-Dle0_91v.js","DuplicateIcon-CVvWAf4a.js","createIcon-Di07A27B.js","DynamicMarkdown-C4w9kavL.js","SectionHeading-XiBebVYC.js","axios-vUo_bRtp.js"]}