Sitemaps: get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुमति देना ज़रूरी है
किसी खास साइटमैप के बारे में जानकारी हासिल करता है.
इसे अभी आज़माएं.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
पैरामीटर
पैरामीटर का नाम |
मान |
ब्यौरा |
पाथ पैरामीटर |
feedpath |
string |
यह असल साइटमैप का यूआरएल होता है. उदाहरण के लिए: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Search Console में बताई गई प्रॉपर्टी का यूआरएल. जैसे:
http://www.example.com/ अभी तक किसी भी व्यक्ति ने चेक इन नहीं किया है
(यूआरएल-प्रीफ़िक्स प्रॉपर्टी),
या sc-domain:example.com
(डोमेन प्रॉपर्टी).
|
अनुमति देना
इस अनुरोध के लिए, इनमें से कम से कम एक दायरे का इस्तेमाल करके अनुमति लेना ज़रूरी है (पुष्टि करने और अनुमति देने के बारे में ज़्यादा पढ़ें).
दायरा |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
अनुरोध का मुख्य भाग
इस तरीके के साथ अनुरोध का मुख्य हिस्सा न दें.
जवाब
अगर इस तरीके से साइटमैप सही पाया जाता है, तो जवाब के मुख्य हिस्से में यह साइटमैप संसाधन दिखाता है.
इसे आज़माएं!
लाइव डेटा पर इस तरीके को कॉल करने और जवाब देखने के लिए, नीचे दिए गए एपीआई एक्सप्लोरर का इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-24 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-08-24 (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"]]