List submitted sitemaps for your site
google-search-console.sitemapsList the sitemaps submitted for your site and how many URLs Google took from each
- Prix
- freeAu prix catalogue
- Taux de réussite
- 100 %30 derniers jours · 973 appels
- Latence p50
- 130 msp95 406 ms
- Dernière vérification
- 28 juil. 2026Vérifié et opérationnel
GEThttps://toolswitch.dev/v1/tools/google-search-console.sitemapsBeta- Utilise le quota de la plateforme
- Réponse synchrone
- Lit des données publiques
Paramètres
per sitemap: lastSubmitted, lastDownloaded, isPending, warnings, errors, and contents[] with submitted vs indexed counts. Submitting a new one is PUT /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} and needs the `write` capability
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
siteUrl | chaîne | Obligatoire | Raw property id accepted; treg encodes it | sc-domain:example.com |
| Paramètres de requête | ||||
sitemapIndex | chaîne | Facultatif | full URL of a sitemap index — returns only the sitemaps it contains | |
- Paramètres de chemin
siteUrlchaîneObligatoireRaw property id accepted; treg encodes it
Exemple :
sc-domain:example.com- Paramètres de requête
sitemapIndexchaîneFacultatiffull URL of a sitemap index — returns only the sitemaps it contains
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/google-search-console.sitemaps' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-search-console.sitemaps",
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.sitemaps", {
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());Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.