Add a site to your Search Console
google-search-console.x.webmasters-sites-addsites.add — Adds a site to the set of the user's sites in Search Console.
- 価格
- freeカタログ価格で提供
- 成功率
- 100%直近 30 日 · 86 回
- レイテンシ p50
- 1.1 sp95 1.5 s
- 最終確認
- —未確認
PUThttps://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sites-addBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
siteUrl | 文字列 | 必須 | Pass the raw site URL/property id; treg encodes it. | |
- パスパラメータ
siteUrl文字列必須Pass the raw site URL/property id; treg encodes it.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X PUT 'https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sites-add' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PUT",
"https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sites-add",
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-sites-add", {
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 です。サービス料を含みます。