Read Google Maps business posts
litescrape.google.maps.postsReturns the posts a business published on Google Maps
- 价格
- $0.00015/success按供应商原价
- 成功率
- 99.7%近 30 天 · 1,859 次
- 延迟 p50
- 1.6 秒p95 5.6 秒
- 最后验证
- 2026年9月29日实测可用
GEThttps://toolswitch.dev/v1/tools/litescrape.google.maps.posts?data_id=0x8644b741914e0c8d%3A0xcb6fba98ff70f342预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
gl | 字符串 | 可选 | Two-letter country code used to localize results. | us |
hl | 字符串 | 可选 | Language code such as en, en-GB, or de. | en |
data_id | 字符串 | 必填 | Required hexadecimal Maps feature ID. Follow posts_link from a Google Maps place response or copy its data_id. | 0x89c258e28c304997:0xfcafe4e7ce35ee8c |
timeout | 数字 | 可选 | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
google_domain | 字符串 | 可选 | Google domain used for the request. | google.com |
next_page_token | 字符串 | 可选 | Opaque continuation token returned by a previous Maps Posts response. | |
- 查询参数
gl字符串可选Two-letter country code used to localize results.
示例:
ushl字符串可选Language code such as en, en-GB, or de.
示例:
endata_id字符串必填Required hexadecimal Maps feature ID. Follow posts_link from a Google Maps place response or copy its data_id.
示例:
0x89c258e28c304997:0xfcafe4e7ce35ee8ctimeout数字可选Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
google_domain字符串可选Google domain used for the request.
示例:
google.comnext_page_token字符串可选Opaque continuation token returned by a previous Maps Posts response.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.google.maps.posts?data_id=0x8644b741914e0c8d%3A0xcb6fba98ff70f342' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.google.maps.posts?data_id=0x8644b741914e0c8d%3A0xcb6fba98ff70f342",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.google.maps.posts?data_id=0x8644b741914e0c8d%3A0xcb6fba98ff70f342", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.00015/success 计费,已含服务费。