Sites: get
ต้องมีการให้สิทธิ์
เรียกดูข้อมูลเกี่ยวกับเว็บไซต์ที่เฉพาะเจาะจง
ลองใช้เลย
ส่งคำขอ
คำขอ HTTP
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์เส้นทาง |
siteUrl |
string |
URL ของพร็อพเพอร์ตี้ที่จะเรียกข้อมูลตามที่ Search Console กำหนด ตัวอย่าง
http://www.example.com/ (สำหรับพร็อพเพอร์ตี้คำนำหน้า URL) หรือ
sc-domain:example.com (สำหรับพร็อพเพอร์ตี้โดเมน)
|
การให้สิทธิ์
คำขอนี้ต้องได้รับการให้สิทธิ์ที่มีขอบเขตต่อไปนี้อย่างน้อย 1 ขอบเขต (อ่านเพิ่มเติมเกี่ยวกับการตรวจสอบสิทธิ์และการให้สิทธิ์)
ขอบเขต |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
เนื้อหาของคำขอ
โปรดอย่าให้เนื้อหาคำขอตามวิธีการนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-24 UTC
[null,null,["อัปเดตล่าสุด 2024-08-24 UTC"],[[["Retrieves information for a specific website using its URL."],["Requires authorization with `webmasters.readonly` or `webmasters` scope."],["Uses a `GET` request to the `/webmasters/v3/sites/siteUrl` endpoint."],["Returns a `Sites` resource with details about the specified website upon success."],["The `siteUrl` parameter accepts the URL or domain of the site for retrieval."]]],["This resource allows retrieving information about a specific site using its URL. The request is a `GET` method to the specified endpoint, requiring the `siteUrl` as a path parameter. The `siteUrl` can be either a URL-prefix (e.g., `http://www.example.com/`) or a domain property (e.g., `sc-domain:example.com`). Authorization is necessary, using either `webmasters.readonly` or `webmasters` scopes. No request body is needed; a successful response returns a `Sites` resource.\n"]]