curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/company/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"size": 1,
"sql": "SELECT * FROM company WHERE industry = 'computer software'"
}
EOFimport requests
url = "https://api.aisa.one/apis/v1/people-data-labs/company/search"
payload = {
"size": 1,
"sql": "SELECT * FROM company WHERE industry = 'computer software'"
}
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({size: 1, sql: 'SELECT * FROM company WHERE industry = \'computer software\''})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/company/search', 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/company/search",
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([
'size' => 1,
'sql' => 'SELECT * FROM company WHERE industry = \'computer software\''
]),
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/company/search"
payload := strings.NewReader("{\n \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\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/company/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/company/search")
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 \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"employee_count": 120,
"id": "example-company",
"industry": "computer software",
"location": {
"country": "united states"
},
"name": "Example Company",
"website": "example.com"
}
],
"scroll_token": "example-scroll-token",
"status": 200,
"total": 1
}Company search
Use to find companies by attribute - industry, headcount, funding stage, location - rather than to look one up you can already name. Smaller pages reduce payload size.
curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/company/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"size": 1,
"sql": "SELECT * FROM company WHERE industry = 'computer software'"
}
EOFimport requests
url = "https://api.aisa.one/apis/v1/people-data-labs/company/search"
payload = {
"size": 1,
"sql": "SELECT * FROM company WHERE industry = 'computer software'"
}
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({size: 1, sql: 'SELECT * FROM company WHERE industry = \'computer software\''})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/company/search', 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/company/search",
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([
'size' => 1,
'sql' => 'SELECT * FROM company WHERE industry = \'computer software\''
]),
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/company/search"
payload := strings.NewReader("{\n \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\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/company/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/company/search")
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 \"size\": 1,\n \"sql\": \"SELECT * FROM company WHERE industry = 'computer software'\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"employee_count": 120,
"id": "example-company",
"industry": "computer software",
"location": {
"country": "united states"
},
"name": "Example Company",
"website": "example.com"
}
],
"scroll_token": "example-scroll-token",
"status": 200,
"total": 1
}请求规范
- 方法与路径: POST /apis/v1/people-data-labs/company/search
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/people-data-labs/company/search
{
"operationId": "people-data-labs.company.search",
"method": "POST",
"path": "/apis/v1/people-data-labs/company/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"size": 1,
"sql": "SELECT * FROM company WHERE industry = 'computer software'"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"query": {}
},
"required": [
"query"
]
},
{
"properties": {
"sql": {}
},
"required": [
"sql"
]
}
]
}
],
"properties": {
"query": {
"additionalProperties": true,
"description": "Elasticsearch 7.7 query object over the company schema. Only term, terms, exists, bool, match, range, match_phrase, wildcard, prefix and match_all are accepted. Any array inside it is capped at 100 elements - a tenth of what the person endpoints allow, so a filter list carried over from there will fail. Send this or sql, never both.",
"type": "object"
},
"scroll_token": {
"description": "The scroll_token from the previous response, replayed with the identical query, for the next page. A 404 while scrolling means the results are exhausted, not that the query broke.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"size": {
"description": "Request 1-2 companies per call. callers must use size 1 or 2.\n\nProvider reference: minimum 1; maximum 100; default 1.",
"maximum": 2,
"minimum": 1,
"type": "integer"
},
"sql": {
"description": "`SELECT * FROM company WHERE ...`. Column selection and LIMIT are ignored, and at most 20 LIKE '%...%' terms are allowed. Send this or query, never both.",
"type": "string"
},
"titlecase": {
"default": false,
"description": "Return titlecased values. Responses are lowercase otherwise, which matters when the output is shown to a person rather than matched on.\n\nProvider reference: default false.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"size"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
- Option 1
- Option 2
Elasticsearch 7.7 query object over the company schema. Only term, terms, exists, bool, match, range, match_phrase, wildcard, prefix and match_all are accepted. Any array inside it is capped at 100 elements - a tenth of what the person endpoints allow, so a filter list carried over from there will fail. Send this or sql, never both.
响应
Full company records under data (only representative fields are listed here), sorted by profile completeness, with total and scroll_token in the envelope. A query matching nothing is a 200 with total 0, not a 404 - read total, never the status code.
The response contains the tool result directly.
The provider identifies data as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
id | string | PDL company id, and the pdl_id every other company capability takes. |
name | string | Canonical name. |
website | string | Primary domain. |
industry | string | Industry. |
size | string | Headcount band. |
employee_count | number | Headcount. |
location | object | Headquarters, with locality, region, country, metro, street_address and postal_code under it. |
total_funding_raised | number | Total funding raised. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.