จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
API-Google User Agent
APIs-Google คือ User Agent ที่ Google APIs ใช้เพื่อแสดงข้อความ Push
นักพัฒนาแอปพลิเคชันสามารถขอการแจ้งเตือนเหล่านี้เพื่อจะได้ไม่ต้องทำการสำรวจเซิร์ฟเวอร์ของ Google อยู่เรื่อยๆ เมื่อต้องการดูว่าทรัพยากรที่ตนสนใจมีการเปลี่ยนแปลงหรือไม่
Google กำหนดให้นักพัฒนาซอฟต์แวร์พิสูจน์ว่าตนเป็นเจ้าของโดเมนก่อนอนุญาตให้ลงทะเบียน URL ที่มีโดเมนหนึ่งเป็นตำแหน่งที่ใช้รับข้อความ เพื่อไม่ให้มีผู้ใดใช้บริการนี้ในทางที่ผิด
วิธีที่ APIs-Google เข้าถึงเว็บไซต์
APIs-Google จะส่งข้อความ Push แต่ละรายการโดยใช้คำขอ HTTPS POST หากส่งคำขอไม่สำเร็จเนื่องจากสภาวะข้อผิดพลาดที่อาจเกิดขึ้นชั่วคราว APIs-Google จะส่งการแจ้งเตือนนั้นอีกครั้ง หากยังคงส่งคำขอไม่สำเร็จ APIs-Google จะลองส่งไปเรื่อยๆ ตามกำหนดการ Exponential Backoff โดยอาจลองส่งต่อไปอีกหลายวัน
อัตราการเข้าถึงเว็บไซต์ของ APIs-Google จะแตกต่างกันไปตามจำนวนคำขอข้อความ Push ที่สร้างขึ้นสำหรับเซิร์ฟเวอร์ในเว็บไซต์ของคุณ ตามความเร็วในการอัปเดตทรัพยากรที่มีการตรวจสอบ และตามจำนวนการลองอีกครั้งที่เกิดขึ้น ด้วยเหตุนี้ รูปแบบการเข้าชมของ APIs-Google อาจสอดคล้องกันในบางสถานการณ์ แต่ในสถานการณ์อื่นอาจเกิดขึ้นนานๆ ครั้งหรือไม่สม่ำเสมอ
เตรียมเว็บไซต์สําหรับ APIs-Google
APIs-Google ใช้ HTTPS เพื่อแสดงข้อความ Push เว็บไซต์ของคุณจึงต้องมีใบรับรอง SSL ที่ถูกต้อง ใบรับรองที่ไม่ถูกต้องมีดังต่อไปนี้
- ใบรับรองแบบ Self-signed
- ใบรับรองที่ลงนามโดยแหล่งที่มาที่ไม่น่าเชื่อถือ
- ใบรับรองที่เพิกถอนไปแล้ว
หลีกเลี่ยงการลองส่งคำขออีกครั้งที่ไม่จำเป็น โดยออกแบบแอปพลิเคชันให้ดีและตอบสนองข้อความการแจ้งเตือนได้ทันที (ภายในไม่กี่วินาที)
ป้องกันไม่ให้ APIs-Google เรียกใช้เว็บไซต์
หากต้องการป้องกันไม่ให้ APIs-Google เรียกใช้เว็บไซต์ ให้ทำอย่างใดอย่างหนึ่งต่อไปนี้
-
ยกเลิกการลงทะเบียนรับการแจ้งเตือน หากคุณดูแลโดเมนที่มีโดเมนย่อยหรือมีพื้นที่ย่อยของ URL ที่มีเจ้าของและมีการดูแลแยกกัน เจ้าของโดเมนย่อยรายใดรายหนึ่งอาจตั้งค่าแอปพลิเคชันที่ใช้ข้อความ Push หากต้องการบล็อก APIs-Google โปรดติดต่อผู้ที่อาจเป็นคนตั้งค่าแอปพลิเคชันให้ทำงานในลักษณะนี้ และขอให้ปิดใช้แอปพลิเคชัน
-
ใช้ robots.txt User Agent ที่จะระบุในไฟล์ robots.txt คือ
APIs-Google
เนื่องจาก APIs-Google
ไม่ทำตามกฎสําหรับ User Agent ของ Googlebot
และ APIs-Google
อาจใช้เวลาเล็กน้อยก่อนจะค้นพบการเปลี่ยนแปลงในไฟล์ robots.txt หาก APIs-Google
ยังคงส่งข้อความถึงเว็บไซต์ของคุณหลังจากที่ถูกบล็อกใน robots.txt ไปแล้วหลายวัน ให้ตรวจสอบว่า robots.txt อยู่ในตำแหน่งที่ถูกต้องหรือไม่
ยืนยันผู้เรียก
หากสงสัยว่ากำลังได้รับคำขอปลอม คุณตรวจสอบได้ว่าบ็อตที่เข้าถึงเซิร์ฟเวอร์ของคุณเรียกมาจาก google.com จริงๆ ค้นหาบันทึกที่อยู่ IP ที่ระบุตัวตนว่าเป็น User Agent ของ APIs-Google
การค้นหา DNS แบบย้อนกลับจะแสดงโดเมน googlebot.com หรือ google.com
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-04 UTC
[null,null,["อัปเดตล่าสุด 2025-08-04 UTC"],[[["\u003cp\u003eAPIs-Google is a user agent utilized by Google APIs to deliver push notifications, allowing developers to receive updates without continuous server polling.\u003c/p\u003e\n"],["\u003cp\u003eAPIs-Google accesses websites using HTTPS POST requests for notifications, employing retries with exponential backoff for failed deliveries, leading to varied traffic patterns.\u003c/p\u003e\n"],["\u003cp\u003eWebsites must possess a valid SSL certificate to receive notifications and should be optimized for prompt responses to minimize unnecessary retry attempts by APIs-Google.\u003c/p\u003e\n"],["\u003cp\u003eTo prevent APIs-Google access, website owners can unregister for notifications or utilize robots.txt to block the user agent.\u003c/p\u003e\n"],["\u003cp\u003eSpoofed requests can be identified by verifying the caller's IP address through reverse DNS lookup to confirm association with googlebot.com or google.com.\u003c/p\u003e\n"]]],["APIs-Google is Google's user agent for push notifications, delivering messages via HTTPS POST requests. Developers must verify domain ownership to use this service. APIs-Google retries failed requests with exponential backoff and can create sporadic traffic. Sites need valid SSL certificates, and apps should respond quickly to avoid retries. To block APIs-Google, unregister notifications or use `APIs-Google` in robots.txt. Spoofed requests can be identified by verifying IP addresses against googlebot.com or google.com domains.\n"],null,["# APIs-Google User Agent | Google Search Central\n\nAPIs-Google user agent\n======================\n\n\nAPIs-Google is the user agent used by Google APIs to deliver push notification messages.\nApplication developers can request these notifications to avoid the need for continually\npolling Google's servers to find out if the resources they are interested in have changed.\nTo make sure nobody abuses this service, Google requires developers to prove that they own\nthe domain before allowing them to register a URL with a domain as the location where they\nwant to receive messages.\n\nHow APIs-Google accesses your site\n----------------------------------\n\n\nAPIs-Google sends each push notification using an HTTPS POST request. If the request fails due\nto an error condition that might be temporary, APIs-Google will resend the notification. If\nthe request still doesn't succeed, it will continue to retry---based on an exponential backoff\nschedule---up to a maximum of several days.\n\n\nThe rate at which APIs-Google accesses your site varies by how many push notification requests\nwere created for servers on your site, by how fast the monitored resources are getting\nupdated, and by the number of retries occurring. As a result, the APIs-Google traffic patterns\ncan be consistent in some scenarios, but in other scenarios the traffic can be sporadic or\nspiky.\n\nPrepare your site for APIs-Google\n---------------------------------\n\n\nAPIs-Google uses HTTPS to deliver push notifications, so it requires your site to have a valid\nSSL certificate. **Invalid** certificates include the following:\n\n- Self-signed certificates.\n- Certificates signed by an untrusted source.\n- Certificates that have been revoked.\n\n\nAvoid unnecessary retry requests by ensuring that your application is well-designed and\nresponds promptly to notification messages (within seconds).\n\nPrevent APIs-Google from calling your site\n------------------------------------------\n\n\nTo prevent APIs-Google from calling your site, do one of the following:\n\n- **Unregister for notifications.** If you administer a domain that has subdomains or URL subspaces that are owned or administered separately, one of the subdomain owners may have set up an application that uses push notifications. If you want to block APIs-Google, contact anyone who might have set up an application like this and ask them to disable it.\n- **Use robots.txt.** The user agent to specify in the robots.txt file is `APIs-Google` - `APIs-Google` does not follow rules for the Googlebot user agent. There may be a small delay before `APIs-Google` discovers your robots.txt file change. If `APIs-Google` continues to send messages to your site several days after you've blocked it in robots.txt, check that the robots.txt is in the correct location.\n\nVerify the caller\n-----------------\n\n\nIf you suspect that you are receiving spoofed requests, you can\n[verify that a bot accessing your server really is calling from google.com](/search/docs/crawling-indexing/verifying-googlebot).\nSearch your logs for any IP addresses identifying themselves as the\n`APIs-Google` user agent; a reverse DNS lookup shows the googlebot.com or\ngoogle.com domain."]]