Sitemaps: submit
يتطلّب تفويضًا
إرسال خريطة موقع لموقع إلكتروني
تجربة ذلك الآن
الطلب
طلب HTTP
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
المعلمات
اسم المعلَمة |
القيمة |
الوصف |
مَعلمات المسار |
feedpath |
string |
تمثّل هذه السمة عنوان URL لخريطة الموقع المطلوب إضافتها. مثلاً: http://www.example.com/sitemap.xml
|
siteUrl |
string |
هو عنوان URL للموقع الإلكتروني على النحو المحدّد في Search Console. مثل:
http://www.example.com/
(موقع إلكتروني يتضمّن بادئة عنوان URL)
أو sc-domain:example.com
(موقع إلكتروني على النطاق).
|
التفويض
يتطلب هذا الطلب تفويضًا بالنطاق التالي (مزيد من المعلومات عن المصادقة والترخيص).
النطاق |
https://www.googleapis.com/auth/webmasters |
نص الطلب
لا تقدِّم نص طلب باستخدام هذه الطريقة.
الرد
في حال نجاح هذه الطريقة، سيتم عرض نص استجابة فارغ.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-23 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-23 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Submits a sitemap URL to Google Search Console for a specified site."],["Uses a PUT request to the `https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath` endpoint."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope."],["Includes path parameters for `feedpath` (sitemap URL) and `siteUrl` (website URL)."],["Returns an empty response body upon successful submission."]]],["This content outlines the process for submitting a sitemap to a website using the Webmasters API. It requires authorization with the `https://www.googleapis.com/auth/webmasters` scope. The process involves sending a PUT request to a specific URL, including the `siteUrl` and the `feedpath` (sitemap URL) as parameters. No request body is needed. Successful submission results in an empty response body. The provided link allows to test the process live.\n"]]