DataForSEO SERP Yahoo Locations By Country

1积分/次
ae_dataforseo_serp_yahoo_locations_by_country

按国家代码查询 DataForSEO 支持的 Yahoo 搜索地区及地区代码。

地图
1积分/次

价格说明

1积分/次
条件费用
每次调用1积分/次

工具参数

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

参数类型必填说明默认值
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>—

调用示例

复制请求代码,查看对应的返回示例。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_dataforseo_serp_yahoo_locations_by_country' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "country": "sg"
  }
}'
返回示例response.json
JSON部分内容
{
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "data": {
        "api": "serp",
        "function": "locations",
        "se": "yahoo"
      },
      "id": "11150735-2802-0096-0000-07d00f774c77",
      "path": [
        "v3"
      ],
      "result": [
        {
          "country_iso_code": "SG",
          "location_code": 2702,
          "location_name": "Singapore",
          "location_type": "Country"
        }
      ],
      "result_count": 60,
      "status_code": 20000
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "0.1283 sec."
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。