Search Preview
Data type:
Query type:
URLs:
Base Employee
Coresignal's custom filters and Elasticsearch DSL
https://api.coresignal.com/cdapi/v2/employee_base/search/filter/preview https://api.coresignal.com/cdapi/v2/employee_base/search/es_dsl/preview
Overview
Retrieve a limited set of fields from top-matching records in real time, and search suggestion features. Here, Base Employee API search /v2/employee_base/search/filter/preview and /v2/employee_base/search/es_dsl/preview endpoints' usage is reviewed.
Request queries
See the request examples of preview endpoints. Search Preview endpoints accept the same query structure as their corresponding Search endpoints.
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/filter/preview' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"headline": "Data",
"skill": "Front-end"
}'curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/es_dsl/preview' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"query":{
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "John Doe",
"default_field": "full_name",
"default_operator": "and"
}
}
]
}
}
}'Response structure
Here is an overview of the fields that are retrieved using the Base Employee API search preview endpoints.
id
Identification number
Integer
full_name
Employee's full name
String
profile_url
Employee profile URL
String
headline
Profile headline
String
industry
Associated industry
String
location
Employee's location
String
country
Associated country
String
connections_count
Count of profile connections
Integer
follower_count
Count of profile followers
Integer
experience_count
Number of experience records
Integer
company_name
Company name. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
company_url
Company's Professional network URL. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
company_website
Company's website. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
company_industry
Company's industry. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
title
Current job position title. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
experience_location
Full address of the company's headquarters. Data is from experience category.
Must include: “order_in_profile”: 1 AND ”deleted": 0 AND ”is_current”: 1
String
_score
Elasticsearch score
Float
Refer to the data example here:
{
"id": 12345678,
"full_name": "John Doe",
"profile_url": "https://www.professional-network.com/in/john-doe",
"headline": "Data Engineer",
"industry": IT System Data Services,
"location": "Vancouver, British Columbia, Canada",
"country": "Canada",
"connections_count": 285,
"follower_count": 298,
"experience_count": 4,
"company_name": "MineSense Technologies Ltd.",
"company_url": "https://www.professional-network.com/company/minesense-technologies-ltd-",
"company_website": "http://www.minesense.com",
"company_industry": "Metal Ore Mining",
"title": "Data Engineer",
"experience_location": "California, United States",
"_score": 20.12345
}, {
"id": 12345678,
"full_name": "John Doe",
"profile_url": "https://www.professional-network.com/in/john-doe",
"headline": "Data Engineer",
"industry": IT System Data Services,
"location": "Vancouver, British Columbia, Canada",
"country": "Canada",
"connections_count": 285,
"follower_count": 298,
"experience_count": 4,
"company_name": "MineSense Technologies Ltd.",
"company_url": "https://www.professional-network.com/company/minesense-technologies-ltd-",
"company_website": "http://www.minesense.com",
"company_industry": "Metal Ore Mining",
"title": "Data Engineer",
"experience_location": "California, United States",
"_score": 20.12345
},Pagination
Examples of the request using pagination query parameter page.
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/filter/preview?page=3' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"headline": "Data",
"skill": "Front-end"
}'curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/es_dsl/preview?page=5' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"query":{
"query": {
"bool": {
"should": [
{
"query_string": {
"query": "John Doe",
"default_field": "full_name",
"default_operator": "and"
}
}
]
}
}
}'Last updated
Was this helpful?