SeerMarTech 文档控制台

快速开始

1. 注册账户

访问 控制台  注册并验证邮箱,自动获得 ¥7 试用额度。

2. 创建 API Key

在控制台的 API Key 页面创建 Key,格式如 smt_live_xxxxxxxx

3. 发起请求

POST/v3/serp/google/organic/live/advanced

curl

curl -X POST "https://api.seermartech.cn/v3/serp/google/organic/live/advanced" \ -H "Authorization: Bearer smt_live_你的Key" \ -H "Content-Type: application/json" \ -d '[{ "keyword": "seo tools", "location_code": 2156, "language_code": "zh", "device": "desktop" }]'

Python

import requests resp = requests.post( "https://api.seermartech.cn/v3/serp/google/organic/live/advanced", headers={"Authorization": "Bearer smt_live_你的Key"}, json=[{ "keyword": "seo tools", "location_code": 2156, "language_code": "zh", "device": "desktop", }], timeout=60, ) print("charge_cny:", resp.headers.get("X-SeerMarTech-Charge-CNY")) print(resp.json()["tasks"][0]["result"][0]["items"][:3])

TypeScript

const resp = await fetch( "https://api.seermartech.cn/v3/serp/google/organic/live/advanced", { method: "POST", headers: { Authorization: "Bearer smt_live_你的Key", "Content-Type": "application/json", }, body: JSON.stringify([{ keyword: "seo tools", location_code: 2156, language_code: "zh", device: "desktop", }]), } ); console.log("charge_cny:", resp.headers.get("X-SeerMarTech-Charge-CNY")); const data = await resp.json(); console.log(data.tasks[0].result[0].items.slice(0, 3));

本地开发将 URL 替换为 http://localhost:18080/v3/...

4. 查看扣费

响应头 X-SeerMarTech-Charge-CNY 为本次人民币扣费。控制台 用量 页可查看历史记录。

5. 下一步