Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Bright Data 的 Google SERP API 快速开始:登录、创建 SERP zone、获取 API key,并开始收集 Google 搜索数据。
curl -X POST https://api.brightdata.com/request \ --header "Content-Type: application/json" \ --header "Authorization: Bearer API_KEY" \ --data '{ "zone": "serp_api1", "url": "https://www.google.com/search?q=pizza", "format": "raw" }'
(async () => { const response = await fetch('https://api.brightdata.com/request', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer API_KEY' }, body: JSON.stringify({ zone: 'serp_api1', url: 'https://www.google.com/search?q=pizza', format: 'raw' }) }); const data = await response.text(); console.log(data); })();
import requests # API 配置 headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer API_KEY', } payload = { 'zone': 'serp_api1', 'url': 'https://www.google.com/search?q=pizza', 'format': 'raw' } # 发送请求 response = requests.post( 'https://api.brightdata.com/request', json=payload, headers=headers ) print(response.text)
此页面对您有帮助吗?