DataForSEO SERP Locations

1积分/次
ae_dataforseo_serp_locations

查找用于 DataForSEO SERP 搜索的有效地点代码,支持按国家、地区或城市筛选。

地图
1积分/次

价格说明

1积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_dataforseo_serp_locations' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "country": "xxx",
    "search_engine": "google"
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
countrystring是<em>country ISO code</em><br>optional field<br>specify the ISO code if you want to filter the list of locations by country<br>example:<br><code>us</code>—
search_enginestring是Search engine: google, bing, or yahoo.—