Sitemaps: get
승인 필요
특정 사이트맵에 관한 정보를 검색합니다.
지금 사용해 보기
요청
HTTP 요청
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
매개변수
매개변수 이름 |
값 |
설명 |
경로 매개변수 |
feedpath |
string |
실제 사이트맵의 URL입니다. 예: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Search Console에 정의된 속성의 URL입니다. 예를 들면 다음과 같습니다.
http://www.example.com/
(URL 접두사 속성)
또는 sc-domain:example.com
(도메인 속성).
|
승인
이 요청에는 다음 범위 중 최소 하나를 사용하여 인증이 필요합니다. (인증 및 승인에 대해 자세히 알아보기)
범위 |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
요청 본문
이 메소드를 사용할 때는 요청 본문을 제공하지 마세요.
응답
요청에 성공할 경우 이 메서드는 응답 본문에 사이트맵 리소스를 반환합니다.
사용해 보기
아래의 API 탐색기를 사용하여 실시간 데이터를 대상으로 이 메소드를 호출하고 응답을 확인해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-29(UTC)
[null,null,["최종 업데이트: 2024-08-29(UTC)"],[[["Retrieves data for a specified sitemap using its URL and the site's URL as registered in Google Search Console."],["Requires authorization with either `https://www.googleapis.com/auth/webmasters.readonly` or `https://www.googleapis.com/auth/webmasters` scope."],["Uses an HTTP GET request with `feedpath` and `siteUrl` as path parameters."],["Returns a Sitemaps resource with information about the requested sitemap if successful."]]],["This outlines how to retrieve information about a specific sitemap via a `GET` request to `https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath`. The request requires authorization using either the `webmasters.readonly` or `webmasters` scope. Two path parameters, `feedpath` (sitemap URL) and `siteUrl` (property URL), are needed. No request body is required; a successful response returns a Sitemaps resource.\n"]]