SeerMarTech 文档控制台

位置代码参考

SERP 与关键词 API 的 location_code 指定目标市场地理位置。以下为常用代码速查;完整列表可通过 API 动态获取。

常用 location_code

中国

location_code地区
2156中国
2157北京
2158上海
2159广州
2160深圳
2161杭州
2162成都

主要海外市场

location_code地区
2840美国
2826英国
2124加拿大
2036澳大利亚
2276德国
2250法国
2392日本
2410韩国
2702新加坡
2356印度

以上为常用值,实际上游支持全球数千个 location。若不确定,请调用下方 API 查询。

获取完整位置列表

GET/v3/serp/google/locations
curl -X GET "https://api.seermartech.cn/v3/serp/google/locations" \ -H "Authorization: Bearer smt_live_YOUR_KEY"

Python

import requests resp = requests.get( "https://api.seermartech.cn/v3/serp/google/locations", headers={"Authorization": "Bearer smt_live_YOUR_KEY"}, timeout=30, ) locations = resp.json()["tasks"][0]["result"] china = [l for l in locations if "China" in l.get("location_name", "")] print(china[:5])

TypeScript

const resp = await fetch("https://api.seermartech.cn/v3/serp/google/locations", { headers: { Authorization: "Bearer smt_live_YOUR_KEY" }, }); const data = await resp.json(); const locations = data.tasks[0].result; console.log(locations.filter((l: { location_name: string }) => l.location_name.includes("China")));

语言代码

多数端点配合 language_code 使用,常见值:

language_code语言
zh中文
en英语
ja日语
ko韩语
de德语
fr法语

完整语言列表:

GET/v3/serp/google/languages
curl -X GET "https://api.seermartech.cn/v3/serp/google/languages" \ -H "Authorization: Bearer smt_live_YOUR_KEY"

使用建议

相关文档