Sites: list
נדרשת הרשאה
ליצירת רשימת האתרים של המשתמש ב-Search Console.
רוצים לנסות עכשיו?
בקשה
בקשת HTTP
GET https://www.googleapis.com/webmasters/v3/sites
אישור
הבקשה הזו מחייבת הרשאה עם לפחות אחד מההיקפים הבאים (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
גוף הבקשה
אל תספקו גוף בקשה בשיטה הזו.
תשובה
אם הפעולה בוצעה ללא שגיאות, השיטה הזו מחזירה גוף תגובה עם המבנה הבא:
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-24 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]