Submit a sitemap for your site to Google
google-search-console.x.webmasters-sitemaps-submitsitemaps.submit — Submits a sitemap for a site.
- 価格
- freeカタログ価格で提供
- 成功率
- 100%直近 30 日 · 611 回
- レイテンシ p50
- 139 msp95 576 ms
- 最終確認
- —未確認
PUThttps://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-submitBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
siteUrl | 文字列 | 必須 | Pass the raw property id; treg encodes it. For example: `http://www.example.com/` or `sc-domain:example.com`. | |
feedpath | 文字列 | 必須 | The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`. | |
- パスパラメータ
siteUrl文字列必須Pass the raw property id; treg encodes it. For example: `http://www.example.com/` or `sc-domain:example.com`.
feedpath文字列必須The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X PUT 'https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-submit' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PUT",
"https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-submit",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-submit", {
method: "PUT",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。