curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "resume",
"query": "{\"bool\": {\"must\": [{\"term\": {\"job_company_industry\": \"computer software\"}}]}}",
"size": 50
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic"
payload = {
"dataset": "resume",
"query": "{\"bool\": {\"must\": [{\"term\": {\"job_company_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({
dataset: 'resume',
query: '{"bool": {"must": [{"term": {"job_company_industry": "computer software"}}]}}',
size: 50
})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/people-search-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/people-search-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([
'dataset' => 'resume',
'query' => '{"bool": {"must": [{"term": {"job_company_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/people-search-elastic"
payload := strings.NewReader("{\n \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_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/people-search-elastic")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/people-search-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 \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}"
response = http.request(request)
puts response.read_body{
"query": "<string>",
"records": [
{
"birth_date": true,
"birth_year": true,
"countries": [
"<string>"
],
"dataset_version": "<string>",
"education": [
{
"degrees": [
"<string>"
],
"end_date": "<string>",
"gpa": "<string>",
"majors": [
"<string>"
],
"minors": [
"<string>"
],
"school": {
"domain": "<string>",
"facebook_url": "<string>",
"id": "<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>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
},
"start_date": "<string>"
}
],
"emails": true,
"experience": [
{
"company": {
"facebook_url": "<string>",
"founded": 123,
"id": "<string>",
"industry": "<string>",
"industry_v2": "<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>",
"size": "<string>",
"ticker": "<string>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
},
"end_date": "<string>",
"is_primary": true,
"location_names": [
"<string>"
],
"start_date": "<string>",
"title": {
"class": "<string>",
"levels": [
"<string>"
],
"name": "<string>",
"role": "<string>",
"sub_role": "<string>"
}
}
],
"facebook_id": "<string>",
"facebook_url": "<string>",
"facebook_username": "<string>",
"first_name": "<string>",
"full_name": "<string>",
"github_url": "<string>",
"github_username": "<string>",
"id": "<string>",
"industry": "<string>",
"interests": [
"<string>"
],
"job_company_facebook_url": "<string>",
"job_company_founded": 123,
"job_company_id": "<string>",
"job_company_industry": "<string>",
"job_company_industry_v2": "<string>",
"job_company_linkedin_id": "<string>",
"job_company_linkedin_url": "<string>",
"job_company_location_address_line_2": "<string>",
"job_company_location_continent": "<string>",
"job_company_location_country": "<string>",
"job_company_location_geo": "<string>",
"job_company_location_locality": "<string>",
"job_company_location_metro": "<string>",
"job_company_location_name": "<string>",
"job_company_location_postal_code": "<string>",
"job_company_location_region": "<string>",
"job_company_location_street_address": "<string>",
"job_company_name": "<string>",
"job_company_size": "<string>",
"job_company_twitter_url": "<string>",
"job_company_website": "<string>",
"job_last_changed": "<string>",
"job_last_verified": "<string>",
"job_start_date": "<string>",
"job_title": "<string>",
"job_title_class": "<string>",
"job_title_levels": [
"<string>"
],
"job_title_role": "<string>",
"job_title_sub_role": "<string>",
"last_initial": "<string>",
"last_name": "<string>",
"linkedin_id": "<string>",
"linkedin_url": "<string>",
"linkedin_username": "<string>",
"location_address_line_2": "<string>",
"location_continent": "<string>",
"location_country": "<string>",
"location_geo": true,
"location_last_updated": "<string>",
"location_locality": true,
"location_metro": true,
"location_name": true,
"location_names": true,
"location_postal_code": true,
"location_region": true,
"location_street_address": true,
"middle_initial": "<string>",
"middle_name": "<string>",
"mobile_phone": true,
"personal_emails": true,
"phone_numbers": true,
"profiles": [
{
"first_seen": "<string>",
"id": "<string>",
"last_seen": "<string>",
"network": "<string>",
"num_sources": 123,
"url": "<string>",
"username": "<string>"
}
],
"recommended_personal_email": true,
"regions": true,
"sex": "<string>",
"skills": [
"<string>"
],
"street_addresses": [
{}
],
"twitter_url": "<string>",
"twitter_username": "<string>",
"work_email": true
}
],
"scroll_token": "<string>",
"total": 123,
"composio_execution_message": "<string>"
}People Search with Elasticsearch
People Search with Elasticsearch
curl --request POST \
--url https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "resume",
"query": "{\"bool\": {\"must\": [{\"term\": {\"job_company_industry\": \"computer software\"}}]}}",
"size": 50
}
'import requests
url = "https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic"
payload = {
"dataset": "resume",
"query": "{\"bool\": {\"must\": [{\"term\": {\"job_company_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({
dataset: 'resume',
query: '{"bool": {"must": [{"term": {"job_company_industry": "computer software"}}]}}',
size: 50
})
};
fetch('https://api.aisa.one/apis/v1/people-data-labs/people-search-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/people-search-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([
'dataset' => 'resume',
'query' => '{"bool": {"must": [{"term": {"job_company_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/people-search-elastic"
payload := strings.NewReader("{\n \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_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/people-search-elastic")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/people-data-labs/people-search-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 \"dataset\": \"resume\",\n \"query\": \"{\\\"bool\\\": {\\\"must\\\": [{\\\"term\\\": {\\\"job_company_industry\\\": \\\"computer software\\\"}}]}}\",\n \"size\": 50\n}"
response = http.request(request)
puts response.read_body{
"query": "<string>",
"records": [
{
"birth_date": true,
"birth_year": true,
"countries": [
"<string>"
],
"dataset_version": "<string>",
"education": [
{
"degrees": [
"<string>"
],
"end_date": "<string>",
"gpa": "<string>",
"majors": [
"<string>"
],
"minors": [
"<string>"
],
"school": {
"domain": "<string>",
"facebook_url": "<string>",
"id": "<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>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
},
"start_date": "<string>"
}
],
"emails": true,
"experience": [
{
"company": {
"facebook_url": "<string>",
"founded": 123,
"id": "<string>",
"industry": "<string>",
"industry_v2": "<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>",
"size": "<string>",
"ticker": "<string>",
"twitter_url": "<string>",
"type": "<string>",
"website": "<string>"
},
"end_date": "<string>",
"is_primary": true,
"location_names": [
"<string>"
],
"start_date": "<string>",
"title": {
"class": "<string>",
"levels": [
"<string>"
],
"name": "<string>",
"role": "<string>",
"sub_role": "<string>"
}
}
],
"facebook_id": "<string>",
"facebook_url": "<string>",
"facebook_username": "<string>",
"first_name": "<string>",
"full_name": "<string>",
"github_url": "<string>",
"github_username": "<string>",
"id": "<string>",
"industry": "<string>",
"interests": [
"<string>"
],
"job_company_facebook_url": "<string>",
"job_company_founded": 123,
"job_company_id": "<string>",
"job_company_industry": "<string>",
"job_company_industry_v2": "<string>",
"job_company_linkedin_id": "<string>",
"job_company_linkedin_url": "<string>",
"job_company_location_address_line_2": "<string>",
"job_company_location_continent": "<string>",
"job_company_location_country": "<string>",
"job_company_location_geo": "<string>",
"job_company_location_locality": "<string>",
"job_company_location_metro": "<string>",
"job_company_location_name": "<string>",
"job_company_location_postal_code": "<string>",
"job_company_location_region": "<string>",
"job_company_location_street_address": "<string>",
"job_company_name": "<string>",
"job_company_size": "<string>",
"job_company_twitter_url": "<string>",
"job_company_website": "<string>",
"job_last_changed": "<string>",
"job_last_verified": "<string>",
"job_start_date": "<string>",
"job_title": "<string>",
"job_title_class": "<string>",
"job_title_levels": [
"<string>"
],
"job_title_role": "<string>",
"job_title_sub_role": "<string>",
"last_initial": "<string>",
"last_name": "<string>",
"linkedin_id": "<string>",
"linkedin_url": "<string>",
"linkedin_username": "<string>",
"location_address_line_2": "<string>",
"location_continent": "<string>",
"location_country": "<string>",
"location_geo": true,
"location_last_updated": "<string>",
"location_locality": true,
"location_metro": true,
"location_name": true,
"location_names": true,
"location_postal_code": true,
"location_region": true,
"location_street_address": true,
"middle_initial": "<string>",
"middle_name": "<string>",
"mobile_phone": true,
"personal_emails": true,
"phone_numbers": true,
"profiles": [
{
"first_seen": "<string>",
"id": "<string>",
"last_seen": "<string>",
"network": "<string>",
"num_sources": 123,
"url": "<string>",
"username": "<string>"
}
],
"recommended_personal_email": true,
"regions": true,
"sex": "<string>",
"skills": [
"<string>"
],
"street_addresses": [
{}
],
"twitter_url": "<string>",
"twitter_username": "<string>",
"work_email": true
}
],
"scroll_token": "<string>",
"total": 123,
"composio_execution_message": "<string>"
}请求规范
- 方法与路径: POST /apis/v1/people-data-labs/people-search-elastic
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/people-data-labs/people-search-elastic
{
"operationId": "people-data-labs.people-search-elastic",
"method": "POST",
"path": "/apis/v1/people-data-labs/people-search-elastic",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"dataset": {
"description": "Specifies the dataset category to search against, filtering results to profiles that have the specified type of data available. Allowed values are: 'resume', 'email', 'phone', 'mobile_phone', 'street_address', 'consumer_social', 'developer', 'all'. Note: Use 'email' here to filter for profiles with email addresses available, rather than querying 'email' as a field in the query parameter.",
"enum": [
"resume"
],
"type": "string"
},
"pretty": {
"default": false,
"description": "If true, formats the JSON response with human-readable indentation. Defaults to false.",
"examples": [
true,
false
],
"type": "boolean"
},
"query": {
"description": "Elasticsearch DSL query string (JSON object) for searching PDL person profiles. Provide just the DSL body (e.g., '{\"bool\": {...}}') without an outer 'query' wrapper.\n\nSupported query types: term, terms, match, match_phrase, prefix, wildcard, range, exists, bool (must/should/filter/must_not).\n\nALL field names MUST use snake_case, NOT camelCase.\n\nValid queryable fields include:\n- Name: full_name, first_name, last_name, middle_name\n- Job: job_title, job_title_role, job_title_class, job_company_name, job_company_industry, job_company_size, job_company_website, job_company_location_*\n- Location (NOT 'location' alone): location_country, location_region, location_locality, location_metro, location_geo\n- Social: linkedin_url, linkedin_username, linkedin_id, facebook_url, facebook_username, twitter_url, twitter_username, github_url, github_username\n- Nested profiles: profiles.network, profiles.url, profiles.username, profiles.id\n- Other: industry, skills, interests, countries, sex, work_email, personal_emails\n\nNOT queryable as fields (use 'dataset' parameter instead): email, phone.\n'experience_level' is not valid — use 'job_title_levels'. 'job_company_domain' is not valid — use 'job_company_website'. 'minimum_should_match' is not supported by PDL's API.\n\nFull field reference: https://docs.peopledatalabs.com/docs/fields-person",
"examples": [
"{\"bool\": {\"must\": [{\"term\": {\"job_company_industry\": \"computer software\"}}]}}",
"{\"bool\": {\"must\": [{\"term\": {\"job_title_role\": \"engineer\"}}, {\"term\": {\"location_country\": \"united states\"}}]}}",
"{\"bool\": {\"should\": [{\"match\": {\"full_name\": \"john\"}}, {\"match\": {\"first_name\": \"john\"}}]}}"
],
"type": "string"
},
"scroll_token": {
"default": "",
"description": "A token returned in a previous search response. Provide this token to retrieve the next page of results. Omit or pass an empty string for the first request.",
"examples": [
"",
"627445704a7f000001000000"
],
"type": "string"
},
"size": {
"description": "The number of matched person records to return. Must be an integer between 1 and 100, inclusive.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"titlecase": {
"default": false,
"description": "If true, titlecases the person records in the response. Defaults to false.",
"examples": [
true,
false
],
"type": "boolean"
}
},
"required": [
"dataset",
"query",
"size"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.2803 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
Specifies the dataset category to search against, filtering results to profiles that have the specified type of data available. Allowed values are: 'resume', 'email', 'phone', 'mobile_phone', 'street_address', 'consumer_social', 'developer', 'all'. Note: Use 'email' here to filter for profiles with email addresses available, rather than querying 'email' as a field in the query parameter.
resume Elasticsearch DSL query string (JSON object) for searching PDL person profiles. Provide just the DSL body (e.g., '{"bool": {...}}') without an outer 'query' wrapper.
Supported query types: term, terms, match, match_phrase, prefix, wildcard, range, exists, bool (must/should/filter/must_not).
ALL field names MUST use snake_case, NOT camelCase.
Valid queryable fields include:
- Name: full_name, first_name, last_name, middle_name
- Job: job_title, job_title_role, job_title_class, job_company_name, job_company_industry, job_company_size, job_company_website, job_company_location_*
- Location (NOT 'location' alone): location_country, location_region, location_locality, location_metro, location_geo
- Social: linkedin_url, linkedin_username, linkedin_id, facebook_url, facebook_username, twitter_url, twitter_username, github_url, github_username
- Nested profiles: profiles.network, profiles.url, profiles.username, profiles.id
- Other: industry, skills, interests, countries, sex, work_email, personal_emails
NOT queryable as fields (use 'dataset' parameter instead): email, phone. 'experience_level' is not valid — use 'job_title_levels'. 'job_company_domain' is not valid — use 'job_company_website'. 'minimum_should_match' is not supported by PDL's API.
Full field reference: https://docs.peopledatalabs.com/docs/fields-person
"{\"bool\": {\"must\": [{\"term\": {\"job_company_industry\": \"computer software\"}}]}}"
"{\"bool\": {\"must\": [{\"term\": {\"job_title_role\": \"engineer\"}}, {\"term\": {\"location_country\": \"united states\"}}]}}"
"{\"bool\": {\"should\": [{\"match\": {\"full_name\": \"john\"}}, {\"match\": {\"first_name\": \"john\"}}]}}"