Inspect a URL's Google index status
google-search-console.url_inspectionCheck whether a page of your site is indexed by Google, and why it is or isn't
- 价格
- free按目录价
- 成功率
- 99.8%近 30 天 · 44,277 次
- 延迟 p50
- 6.4 秒p95 6.7 秒
- 最后验证
- 2026年7月28日实测可用
POSThttps://toolswitch.dev/v1/tools/google-search-console.url_inspectionBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
note the /v1/ prefix — NOT webmasters/v3/ (request shape previously live-verified via the registry entry's examples). Returns indexStatusResult (verdict, coverageState, robotsTxtState, canonical URLs) plus mobileUsabilityResult and richResultsResult. Hard-quotaed at 2,000 inspections per site per day
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
siteUrl | 字符串 | 必填 | the Search Console property the URL sits under | sc-domain:example.com |
languageCode | 字符串 | 可选 | BCP-47; controls the language of the human-readable verdict strings | en-US |
inspectionUrl | 字符串 | 必填 | the full page URL; must belong to siteUrl | https://example.com/page |
- 请求体(JSON)
siteUrl字符串必填the Search Console property the URL sits under
示例:
sc-domain:example.comlanguageCode字符串可选BCP-47; controls the language of the human-readable verdict strings
示例:
en-USinspectionUrl字符串必填the full page URL; must belong to siteUrl
示例:
https://example.com/page
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/google-search-console.url_inspection' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"siteUrl":"sc-domain:example.com","inspectionUrl":"https://example.com/"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-search-console.url_inspection",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"siteUrl\":\"sc-domain:example.com\",\"inspectionUrl\":\"https://example.com/\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-search-console.url_inspection", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"siteUrl\":\"sc-domain:example.com\",\"inspectionUrl\":\"https://example.com/\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。