Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hướng dẫn nhanh về API Lập chỉ mục
API Lập chỉ mục cho phép chủ sở hữu trang web thông báo trực tiếp cho Google khi thêm hoặc xoá các trang đăng tin tuyển dụng hoặc trang phát video trực tiếp. Điều này cho phép Google lên lịch thu thập lại dữ liệu các trang, nhờ vậy có thể dẫn đến việc tăng chất lượng lưu lượng truy cập của người dùng. API Lập chỉ mục chỉ có thể dùng để thu thập dữ liệu các trang có loại dữ liệu có cấu trúc JobPosting hoặc BroadcastEvent nhúng trong VideoObject. Đối với các trang web có nhiều trang chỉ tồn tại trong thời gian ngắn như tin tuyển dụng hoặc video phát trực tiếp, API Lập chỉ mục sẽ giúp nội dung trong kết quả tìm kiếm luôn được cập nhật vì API này cho phép thông báo về từng nội dung cập nhật riêng lẻ.
Dưới đây là một số thao tác bạn có thể thực hiện với API Lập chỉ mục:
Cập nhật URL: Thông báo cho Google về một URL mới cần thu thập dữ liệu hoặc nội dung tại một URL từng gửi trước đó mới được cập nhật.
Xoá URL: Sau khi bạn xoá một trang khỏi máy chủ của mình, hãy thông báo cho Google để chúng tôi có thể xoá trang đó khỏi chỉ mục và không cố gắng thu thập lại dữ liệu trên URL đó.
Xem trạng thái của yêu cầu: Kiểm tra thời điểm gần đây nhất Google nhận được từng loại thông báo cho một URL nhất định.
Gửi yêu cầu lập chỉ mục hàng loạt: Giảm số lượng kết nối HTTP mà ứng dụng của bạn phải thực hiện bằng cách kết hợp tối đa 100 lệnh gọi vào một yêu cầu HTTP.
Bắt đầu
Để sử dụng API Lập chỉ mục, hãy làm theo các bước sau:
Hoàn thành các điều kiện tiên quyết bằng cách bật API Lập chỉ mục, tạo một tài khoản dịch vụ mới, xác minh quyền sở hữu trong Search Console và lấy mã truy cập để xác thực lệnh gọi API của bạn.
Yêu cầu phê duyệt và hạn mức. API Lập chỉ mục cung cấp cho bạn hạn mức mặc định là 200 để làm quen với API và kiểm thử nội dung gửi, đồng thời bạn cần được phê duyệt thêm để sử dụng và cấp tài nguyên.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-04 UTC."],[[["\u003cp\u003eThe Indexing API enables direct notification to Google about new, updated, or removed job posting and livestreaming video pages for faster crawling and improved search result quality.\u003c/p\u003e\n"],["\u003cp\u003eIt's recommended for sites with frequent content changes like job postings or livestreams to use the Indexing API instead of sitemaps for quicker updates, but sitemaps are still advised for overall site coverage.\u003c/p\u003e\n"],["\u003cp\u003eUsing the Indexing API, you can update or remove URLs, check request status, and send batched requests to manage your content's presence in Google Search.\u003c/p\u003e\n"],["\u003cp\u003eBefore utilizing the Indexing API, ensure you complete prerequisites, request approval and quota, adhere to guidelines, and understand the spam policies to avoid access revocation.\u003c/p\u003e\n"]]],["The Indexing API notifies Google about new, updated, or deleted job postings or livestream videos, prompting faster crawls for fresh content. Key actions include: updating URLs, removing URLs, checking request status, and sending batch requests. It's recommended over sitemaps for short-lived content. Using the API requires completing prerequisites, requesting approval/quota, following guidelines, and sending requests. It's subject to spam detection, and abuse may result in revoked access.\n"],null,["# Indexing API Quickstart | Google Search Central\n\nIndexing API Quickstart\n=======================\n\n\nThe Indexing API allows site owners to directly notify Google when their job posting or livestreaming\nvideo pages are added or removed. This allows Google to schedule pages for a fresh crawl, which\ncan lead to higher quality user traffic. The Indexing API can only be used to crawl pages with either\n[`JobPosting`](/search/docs/appearance/structured-data/job-posting) or\n[`BroadcastEvent` embedded in a\n`VideoObject`](/search/docs/appearance/structured-data/video#broadcast-event). For websites with many short-lived pages like job postings or\nlivestream videos, the Indexing API keeps content fresh in search results because it allows\nupdates to be pushed individually.\n\nHere are some of the things you can do with the Indexing API:\n\n- **Update a URL**: Notify Google of a new URL to crawl or that content at a previously-submitted URL has been updated.\n- **Remove a URL**: After you delete a page from your servers, notify Google so that we can remove the page from our index and so that we don't attempt to crawl the URL again.\n- **Get the status of a request**: Check the last time Google received each kind of notification for a given URL.\n- **Send batch indexing requests**: Reduce the number of HTTP connections your client has to make by combining up to 100 calls into a single HTTP request.\n\n| **Sitemaps and the Indexing API** : For websites with many short-lived pages like job postings or livestream videos, we recommend using the Indexing API instead of sitemaps because the Indexing API prompts Googlebot to crawl your pages sooner than updating the sitemap. However, we still recommend [submitting a sitemap](/search/docs/crawling-indexing/sitemaps/overview) for coverage of your entire site.\n\nGet started\n-----------\n\n| All submissions through the Indexing API undergo rigorous spam detection. Any attempts to abuse the Indexing API, including the use of multiple accounts or other means to exceed usage quotas, may result in access being revoked. Learn more about our [spam policies](/search/docs/essentials/spam-policies).\n\nTo use the Indexing API, follow these steps:\n\n1. [Complete the prerequisites](/search/apis/indexing-api/v3/prereqs) by enabling the Indexing API, creating a new service account, verifying ownership in Search Console, and getting an access token to authenticate your API call.\n2. [Request approval and quota](/search/apis/indexing-api/v3/quota#request-quota). The Indexing API provides a default 200 quota for API onboarding and submission testing, and it requires additional approval for usage and resource provisioning.\n3. Follow our [guidelines](/search/apis/indexing-api/v3/using-api#guidelines).\n4. [Send requests](/search/apis/indexing-api/v3/using-api) to notify Google of new, updated, or deleted web pages."]]