curl --request POST \
--url https://api.brightdata.com/search/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "linkedin_company",
"mode": "ludicrous",
"query": {
"and": [
{
"text": {
"industry": "software"
}
},
{
"equals": {
"headquarters_country_code": "US"
}
},
{
"range": {
"employees_in_linkedin": {
">=": 50,
"<=": 500
}
}
}
]
},
"offset": 0,
"limit": 10,
"view": {
"fields": [
"name",
"website",
"industry",
"headquarters_country_code",
"employees_in_linkedin",
"founded_year",
"linkedin_followers",
"url"
]
}
}
'{
"req_id": "example_request_id",
"source": "linkedin_company",
"meta": {
"matched": 42,
"coverage_percent": 100,
"offset": 0,
"limit": 10
},
"documents": [
{
"bright_id": "example-company-id",
"data": {
"name": "Example Software Company",
"website": "https://example.com",
"industry": "Software Development",
"headquarters_country_code": "US",
"employees_in_linkedin": 284,
"linkedin_followers": 12500
}
}
]
}{
"error": "view: unknown field(s): not_a_released_field"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "Too many search requests, try again shortly"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}Business Search API: search companies
Search companies with the Business Search API. The endpoint queries linkedin_company in 3 modes and returns up to 100 records per page.
curl --request POST \
--url https://api.brightdata.com/search/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "linkedin_company",
"mode": "ludicrous",
"query": {
"and": [
{
"text": {
"industry": "software"
}
},
{
"equals": {
"headquarters_country_code": "US"
}
},
{
"range": {
"employees_in_linkedin": {
">=": 50,
"<=": 500
}
}
}
]
},
"offset": 0,
"limit": 10,
"view": {
"fields": [
"name",
"website",
"industry",
"headquarters_country_code",
"employees_in_linkedin",
"founded_year",
"linkedin_followers",
"url"
]
}
}
'{
"req_id": "example_request_id",
"source": "linkedin_company",
"meta": {
"matched": 42,
"coverage_percent": 100,
"offset": 0,
"limit": 10
},
"documents": [
{
"bright_id": "example-company-id",
"data": {
"name": "Example Software Company",
"website": "https://example.com",
"industry": "Software Development",
"headquarters_country_code": "US",
"employees_in_linkedin": 284,
"linkedin_followers": 12500
}
}
]
}{
"error": "view: unknown field(s): not_a_released_field"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "Too many search requests, try again shortly"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}{
"error": "view: unknown field(s): not_a_released_field",
"error_code": "invalid_query"
}POST /search/company returns company records that match your conditions.
Related: Company search for worked examples and company field guidance, and Business Search query syntax for the structured query operators.Authorizations
Your Bright Data API key, sent as Authorization: Bearer YOUR_API_KEY. Create one in the Bright Data Control Panel. See Authentication.
Body
How the query is interpreted. ludicrous takes a structured JSON object. instant and smart take a natural-language string.
ludicrous, instant, smart "instant"
A structured object for ludicrous, or a string for instant and smart. Changing mode between ludicrous and a natural-language mode also changes the type of this property.
"US software companies with 50 to 500 employees"
The dataset to search within the category. Defaults to the category's default source: linkedin_company for /search/company and linkedin_people for /search/people.
"linkedin_company"
Which stored fields appear in each result's data object. Accepts id_only, summary, full, or an object with a fields array. Defaults to id_only, which returns identifiers rather than descriptive fields. view does not change the search conditions.
id_only, summary, full How many results to skip. Minimum 0, no maximum.
x >= 00
The requested maximum number of results in this page. Minimum 0, default 10. The maximum depends on the mode: 100 for ludicrous, 100 for instant and 10 for smart. The returned documents array can be shorter than the value you send.
x >= 010
Response
The search ran. documents can be empty when nothing matched.
Was this page helpful?