Remove a sitemap from your Search Console report
google-search-console.x.webmasters-sitemaps-deletesitemaps.delete — Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
- 価格
- freeカタログ価格で提供
- 成功率
- 100%直近 30 日 · 38 回
- レイテンシ p50
- 90 msp95 146 ms
- 最終確認
- —未確認
DELETEhttps://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-deleteBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
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 DELETE 'https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-delete' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"DELETE",
"https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-delete",
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-delete", {
method: "DELETE",
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 です。サービス料を含みます。