注册账号即送 500 免费积分,不用绑卡。在控制台打开 API Keys 创建一个 Key。请妥善保管:只放在 X-API-Key 请求头里,不要放进网址或网页前端代码。
API keys →快速开始
大约两分钟,通过接口完成第一次 Google 搜索。只需要一个 API Key 和终端,不用安装任何东西。
获取 API Key
发送一次搜索
搜索接口用 POST 发送 JSON 请求体。下面这个请求以美国用户的身份在 Google 搜索 “coffee shops”:
BASH
curl -X POST 'https://api.serpbase.dev/google/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"device":"mobile","gl":"us","hl":"en","q":"coffee shops"}'想直接点按钮试?同样的请求可以在 Playground 里运行,会自动填入你的 Key。 Playground →
接口地址: https://api.serpbase.dev
读取结果
你会拿到 JSON 格式的结果页,Google 页面上的每个板块对应一个字段。下面是一次真实返回(已缩短):
返回 · 真实返回,已缩短
{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "google_web_search",
"query": "coffee shops",
"local_results": [
{
"address": "Denver, CO",
"category": "Coffee shop",
"hours": "Open",
"position": 1,
"rank": 1,
"rating": "4.9",
"reviews_count": "455",
"title": "Coffeegraph"
},
{
"address": "Sioux Falls, SD",
"category": "Coffee shop",
"hours": "Open",
"position": 1,
"rank": 2,
"rating": "4.9",
"reviews_count": "295",
"title": "The Breaks Coffee Roasting Co."
}
],
"organic": [
{
"date": "Sep 17, 2026",
"display_link": "www.discovertheburgh.com",
"display_url": "www.discovertheburgh.com",
"link": "https://www.discovertheburgh.com/pittsburgh-coffee-shops/",
"position": 3,
"published_at": "Sep 17, 2026",
"rank": 1,
"snippet": "🏨 Book Avenue in Garfield. Redhawk Coffee. Ghost Coffee Collab at Trace Brewing. Kaibur Coffee Kaibu…",
"source_url": "https://www.google.com/goto?url=CAESdAHrOzAVQPT8-1-RxOq_G62WuAgUAmaFDk4SD6YsadPoLMH5lbvuR0WPu8BR2EKN…",
"title": "48 Pittsburgh Coffee Shops to Grab a Delicious Brew",
"url": "https://www.discovertheburgh.com/pittsburgh-coffee-shops/"
}
],
"page": 1,
"people_also_ask": [
{
"position": 2,
"question": "What are the top 10 coffee chains?"
},
{
"position": 2,
"question": "What are the main coffee shop chains?"
}
],
"people_also_search_for": [
"Best coffee shops",
"Coffee shops Orlando"
],
"related_searches": [
"Best coffee shops in Pittsburgh to study",
"Coffee Shops near Monroeville PA"
],
"search_type": "search"
}- status: 0
- 表示成功。其他值都会附带错误信息,失败的搜索不扣费。
- credits_charged
- 这次请求花了多少积分。一次 Google 搜索是 1 积分。
- request_id
- 联系客服时提供它,我们几秒钟就能找到这次请求。
接下来
接口
通用搜索
搜索POST图片搜索POST新闻搜索POST视频搜索POSTGoogle Search AutocompletePOSTGoogle Shopping SearchPOSTGoogle Jobs SearchPOSTGoogle Scholar SearchPOSTGoogle Books SearchPOSTGoogle Finance SearchPOSTGoogle Patent DetailsPOSTGoogle Play SearchPOSTGoogle Play App DetailsPOSTGoogle TrendsPOSTGoogle Trends AutocompletePOSTGoogle Trends Trending NowPOSTGoogle 链接还原POSTGoogle AI ModePOSTBing Web SearchPOSTDuckDuckGo SearchPOST
社交媒体
电商零售
Ajio Product DetailsPOSTAmazon Product DetailsPOSTAmazon Product ReviewsPOSTAmazon Product SearchPOSTAmazon Search AutocompletePOSTApple Product DetailsPOSTeBay Product DetailsPOSTeBay Product SearchPOSTFlipkart Product DetailsPOSTMyntra Product DetailsPOSTMyntra SearchPOSTWalmart Product DetailsPOSTWalmart Product SearchPOSTWalmart Search AutocompletePOST