Google Custom Search · Schema
Search
Response to a custom search request.
Custom SearchGoogleImage SearchSearchWeb Search
Properties
| Name | Type | Description |
|---|---|---|
| items | array | The current set of custom search results. |
| spelling | object | Spell correction information for a query. |
| kind | string | Unique identifier for the type of current object. For this API, it is customsearch#search. |
| queries | object | Query metadata for the previous, current, and next pages of results. |
| url | object | OpenSearch template and URL. |
| searchInformation | object | Metadata about a search operation. |
| context | object | Metadata and refinements associated with the given search engine, including: * The name of the search engine that was used for the query. * A set of [facet objects](https://developers.google.com/custo |
| promotions | array | The set of [promotions](https://developers.google.com/custom-search/docs/promotions). Present only if the custom search engine's configuration files define any promotions for the given query. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-custom-search/json-schema/google-custom-search-search-schema.json",
"title": "Search",
"description": "Response to a custom search request.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-custom-search-cse-api-openapi.yml#/components/schemas/Search",
"properties": {
"items": {
"description": "The current set of custom search results.",
"type": "array",
"items": {
"$ref": "#/$defs/Result"
}
},
"spelling": {
"type": "object",
"properties": {
"correctedQuery": {
"type": "string",
"description": "The corrected query."
},
"htmlCorrectedQuery": {
"description": "The corrected query, formatted in HTML.",
"type": "string"
}
},
"description": "Spell correction information for a query."
},
"kind": {
"description": "Unique identifier for the type of current object. For this API, it is customsearch#search.",
"type": "string"
},
"queries": {
"type": "object",
"description": "Query metadata for the previous, current, and next pages of results.",
"properties": {
"request": {
"type": "array",
"items": {
"properties": {
"orTerms": {
"description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms. You can also use the [Boolean OR](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) query term for this type of query.",
"type": "string"
},
"disableCnTwTranslation": {
"description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled",
"type": "string"
},
"startIndex": {
"description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
"type": "integer",
"format": "int32"
},
"lowRange": {
"description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
"type": "string"
},
"siteSearch": {
"type": "string",
"description": "Restricts results to URLs from a specified site."
},
"outputEncoding": {
"type": "string",
"description": "The character encoding supported for search results."
},
"dateRestrict": {
"type": "string",
"description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years."
},
"language": {
"description": "The language of the search results.",
"type": "string"
},
"imgSize": {
"type": "string",
"description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)"
},
"inputEncoding": {
"description": "The character encoding supported for search requests.",
"type": "string"
},
"linkSite": {
"description": "Specifies that all results should contain a link to a specific URL.",
"type": "string"
},
"exactTerms": {
"description": "Identifies a phrase that all documents in the search results must contain.",
"type": "string"
},
"title": {
"description": "A description of the query.",
"type": "string"
},
"gl": {
"type": "string",
"description": "Boosts search results whose country of origin matches the parameter value. See [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) for a list of valid values. Specifying a `gl` parameter value in WebSearch requests should improve the relevance of results. This is particularly true for international customers and, even more specifically, for customers in English-speaking countries other than the United States."
},
"rights": {
"type": "string",
"description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`"
},
"safe": {
"type": "string",
"description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch"
},
"cr": {
"description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
"type": "string"
},
"searchTerms": {
"description": "The search terms entered by the user.",
"type": "string"
},
"relatedSite": {
"description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
"type": "string"
},
"sort": {
"type": "string",
"description": "Specifies that results should be sorted according to the specified expression. For example, sort by date."
},
"imgDominantColor": {
"description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` * `green` * `teal` * `blue` * `purple` * `pink` * `white` * `gray` * `black` * `brown`",
"type": "string"
},
"fileType": {
"description": "Restricts results to files of a specified extension. Filetypes supported by Google include: * Adobe Portable Document Format (`pdf`) * Adobe PostScript (`ps`) * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`) * Lotus WordPro (`lwp`) * Macwrite (`mw`) * Microsoft Excel (`xls`) * Microsoft PowerPoint (`ppt`) * Microsoft Word (`doc`) * Microsoft Works (`wks`, `wps`, `wdb`) * Microsoft Write (`wri`) * Rich Text Format (`rtf`) * Shockwave Flash (`swf`) * Text (`ans`, `txt`). Additional filetypes may be added in the future. An up-to-date list can always be found in Google's [file type FAQ](https://support.google.com/webmasters/answer/35287).",
"type": "string"
},
"siteSearchFilter": {
"description": "Specifies whether to include or exclude results from the site named in the `sitesearch` parameter. Supported values are: * `i`: include content from site * `e`: exclude content from site",
"type": "string"
},
"imgColorType": {
"description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)",
"type": "string"
},
"cx": {
"description": "The identifier of an engine created using the Programmable Search Engine [Control Panel](https://programmablesearchengine.google.com/). This is a custom property not defined in the OpenSearch spec. This parameter is **required**.",
"type": "string"
},
"filter": {
"description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
"type": "string"
},
"highRange": {
"description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
"type": "string"
},
"excludeTerms": {
"description": "Identifies a word or phrase that should not appear in any documents in the search results.",
"type": "string"
},
"googleHost": {
"type": "string",
"description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited."
},
"count": {
"format": "int32",
"type": "integer",
"description": "Number of search results returned in this set."
},
"startPage": {
"format": "int32",
"description": "The page number of this set of results, where the page length is set by the `count` property.",
"type": "integer"
},
"hl": {
"description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages.",
"type": "string"
},
"totalResults": {
"description": "Estimated number of total search results. May not be accurate.",
"type": "string",
"format": "int64"
},
"imgType": {
"type": "string",
"description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)"
},
"hq": {
"description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator.",
"type": "string"
},
"searchType": {
"description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages.",
"type": "string"
}
},
"description": "Custom search request metadata.",
"type": "object"
},
"description": "Metadata representing the current request."
},
"nextPage": {
"type": "array",
"description": "Metadata representing the next page of results, if applicable.",
"items": {
"type": "object",
"properties": {
"imgColorType": {
"type": "string",
"description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)"
},
"disableCnTwTranslation": {
"description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled",
"type": "string"
},
"title": {
"type": "string",
"description": "A description of the query."
},
"imgType": {
"type": "string",
"description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)"
},
"searchType": {
"description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages.",
"type": "string"
},
"inputEncoding": {
"description": "The character encoding supported for search requests.",
"type": "string"
},
"sort": {
"description": "Specifies that results should be sorted according to the specified expression. For example, sort by date.",
"type": "string"
},
"hq": {
"description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator.",
"type": "string"
},
"hl": {
"type": "string",
"description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages."
},
"siteSearchFilter": {
"type": "string",
"description": "Specifies whether to include or exclude results from the site named in the `sitesearch` parameter. Supported values are: * `i`: include content from site * `e`: exclude content from site"
},
"imgDominantColor": {
"description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` * `green` * `teal` * `blue` * `purple` * `pink` * `white` * `gray` * `black` * `brown`",
"type": "string"
},
"dateRestrict": {
"type": "string",
"description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years."
},
"googleHost": {
"description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited.",
"type": "string"
},
"safe": {
"description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch",
"type": "string"
},
"rights": {
"description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`",
"type": "string"
},
"searchTerms": {
"description": "The search terms entered by the user.",
"type": "string"
},
"relatedSite": {
"description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
"type": "string"
},
"highRange": {
"type": "string",
"description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query."
},
"linkSite": {
"type": "string",
"description": "Specifies that all results should contain a link to a specific URL."
},
"language": {
"description": "The language of the search results.",
"type": "string"
},
"totalResults": {
"type": "string",
"format": "int64",
"description": "Estimated number of total search results. May not be accurate."
},
"filter": {
"description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
"type": "string"
},
"lowRange": {
"description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
"type": "string"
},
"gl": {
"description": "Boosts search results whose country of origin matches the parameter value. See [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) for a list of valid values. Specifying a `gl` parameter value in WebSearch requests should improve the relevance of results. This is particularly true for international customers and, even more specifically, for customers in English-speaking countries other than the United States.",
"type": "string"
},
"orTerms": {
"description": "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms. You can also use the [Boolean OR](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) query term for this type of query.",
"type": "string"
},
"cr": {
"description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
"type": "string"
},
"outputEncoding": {
"description": "The character encoding supported for search results.",
"type": "string"
},
"startPage": {
"format": "int32",
"type": "integer",
"description": "The page number of this set of results, where the page length is set by the `count` property."
},
"exactTerms": {
"description": "Identifies a phrase that all documents in the search results must contain.",
"type": "string"
},
"fileType": {
"description": "Restricts results to files of a specified extension. Filetypes supported by Google include: * Adobe Portable Document Format (`pdf`) * Adobe PostScript (`ps`) * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`) * Lotus WordPro (`lwp`) * Macwrite (`mw`) * Microsoft Excel (`xls`) * Microsoft PowerPoint (`ppt`) * Microsoft Word (`doc`) * Microsoft Works (`wks`, `wps`, `wdb`) * Microsoft Write (`wri`) * Rich Text Format (`rtf`) * Shockwave Flash (`swf`) * Text (`ans`, `txt`). Additional filetypes may be added in the future. An up-to-date list can always be found in Google's [file type FAQ](https://support.google.com/webmasters/answer/35287).",
"type": "string"
},
"count": {
"type": "integer",
"description": "Number of search results returned in this set.",
"format": "int32"
},
"imgSize": {
"description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)",
"type": "string"
},
"excludeTerms": {
"description": "Identifies a word or phrase that should not appear in any documents in the search results.",
"type": "string"
},
"cx": {
"description": "The identifier of an engine created using the Programmable Search Engine [Control Panel](https://programmablesearchengine.google.com/). This is a custom property not defined in the OpenSearch spec. This parameter is **required**.",
"type": "string"
},
"startIndex": {
"format": "int32",
"description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
"type": "integer"
},
"siteSearch": {
"type": "string",
"description": "Restricts results to URLs from a specified site."
}
},
"description": "Custom search request metadata."
}
},
"previousPage": {
"items": {
"description": "Custom search request metadata.",
"properties": {
"searchTerms": {
"type": "string",
"description": "The search terms entered by the user."
},
"relatedSite": {
"description": "Specifies that all search results should be pages that are related to the specified URL. The parameter value should be a URL.",
"type": "string"
},
"title": {
"description": "A description of the query.",
"type": "string"
},
"highRange": {
"description": "Specifies the ending value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query.",
"type": "string"
},
"imgType": {
"description": "Restricts results to images of a specified type. Supported values are: * `clipart` (Clip art) * `face` (Face) * `lineart` (Line drawing) * `photo` (Photo) * `animated` (Animated) * `stock` (Stock)",
"type": "string"
},
"dateRestrict": {
"description": "Restricts results to URLs based on date. Supported values include: * `d[number]`: requests results from the specified number of past days. * `w[number]`: requests results from the specified number of past weeks. * `m[number]`: requests results from the specified number of past months. * `y[number]`: requests results from the specified number of past years.",
"type": "string"
},
"outputEncoding": {
"description": "The character encoding supported for search results.",
"type": "string"
},
"hl": {
"type": "string",
"description": "Specifies the interface language (host language) of your user interface. Explicitly setting this parameter improves the performance and the quality of your search results. See the [Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#wsInterfaceLanguages) section of [Internationalizing Queries and Results Presentation](https://developers.google.com/custom-search/docs/json_api_reference#wsInternationalizing) for more information, and [Supported Interface Languages](https://developers.google.com/custom-search/docs/json_api_reference#interfaceLanguages) for a list of supported languages."
},
"siteSearch": {
"description": "Restricts results to URLs from a specified site.",
"type": "string"
},
"hq": {
"type": "string",
"description": "Appends the specified query terms to the query, as if they were combined with a logical `AND` operator."
},
"imgColorType": {
"description": "Restricts results to images of a specified color type. Supported values are: * `mono` (black and white) * `gray` (grayscale) * `color` (color)",
"type": "string"
},
"startIndex": {
"description": "The index of the current set of search results into the total set of results, where the index of the first result is 1.",
"type": "integer",
"format": "int32"
},
"rights": {
"type": "string",
"description": "Filters based on licensing. Supported values include: * `cc_publicdomain` * `cc_attribute` * `cc_sharealike` * `cc_noncommercial` * `cc_nonderived`"
},
"exactTerms": {
"description": "Identifies a phrase that all documents in the search results must contain.",
"type": "string"
},
"startPage": {
"format": "int32",
"type": "integer",
"description": "The page number of this set of results, where the page length is set by the `count` property."
},
"safe": {
"description": "Specifies the [SafeSearch level](https://developers.google.com/custom-search/docs/json_api_reference#safeSearchLevels) used for filtering out adult results. This is a custom property not defined in the OpenSearch spec. Valid parameter values are: * `\"off\"`: Disable SafeSearch * `\"active\"`: Enable SafeSearch",
"type": "string"
},
"language": {
"description": "The language of the search results.",
"type": "string"
},
"filter": {
"description": "Activates or deactivates the automatic filtering of Google search results. See [Automatic Filtering](https://developers.google.com/custom-search/docs/json_api_reference#automaticFiltering) for more information about Google's search results filters. Valid values for this parameter are: * `0`: Disabled * `1`: Enabled (default) **Note**: By default, Google applies filtering to all search results to improve the quality of those results.",
"type": "string"
},
"inputEncoding": {
"type": "string",
"description": "The character encoding supported for search requests."
},
"disableCnTwTranslation": {
"type": "string",
"description": "Enables or disables the [Simplified and Traditional Chinese Search](https://developers.google.com/custom-search/docs/json_api_reference#chineseSearch) feature. Supported values are: * `0`: enabled (default) * `1`: disabled"
},
"lowRange": {
"type": "string",
"description": "Specifies the starting value for a search range. Use `cse:lowRange` and `cse:highrange` to append an inclusive search range of `lowRange...highRange` to the query."
},
"searchType": {
"type": "string",
"description": "Allowed values are `web` or `image`. If unspecified, results are limited to webpages."
},
"excludeTerms": {
"type": "string",
"description": "Identifies a word or phrase that should not appear in any documents in the search results."
},
"sort": {
"type": "string",
"description": "Specifies that results should be sorted according to the specified expression. For example, sort by date."
},
"linkSite": {
"description": "Specifies that all results should contain a link to a specific URL.",
"type": "string"
},
"googleHost": {
"type": "string",
"description": "Specifies the Google domain (for example, google.com, google.de, or google.fr) to which the search should be limited."
},
"imgSize": {
"description": "Restricts results to images of a specified size. Supported values are: * `icon` (small) * `small | medium | large | xlarge` (medium) * `xxlarge` (large) * `huge` (extra-large)",
"type": "string"
},
"count": {
"format": "int32",
"description": "Number of search results returned in this set.",
"type": "integer"
},
"cr": {
"description": "Restricts search results to documents originating in a particular country. You may use [Boolean operators](https://developers.google.com/custom-search/docs/json_api_reference#BooleanOrSearch) in the `cr` parameter's value. Google WebSearch determines the country of a document by analyzing the following: * The top-level domain (TLD) of the document's URL. * The geographic location of the web server's IP address. See [Country (cr) Parameter Values](https://developers.google.com/custom-search/docs/json_api_reference#countryCollections) for a list of valid values for this parameter.",
"type": "string"
},
"imgDominantColor": {
"description": "Restricts results to images with a specific dominant color. Supported values are: * `red` * `orange` * `yellow` *
# --- truncated at 32 KB (43 KB total) ---
# Full source: https://artifacts.apis.io/google-custom-search/json-schema/google-custom-search-search-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-custom-search-search"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.