Company API
Request Examples
Elasticsearch
6min
Elasticsearch endpoint URL: /v1/professional_network/company/search/es_dsl.
Unsure how to write a search request? This article contains several request examples you can refer to.
All personal/company information mentioned within this context is entirely fictional and is solely intended for illustrative purposes.
First example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "should": [
10 {
11 "term": {
12 "website": "http://it-company.com"
13 }
14 },
15 {
16 "term": {
17 "website": "https://it-company.com"
18 }
19 },
20 {
21 "wildcard": {
22 "website": {
23 "value": "*.it-company.com"
24 }
25 }
26 }
27 ],
28 "must": [
29 {
30 "query_string": {
31 "query": "IT Company",
32 "default_field": "name",
33 "default_operator": "and"
34 }
35 }
36 ],
37 "minimum_should_match": 1
38 }
39 }
40}'
Second example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query":{
8 "bool":{
9 "must":[
10 {
11 "query_string":{
12 "query":"2023",
13 "default_field":"founded",
14 "default_operator":"and"
15 }
16 }
17 ]
18 }
19 }
20}'
Note: Use one of the following funding round titles as input.
Possible input values
1Seed
2Pre seed
3Series A
4Grant
5Non equity assistance
6Private equity
7Series unknown
8Post IPO equity
9Convertible role
10Series E
11Series B
12Equity crowdfunding
13Secondary market
14Series C
15Undisclosed
16Debt financing
17Angel
18Corporate round
19Series D
20Post IPO Debt
21Series G
22Initial coin offering
23Post IPO secondary
24Product crowdfunding
25Series F
26Series H
27Series I
28Series J
29Serie B
Third example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "must": [
10 {
11 "nested": {
12 "path": "company_funding_rounds_collection",
13 "query": {
14 "bool": {
15 "must": [
16 {
17 "query_string": {
18 "query": "Seed",
19 "default_field": "company_funding_rounds_collection.last_round_type",
20 "default_operator": "and"
21 }
22 },
23 {
24 "range": {
25 "company_funding_rounds_collection.last_round_date": {
26 "gte": "1001"
27 }
28 }
29 }
30 ]
31 }
32 }
33 }
34 }
35 ]
36 }
37 }
38}'
Fourth example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "must": [
10 {
11 "nested": {
12 "path": "company_funding_rounds_collection",
13 "query": {
14 "bool": {
15 "must": [
16 {
17 "range": {
18 "company_funding_rounds_collection.last_round_date": {
19 "gt": "2018-01-01",
20 "lt": "2023-01-01"
21 }
22 }
23 }
24 ]
25 }
26 }
27 }
28 },
29 {
30 "nested": {
31 "path": "company_funding_rounds_collection",
32 "query": {
33 "bool": {
34 "must": [
35 {
36 "query_string": {
37 "query": "*",
38 "default_field": "company_funding_rounds_collection.last_round_money_raised",
39 "default_operator": "and"
40 }
41 }
42 ]
43 }
44 }
45 }
46 }
47 ]
48 }
49 }
50}'
Fifth example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "should": [
10 {
11 "query_string": {
12 "query": "it",
13 "default_field": "name",
14 "default_operator": "and"
15 }
16 },
17 {
18 "wildcard": {
19 "website": {
20 "value": "*it.com"
21 }
22 }
23 }
24 ]
25 }
26 }
27}'
Sixth example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "must": [
10 {
11 "query_string": {
12 "query": "2023",
13 "default_field": "founded",
14 "default_operator": "AND"
15 }
16 },
17 {
18 "query_string": {
19 "query": "United States",
20 "default_field": "headquarters_country_parsed",
21 "default_operator": "AND"
22 }
23 },
24 {
25 "query_string": {
26 "query": "Software Development",
27 "default_field": "industry",
28 "default_operator": "AND"
29 }
30 }
31 ]
32 }
33 }
34}'
Seventh example
1curl -X 'POST' \
2'https://api.coresignal.com/cdapi/v1/professional_network/company/search/es_dsl' \
3 -H 'accept: application/json' \
4 -H 'Authorization: Bearer {JWT}' \
5 -H 'Content-Type: application/json' \
6 -d '{
7 "query": {
8 "bool": {
9 "must": [
10 {
11 "query_string": {
12 "query": "(3D printing) OR (3D printing service) OR (Lead generation)",
13 "default_field": "description",
14 "default_operator": "and"
15 }
16 }
17 ]
18 }
19 }
20}'