Sites: list
Wymaga autoryzacji
Wyświetla listę witryn Search Console użytkownika.
Wypróbuj
Żądanie
Żądanie HTTP
GET https://www.googleapis.com/webmasters/v3/sites
Autoryzacja
To żądanie wymaga autoryzacji z co najmniej jednym z tych zakresów (więcej informacji o uwierzytelnianiu i autoryzowaniu).
Zakres |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
Treść żądania
Nie podawaj treści żądania przy użyciu tej metody.
Odpowiedź
Jeśli operacja się uda, metoda zwróci odpowiedź o następującej strukturze:
{
"siteEntry": [
sites Resource
]
}
Nazwa usługi |
Wartość |
Opis |
Uwagi |
siteEntry[] |
list |
Zawiera informacje o poziomie uprawnień witryny w Search Console. Więcej informacji znajdziesz w artykule Uprawnienia w Search Console. |
|
Wypróbuj
Użyj poniższego eksploratora interfejsów API, aby wywołać tę metodę na bieżących danych i wyświetlić odpowiedź.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-24 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-24 UTC."],[[["Lists the Search Console sites that a user has access to, along with their permission levels."],["Requires authorization using specific scopes to access the data."],["Uses a simple `GET` request to retrieve the list of sites."],["Returns a response containing an array of `siteEntry` objects, each representing a Search Console site with its associated permissions."]]],["This document outlines how to list a user's Search Console sites via the Webmasters API v3. The `GET` request to `https://www.googleapis.com/webmasters/v3/sites` requires authorization using either the `webmasters.readonly` or `webmasters` scope. No request body is needed. A successful response returns a JSON object containing a `siteEntry` list. Each entry details permission level information for a Search Console site. The provided link gives more information on Search Console permissions.\n"]]