curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/companies/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"industries": [
"Software Development"
],
"headcounts": [
"51-200"
],
"locations": [
"United States"
],
"limit_by": 50
}
'import requests
url = "https://api.generect.com/api/v1/search/realtime/companies/"
payload = {
"industries": ["Software Development"],
"headcounts": ["51-200"],
"locations": ["United States"],
"limit_by": 50
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
industries: ['Software Development'],
headcounts: ['51-200'],
locations: ['United States'],
limit_by: 50
})
};
fetch('https://api.generect.com/api/v1/search/realtime/companies/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.generect.com/api/v1/search/realtime/companies/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'industries' => [
'Software Development'
],
'headcounts' => [
'51-200'
],
'locations' => [
'United States'
],
'limit_by' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.generect.com/api/v1/search/realtime/companies/"
payload := strings.NewReader("{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.generect.com/api/v1/search/realtime/companies/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/realtime/companies/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"companies": [
{
"linkedin_id": "1035",
"name": "Microsoft",
"domain": "microsoft.com"
}
],
"results_count": 530
},
"meta": {
"amount_charged": 21.2
}
}Search realtime companies
Search fresh companies with advanced filters (revenue, department headcount, growth). Response time 5-60 sec. Billed per result returned.
curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/companies/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"industries": [
"Software Development"
],
"headcounts": [
"51-200"
],
"locations": [
"United States"
],
"limit_by": 50
}
'import requests
url = "https://api.generect.com/api/v1/search/realtime/companies/"
payload = {
"industries": ["Software Development"],
"headcounts": ["51-200"],
"locations": ["United States"],
"limit_by": 50
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
industries: ['Software Development'],
headcounts: ['51-200'],
locations: ['United States'],
limit_by: 50
})
};
fetch('https://api.generect.com/api/v1/search/realtime/companies/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.generect.com/api/v1/search/realtime/companies/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'industries' => [
'Software Development'
],
'headcounts' => [
'51-200'
],
'locations' => [
'United States'
],
'limit_by' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.generect.com/api/v1/search/realtime/companies/"
payload := strings.NewReader("{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.generect.com/api/v1/search/realtime/companies/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/realtime/companies/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"limit_by\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"companies": [
{
"linkedin_id": "1035",
"name": "Microsoft",
"domain": "microsoft.com"
}
],
"results_count": 530
},
"meta": {
"amount_charged": 21.2
}
}Use Case:
Search fresh company data with full realtime filters.Pricing
This is a billable endpoint — you are charged for each result returned. If no results are found, the request is free.Authorizations
Use the required Token prefix. Example: Authorization: Token xxxxxxxxx
Body
Industries of the target companies; a company is included if it matches at least one. Values follow LinkedIn's industry taxonomy. Examples: "Software Development", "Financial Services", "Information Technology".
Industries to exclude.
Controls how the industries filter maps onto LinkedIn's industry taxonomy. By default (false), a selected industry also matches companies in its sub-industries. Set to true to match only the industries you specify and exclude their sub-industries, for finer sub-category targeting — for example, "Manufacturing" without "Chemicals".
Company size, as employee-count ranges; a company is included if it falls into at least one. Allowed values: "1-10", "11-50", "51-200", "201-500", "501-1000", "1001-5000", "5001-10000", "10 000+".
Company headquarters locations — matches across cities, states/regions and countries; a company is included if its HQ matches at least one. Examples: "United States", "San Francisco, California, United States", "Germany".
Locations to exclude.
Company types: "Public Company", "Privately Held", "Non Profit", "Government Agency", "Educational", etc.
Exclude companies by LinkedIn ID or URN.
Exclude companies by domain.
Maximum number of companies to return (1-1600).
Number of companies to skip (0-1599, for pagination).
Fields to apply strict matching on (e.g. "company_locations").
Apply Generect's blocked-domain list, which removes staffing agencies, directories and similar low-signal records that match broad industry filters. Set to false to receive them. On by default on the company search endpoints, in both database and realtime mode; the company-leads endpoints do not apply it. In database search the exclusion happens before results_count, so the count always matches what the pages can deliver; in realtime the records are dropped after retrieval, so a page may hold fewer companies than results_count implies.
Free-text keywords matched across company profiles (name, description, specialties); a company is included if it contains at least one. OR logic, max 10 keywords, up to 40 characters each. Examples: "platform", "marketplace", "developer tools".
Technologies used by the company.
Follower count ranges: "1-50", "51-100", "101-1000", "1001-5000", "5001+".
Search by specific company names or domains.
Recent company events to filter on.
Funding events in past 12 months, Senior leadership changes in last 3 months Filter by growth of a single department (e.g. {"name": "engineering", "min": 5, "max": 50}).
Show child attributes
Show child attributes
Revenue filter with min/max (e.g. {"min": 1000000, "max": 50000000}).
Show child attributes
Show child attributes
Filter by department size (e.g. {"name": "engineering", "min": 10, "max": 100}).
Show child attributes
Show child attributes
Filter by headcount growth percentage (e.g. {"min": 5, "max": 50}).
Show child attributes
Show child attributes
Filter for companies actively hiring on LinkedIn.
Filter by specific LinkedIn company URLs.
Include results_count — how many companies match the filters in total, beyond the page you asked for — in the response. Without it the response carries only the page itself. The companies counterpart of the lead-search flag of the same name, and likewise an estimate rather than an exact total.
Was this page helpful?