Overview
Cloud Search provides cloud-based search capabilities over Google Workspace data. The Cloud Search API allows indexing of non-Google Workspace data into Cloud Search.
Cloud Search API is an analytics API from googleapis.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 43 endpoints.
At a glance
- Authentication
- OAuth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Analytics
- Base URL
https://cloudsearch.googleapis.com/- Version
- v1
- Endpoints
- 43
- OpenAPI
- Specification ↗
- Spec updated
- 2023-04-21
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://cloudsearch.googleapis.com/v1/query/sources" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://cloudsearch.googleapis.com/v1/query/sources", {
method: "GET",
headers: {
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://cloudsearch.googleapis.com/v1/query/sources",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/debug/{name}/items:searchByViewUrl | Fetches the item whose viewUrl exactly matches that of the URL provided in the request. **Note:** This API requires an admin account to execute. |
| POST | /v1/debug/{name}:checkAccess | Checks whether an item is accessible by specified principal. Principal must be a user; groups and domain values aren't supported. **Note:** This API requires an |
| GET | /v1/debug/{parent}/items:forunmappedidentity | Lists names of items associated with an unmapped identity. **Note:** This API requires an admin account to execute. |
| GET | /v1/debug/{parent}/unmappedids | Lists unmapped user identities for an identity source. **Note:** This API requires an admin account to execute. |
| GET | /v1/indexing/{name} | Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding |
| DELETE | /v1/indexing/{name} | Deletes Item resource for the specified resource name. This API requires an admin or service account to execute. The service account used is the one whitelisted |
| GET | /v1/indexing/{name}/items | Lists all or a subset of Item resources. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corres |
| POST | /v1/indexing/{name}/items:deleteQueueItems | Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used |
| POST | /v1/indexing/{name}/items:poll | Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority Ite |
| POST | /v1/indexing/{name}/items:unreserve | Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been rest |
| GET | /v1/indexing/{name}/schema | Gets the schema of a data source. **Note:** This API requires an admin or service account to execute. |
| PUT | /v1/indexing/{name}/schema | Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the |
| DELETE | /v1/indexing/{name}/schema | Deletes the schema of a data source. **Note:** This API requires an admin or service account to execute. |
| POST | /v1/indexing/{name}:index | Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided val |
| POST | /v1/indexing/{name}:push | Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitel |
| POST | /v1/indexing/{name}:upload | Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API r |
| POST | /v1/media/{resourceName} | Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during i |
| POST | /v1/query/search | The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from Google Workspace app |
| GET | /v1/query/sources | Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. A service account can |
| POST | /v1/query/suggest | Provides suggestions for autocompleting the query. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API |
| GET | /v1/settings/customer | Get customer settings. **Note:** This API requires an admin account to execute. |
| PATCH | /v1/settings/customer | Update customer settings. **Note:** This API requires an admin account to execute. |
| GET | /v1/settings/datasources | Lists datasources. **Note:** This API requires an admin account to execute. |
| POST | /v1/settings/datasources | Creates a datasource. **Note:** This API requires an admin account to execute. |
| GET | /v1/settings/searchapplications | Lists all search applications. **Note:** This API requires an admin account to execute. |
| POST | /v1/settings/searchapplications | Creates a search application. **Note:** This API requires an admin account to execute. |
| GET | /v1/settings/{name} | Gets the specified search application. **Note:** This API requires an admin account to execute. |
| PUT | /v1/settings/{name} | Updates a search application. **Note:** This API requires an admin account to execute. |
| PATCH | /v1/settings/{name} | Updates a search application. **Note:** This API requires an admin account to execute. |
| DELETE | /v1/settings/{name} | Deletes a search application. **Note:** This API requires an admin account to execute. |
| POST | /v1/settings/{name}:reset | Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute. |
| GET | /v1/stats/index | Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the curr |
| GET | /v1/stats/index/{name} | Gets indexed item statistics for a single data source. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/stats/query | Get the query statistics for customer. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/stats/query/{name} | Get the query statistics for search application. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/stats/searchapplication | Get search application stats for customer. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/stats/session | Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to ex |
| GET | /v1/stats/session/{name} | Get the # of search sessions, % of successful sessions with a click query statistics for search application. **Note:** This API requires a standard end user acc |
| GET | /v1/stats/user | Get the users statistics for customer. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/stats/user/{name} | Get the users statistics for search application. **Note:** This API requires a standard end user account to execute. |
| GET | /v1/{name} | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. |
| GET | /v1/{name}/lro | Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. |
| POST | /v1:initializeCustomer | Enables `third party` support in Google Cloud Search. **Note:** This API requires an admin account to execute. |
Questions
Does the Cloud Search API API need an API key?
Yes. The Cloud Search API API uses OAuth authentication; the documentation explains how to get credentials.
Does the Cloud Search API API support HTTPS?
Yes, the Cloud Search API API is served over HTTPS.
How many endpoints does the Cloud Search API API have?
Its OpenAPI description lists 43 endpoints in version v1. All of them are shown on this page.
What are alternatives to the Cloud Search API API?
Other Analytics APIs include Google Play Integrity API, versionhistory.googleapis.com API, Doc Converter, Perspective Comment Analyzer API, Safe Browsing API.
Similar analytics APIs
Compare alternatives →Google Play Integrity API
AnalyticsThe Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.
versionhistory.googleapis.com API
AnalyticsVersion History API - Prod
Doc Converter
AnalyticsThis api converts file formats of OpenXml and OpenOffice documents formats to vector files (e.g., svg)
Perspective Comment Analyzer API
AnalyticsThe Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the "toxicity" of a comment). Users can leverage the "SuggestCommentScore" method to submit corrections to improve Perspective over time. Users can set the "doNotStore" flag to ensure that all submitted comments are automatically deleted after scores are returned.
Safe Browsing API
AnalyticsEnables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.
Web Fonts Developer API
AnalyticsThe Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.
Listed from APIs.guru (CC0).