Search Company Records (POST)
curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/search-company-post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "{\"query\": {\"term\": {\"industry\": \"computer software\"}}}",
"size": 10
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/search-company-post"
payload = {
"query": "{\"query\": {\"term\": {\"industry\": \"computer software\"}}}",
"size": 10
}
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: '{"query": {"term": {"industry": "computer software"}}}', size: 10})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/search-company-post', 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-post",
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' => '{"query": {"term": {"industry": "computer software"}}}',
'size' => 10
]),
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-post"
payload := strings.NewReader("{\n \"query\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\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-post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/search-company-post")
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\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"affiliated_profiles": [
"<string>"
],
"alternative_names": [
"<string>"
],
"employee_count": 123,
"facebook_url": "<string>",
"founded": 123,
"headline": "<string>",
"id": "<string>",
"industry": "<string>",
"linkedin_id": "<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>"
},
"name": "<string>",
"profiles": [
"<string>"
],
"size": "<string>",
"summary": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
}
],
"status": 123,
"scroll_token": "<string>",
"total": 123
}People Data Labs
Search Company Records (POST)
Search Company Records (POST)
POST
https://api.aisa.one
/
apis
/
v1
/
people-data-labs
/
search-company-post
Search Company Records (POST)
curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/search-company-post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "{\"query\": {\"term\": {\"industry\": \"computer software\"}}}",
"size": 10
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/search-company-post"
payload = {
"query": "{\"query\": {\"term\": {\"industry\": \"computer software\"}}}",
"size": 10
}
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: '{"query": {"term": {"industry": "computer software"}}}', size: 10})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/search-company-post', 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-post",
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' => '{"query": {"term": {"industry": "computer software"}}}',
'size' => 10
]),
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-post"
payload := strings.NewReader("{\n \"query\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\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-post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/search-company-post")
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\": \"{\\\"query\\\": {\\\"term\\\": {\\\"industry\\\": \\\"computer software\\\"}}}\",\n \"size\": 10\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"affiliated_profiles": [
"<string>"
],
"alternative_names": [
"<string>"
],
"employee_count": 123,
"facebook_url": "<string>",
"founded": 123,
"headline": "<string>",
"id": "<string>",
"industry": "<string>",
"linkedin_id": "<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>"
},
"name": "<string>",
"profiles": [
"<string>"
],
"size": "<string>",
"summary": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
}
],
"status": 123,
"scroll_token": "<string>",
"total": 123
}请求规范
- 方法与路径: POST /apis/v1/people-data-labs/search-company-post
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/people-data-labs/search-company-post
{
"operationId": "people-data-labs.search-company-post",
"method": "POST",
"path": "/apis/v1/people-data-labs/search-company-post",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"from_offset": {
"description": "Legacy offset for pagination (0-9999), max 10000 records total. Use scroll_token for unlimited pagination.",
"examples": [
0,
100,
500
],
"maximum": 9999,
"minimum": 0,
"type": "integer"
},
"pretty": {
"default": false,
"description": "Human-readable JSON formatting. Default: false",
"type": "boolean"
},
"query": {
"description": "An Elasticsearch (v7.7) DSL query for searching company data. Must be a valid JSON object as a string. Either 'query' or 'sql' is required, but not both.",
"examples": [
"{\"query\": {\"term\": {\"industry\": \"computer software\"}}}",
"{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}, {\"exists\": {\"field\": \"website\"}}]}}"
],
"type": "string"
},
"scroll_token": {
"description": "Pagination token from previous response for unlimited record retrieval. Use this for paginating beyond 10000 records.",
"examples": [
"104$14.278746"
],
"type": "string"
},
"size": {
"description": "Batch size/max records returned. Must be between 1 and 100. Default: 1",
"examples": [
10,
50,
100
],
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"sql": {
"description": "SQL query format: SELECT * FROM company WHERE [condition]. Either 'query' or 'sql' is required, but not both.",
"examples": [
"SELECT * FROM company WHERE industry='computer software' AND website IS NOT NULL",
"SELECT * FROM company WHERE employee_count >= 100 AND location.country='united states'"
],
"type": "string"
},
"titlecase": {
"default": false,
"description": "Titlecase response text. Default: false",
"type": "boolean"
}
},
"required": [
"query",
"size"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.1003 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
An Elasticsearch (v7.7) DSL query for searching company data. Must be a valid JSON object as a string. Either 'query' or 'sql' is required, but not both.
示例:
"{\"query\": {\"term\": {\"industry\": \"computer software\"}}}"
"{\"bool\": {\"must\": [{\"term\": {\"industry\": \"computer software\"}}, {\"exists\": {\"field\": \"website\"}}]}}"