Custom Search JSON API Reference
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此 API 参考资料按资源类型编排整理。每种资源类型都有一种或多种数据表示形式以及一个或多个方法。
资源类型
-
客户端加密功能
-
Cse.siterestrict
客户端加密功能
如需详细了解 CSE 资源,请参阅资源表示形式页面。
方法 |
HTTP 请求 |
说明 |
除非另有说明,否则 URI 相对于 https://www.googleapis.com |
list
|
GET /customsearch/v1
|
cse.list 方法会返回有关执行的搜索的元数据、用于搜索的自定义搜索引擎的元数据以及搜索结果。
必需的查询参数:cx 、q |
Cse.siterestrict
如需详细了解 Cse.siterestrict 资源,请参阅资源表示形式页面。
方法 |
HTTP 请求 |
说明 |
除非另有说明,否则 URI 相对于 https://www.googleapis.com |
list
|
GET /customsearch/v1/siterestrict
|
返回有关执行的搜索的元数据、用于搜索的自定义搜索引擎的相关元数据以及搜索结果。使用一小部分网址格式。
必需的查询参数:cx 、q |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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` |"]]