Custom Search JSON API Reference
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.
Tài liệu tham khảo API này được sắp xếp theo loại tài nguyên. Mỗi loại tài nguyên có một hoặc nhiều cách biểu diễn dữ liệu và một hoặc nhiều phương thức.
Loại tài nguyên
-
Công cụ tìm kiếm tùy chỉnh
-
Cse.siterestrict
Công cụ tìm kiếm tùy chỉnh
Để biết chi tiết về Tài nguyên CSE, hãy xem trang trình bày tài nguyên.
Phương thức |
Yêu cầu HTTP |
Nội dung mô tả |
URI liên quan đến https://www.googleapis.com, trừ khi có ghi chú khác |
list
|
GET /customsearch/v1
|
Phương thức cse.list sẽ trả về siêu dữ liệu về lượt tìm kiếm đã thực hiện, siêu dữ liệu về công cụ tìm kiếm tuỳ chỉnh dùng cho lượt tìm kiếm và các kết quả tìm kiếm.
Tham số truy vấn bắt buộc:
cx , q |
Cse.siterestrict
Để biết thông tin chi tiết về tài nguyên Cse.siterestrict, hãy xem trang trình bày về tài nguyên.
Phương thức |
Yêu cầu HTTP |
Nội dung mô tả |
URI liên quan đến https://www.googleapis.com, trừ khi có ghi chú khác |
list
|
GET /customsearch/v1/siterestrict
|
Trả về siêu dữ liệu về lượt tìm kiếm đã thực hiện, siêu dữ liệu về công cụ tìm kiếm tuỳ chỉnh dùng cho lượt tìm kiếm và các kết quả tìm kiếm. Sử dụng một nhóm nhỏ các mẫu URL.
Tham số truy vấn bắt buộc:
cx , q |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThis API reference is organized by resource type, with each type having one or more data representations and methods.\u003c/p\u003e\n"],["\u003cp\u003eThe two main resource types are CSE and Cse.siterestrict, each with their own set of methods for interacting with them.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecse.list\u003c/code\u003e method allows you to retrieve metadata about a search, the custom search engine used, and the search results themselves using required query parameters \u003ccode\u003ecx\u003c/code\u003e and \u003ccode\u003eq\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSimilarly, the \u003ccode\u003esiterestrict.list\u003c/code\u003e method provides similar search metadata and results but utilizes a smaller set of URL patterns and also requires \u003ccode\u003ecx\u003c/code\u003e and \u003ccode\u003eq\u003c/code\u003e query parameters.\u003c/p\u003e\n"]]],[],null,["# Custom Search JSON API Reference\n\nThis API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.\n\nResource types\n--------------\n\n1. [CSE](#CSE)\n2. [Cse.siterestrict](#Cse.siterestrict)\n\nCSE\n---\n\nFor CSE Resource details, see the [resource representation](/custom-search/v1/cse#resource) page.\n\n| Method | HTTP request | Description |\n|------------------------------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| URIs relative to https://www.googleapis.com, unless otherwise noted |||\n| [list](/custom-search/v1/cse/list) | `GET /customsearch/v1` | The [cse.list](#method_search.cse.list) method returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. \u003cbr /\u003e **Required query parameters:** `cx`, `q` |\n\nCse.siterestrict\n----------------\n\nFor Cse.siterestrict Resource details, see the [resource representation](/custom-search/v1/cse/siterestrict#resource) page.\n\n| Method | HTTP request | Description |\n|-------------------------------------------------|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| URIs relative to https://www.googleapis.com, unless otherwise noted |||\n| [list](/custom-search/v1/cse/siterestrict/list) | `GET /customsearch/v1/siterestrict` | Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns. \u003cbr /\u003e **Required query parameters:** `cx`, `q` |"]]