Search Preview
Data type:
Query type:
URL:
Multi-source Company
Elasticsearch DSL
https://api.coresignal.com/cdapi/v2/company_multi_source/search/es_dsl/preview
Overview
Retrieve a limited set of fields from top-matching records in real time, and search suggestion features. Here, Multi-source Company API search /v2/company_multi_source/search/es_dsl/preview endpoint's usage is reviewed.
Request query
See the request example of preview endpoint. Search Preview endpoints accept the same query structure as their corresponding Search endpoints.
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/company_multi_source/search/es_dsl/preview' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "it",
"default_field": "company_name",
"default_operator": "and"
}
}
]
}
}
}'Response structure
Here is an overview of the fields that are retrieved using the Multi-source Company API search preview endpoints.
id
Identification number
Integer
company_name
Company name
String
professional_network_url
The most recent profile Professional network URL
String
website
Company's website
String
unique_domain
Indicates if the domain is unique
Boolean
size_range
Company size category (determined by the number of employees)
String
industry
Company's industry
String
hq_country
Country the company is based in (as parsed by our in-house country parser)
String
company_logo
Base64-encoded image data of the company's logo
String
_score
Elasticsearch score
Float
Refer to the data example here:
Pagination
Example of the request using pagination query parameter page.
Results sorting
Multi-source Company API /v2/company_multi_source/search/es_dsl/preview endpoint supports sorting capabilities, which are the same as found in Multi-source Company API's Elasticsearch DSL topic.
Last updated
Was this helpful?