Skip to main content

Search

Overview

Use API to carry out search queries through different scopes.

Returns search query results.

GET /search/search

Endpoint URL

https://www.cotalker.com/api/v3/search/search

Headers

HeadersDescriptionRequiredValues
AuthorizationSends your access token to make an API request.
Click here to see how to obtain an access token.
RequiredBearer $ACCESS_TOKEN

Query Parameters

ParameterDescriptionTypeRequiredNotes
searchIndicates the keywords to search for in the query.stringRequired
enginesAn array of objects containing search engine parameters. The array follows the Search Engine Model.Search Engine Model[ ]
Must be encoded in Base64 format.
RequiredTo encode the array, you can use a tool like Base64 Decode and Encode.

Request Sample

The request sample below returns documents and users with the word "lorem".

curl --location --request GET 'https://www.cotalker.com/api/v3/search/search?search=lorem&engines=WwogICAgIHsKICAgICAgICAgICAgICAibmFtZSI6ICJ1c2VycyIsCiAgICAgICAgICAgICAgICJvcHRpb25zIjogewogICAgICAgICAgICAgICAgICJvcmRlckJ5IjogImFzYyIsCiAgICAgICAgICAgICAgICAgICJsaW1pdCI6IDEwMAogICAgICAgICAgICB9CiAgICB9Cl0=' \
--header 'Authorization: Bearer $ACCESS_TOKEN'

Response Sample

Responses follow the Search Category Results Model.