curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
"size": 50
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic"
payload = {
"query": "{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
"size": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '{"bool": {"must": [{"term": {"industry": "computer software"}}]}}',
size: 50
})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic', 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.aisa.one/apis/v1/people-data-labs/search-company-elastic",
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([
'query' => '{"bool": {"must": [{"term": {"industry": "computer software"}}]}}',
'size' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.aisa.one/apis/v1/people-data-labs/search-company-elastic"
payload := strings.NewReader("{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/people-data-labs/search-company-elastic")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}"
response = http.request(request)
puts response.read_body{
"query": "<string>",
"records": [
{
"affiliated_profiles": [
"<string>"
],
"alternative_domains": [
"<string>"
],
"alternative_names": [
"<string>"
],
"average_employee_tenure": 123,
"average_tenure_by_level": {},
"average_tenure_by_role": {},
"dataset_version": "<string>",
"display_name": "<string>",
"employee_churn_rate": {},
"employee_count": 123,
"employee_count_by_class": {},
"employee_count_by_country": {},
"employee_count_by_month": {},
"employee_count_by_month_by_level": {},
"employee_count_by_month_by_role": {},
"employee_count_by_role": {},
"employee_count_by_sub_role": {},
"employee_growth_rate": {},
"employee_growth_rate_12_month_by_class": {},
"employee_growth_rate_12_month_by_role": {},
"employee_growth_rate_12_month_by_sub_role": {},
"facebook_url": "<string>",
"founded": 123,
"funding_stages": [
"seed"
],
"gross_additions_by_month": {},
"gross_departures_by_month": {},
"headline": "<string>",
"id": "<string>",
"industry": "<string>",
"industry_v2": "<string>",
"inferred_revenue": "<string>",
"last_funding_date": "<string>",
"latest_funding_stage": "seed",
"linkedin_id": "<string>",
"linkedin_slug": "<string>",
"linkedin_url": "<string>",
"location": {
"address_line_2": "<string>",
"continent": "<string>",
"country": "<string>",
"geo": "<string>",
"locality": "<string>",
"metro": "<string>",
"name": "<string>",
"postal_code": "<string>",
"region": "<string>",
"street_address": "<string>"
},
"mic_exchange": "<string>",
"naics": [
{
"industry_group": "<string>",
"naics_code": "<string>",
"naics_industry": "<string>",
"national_industry": "<string>",
"sector": "<string>",
"sub_sector": "<string>"
}
],
"name": "<string>",
"number_funding_rounds": 123,
"profiles": [
"<string>"
],
"recent_exec_departures": [
{
"departed_date": "<string>",
"job_title": "<string>",
"levels": [
"<string>"
],
"new_company": {},
"pdl_id": "<string>",
"roles": [
"<string>"
]
}
],
"recent_exec_hires": [
{
"job_title": "<string>",
"joined_date": "<string>",
"levels": [
"<string>"
],
"pdl_id": "<string>",
"previous_company": {},
"roles": [
"<string>"
]
}
],
"sic": [
{
"industry_group": "<string>",
"industry_sector": "<string>",
"major_group": "<string>",
"sic_code": "<string>"
}
],
"size": "1-10",
"summary": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"top_next_employers": {},
"top_next_employers_12_month": {},
"top_next_employers_by_role": {},
"top_previous_employers": {},
"top_previous_employers_12_month": {},
"top_previous_employers_by_role": {},
"total_funding_raised": 123,
"twitter_url": "<string>",
"type": "public",
"website": "<string>"
}
],
"scroll_token": "<string>",
"total": 123
}Company Search with Elasticsearch
Company Search with Elasticsearch
curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
"size": 50
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic"
payload = {
"query": "{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
"size": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '{"bool": {"must": [{"term": {"industry": "computer software"}}]}}',
size: 50
})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic', 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.aisa.one/apis/v1/people-data-labs/search-company-elastic",
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([
'query' => '{"bool": {"must": [{"term": {"industry": "computer software"}}]}}',
'size' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.aisa.one/apis/v1/people-data-labs/search-company-elastic"
payload := strings.NewReader("{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/people-data-labs/search-company-elastic")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}"
response = http.request(request)
puts response.read_body{
"query": "<string>",
"records": [
{
"affiliated_profiles": [
"<string>"
],
"alternative_domains": [
"<string>"
],
"alternative_names": [
"<string>"
],
"average_employee_tenure": 123,
"average_tenure_by_level": {},
"average_tenure_by_role": {},
"dataset_version": "<string>",
"display_name": "<string>",
"employee_churn_rate": {},
"employee_count": 123,
"employee_count_by_class": {},
"employee_count_by_country": {},
"employee_count_by_month": {},
"employee_count_by_month_by_level": {},
"employee_count_by_month_by_role": {},
"employee_count_by_role": {},
"employee_count_by_sub_role": {},
"employee_growth_rate": {},
"employee_growth_rate_12_month_by_class": {},
"employee_growth_rate_12_month_by_role": {},
"employee_growth_rate_12_month_by_sub_role": {},
"facebook_url": "<string>",
"founded": 123,
"funding_stages": [
"seed"
],
"gross_additions_by_month": {},
"gross_departures_by_month": {},
"headline": "<string>",
"id": "<string>",
"industry": "<string>",
"industry_v2": "<string>",
"inferred_revenue": "<string>",
"last_funding_date": "<string>",
"latest_funding_stage": "seed",
"linkedin_id": "<string>",
"linkedin_slug": "<string>",
"linkedin_url": "<string>",
"location": {
"address_line_2": "<string>",
"continent": "<string>",
"country": "<string>",
"geo": "<string>",
"locality": "<string>",
"metro": "<string>",
"name": "<string>",
"postal_code": "<string>",
"region": "<string>",
"street_address": "<string>"
},
"mic_exchange": "<string>",
"naics": [
{
"industry_group": "<string>",
"naics_code": "<string>",
"naics_industry": "<string>",
"national_industry": "<string>",
"sector": "<string>",
"sub_sector": "<string>"
}
],
"name": "<string>",
"number_funding_rounds": 123,
"profiles": [
"<string>"
],
"recent_exec_departures": [
{
"departed_date": "<string>",
"job_title": "<string>",
"levels": [
"<string>"
],
"new_company": {},
"pdl_id": "<string>",
"roles": [
"<string>"
]
}
],
"recent_exec_hires": [
{
"job_title": "<string>",
"joined_date": "<string>",
"levels": [
"<string>"
],
"pdl_id": "<string>",
"previous_company": {},
"roles": [
"<string>"
]
}
],
"sic": [
{
"industry_group": "<string>",
"industry_sector": "<string>",
"major_group": "<string>",
"sic_code": "<string>"
}
],
"size": "1-10",
"summary": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"top_next_employers": {},
"top_next_employers_12_month": {},
"top_next_employers_by_role": {},
"top_previous_employers": {},
"top_previous_employers_12_month": {},
"top_previous_employers_by_role": {},
"total_funding_raised": 123,
"twitter_url": "<string>",
"type": "public",
"website": "<string>"
}
],
"scroll_token": "<string>",
"total": 123
}请求规范
- 方法与路径: POST /apis/v1/people-data-labs/search-company-elastic
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/people-data-labs/search-company-elastic
{
"operationId": "people-data-labs.search-company-elastic",
"method": "POST",
"path": "/apis/v1/people-data-labs/search-company-elastic",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"pretty": {
"default": false,
"description": "If true, the JSON response will be pretty-printed with human-readable indentation. Defaults to false.",
"examples": [
"true",
"false"
],
"type": "boolean"
},
"query": {
"description": "Elasticsearch DSL query string (JSON object) for searching People Data Labs company profiles.\n\n**Supported query types:** term, terms, match, match_phrase, range, exists, bool (must/should/filter/must_not), wildcard, prefix.\n\n**Common Company Fields:** name, display_name, website, industry, employee_count, founded, size, location.country, location.region, location.locality, location.name, tags, linkedin_url, type, summary.\n\n**Location Searches:** Use nested fields: `location.country`, `location.region`, `location.locality`, `location.name`. Example: `{\"term\": {\"location.country\": \"united states\"}}`.\n\n**Important Restrictions:**\n- Do NOT include `size` or `scroll_token` in this query; use the dedicated request fields.\n- Do NOT use `minimum_should_match` in bool queries.\n\nFor complete field mappings, see https://docs.peopledatalabs.com/docs/company-search-api.",
"examples": [
"{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}",
"{\"range\": {\"employee_count\": {\"gte\": 5000}}}",
"{\"bool\": {\"filter\": [{\"range\": {\"founded\": {\"gte\": 2010}}}, {\"term\": {\"location.country\": \"united states\"}}]}}",
"{\"match\": {\"name\": \"google\"}}"
],
"type": "string"
},
"scroll_token": {
"default": "",
"description": "A token returned from a previous search response, used for paginating through large result sets. Provide this token to retrieve the next batch of `size` records. Leave empty or omit for the first request.",
"examples": [
"627275426f6b656e3432363935383437303232353438373930323030343934383635343734313337",
""
],
"type": "string"
},
"size": {
"description": "The number of matched company records to return. Must be an integer between 1 and 100, inclusive.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"titlecase": {
"default": false,
"description": "If true, an attempt will be made to title-case relevant text fields in the returned company records. Defaults to false.",
"examples": [
"true",
"false"
],
"type": "boolean"
}
},
"required": [
"query",
"size"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.1003 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
Elasticsearch DSL query string (JSON object) for searching People Data Labs company profiles.
Supported query types: term, terms, match, match_phrase, range, exists, bool (must/should/filter/must_not), wildcard, prefix.
Common Company Fields: name, display_name, website, industry, employee_count, founded, size, location.country, location.region, location.locality, location.name, tags, linkedin_url, type, summary.
Location Searches: Use nested fields: location.country, location.region, location.locality, location.name. Example: {"term": {"location.country": "united states"}}.
Important Restrictions:
- Do NOT include
sizeorscroll_tokenin this query; use the dedicated request fields. - Do NOT use
minimum_should_matchin bool queries.
For complete field mappings, see https://docs.peopledatalabs.com/docs/company-search-api.
"{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}]}}"
"{\"range\": {\"employee_count\": {\"gte\": 5000}}}"
"{\"bool\": {\"filter\": [{\"range\": {\"founded\": {\"gte\": 2010}}}, {\"term\": {\"location.country\": \"united states\"}}]}}"
"{\"match\": {\"name\": \"google\"}}"
A token returned from a previous search response, used for paginating through large result sets. Provide this token to retrieve the next batch of size records. Leave empty or omit for the first request.
"627275426f6b656e3432363935383437303232353438373930323030343934383635343734313337"
""