Count matching leads
curl --request POST \
--url https://api.getoneprofile.ai/find-leads/count/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companies": {
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"domain": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_id": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_slug": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"first_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"languages": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"last_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"profile_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"school": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"skills": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"work_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
}
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/count/"
payload = {
"companies": {
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"domain": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_id": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_slug": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"first_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"languages": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"last_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"profile_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"school": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"skills": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"work_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
}
}
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({
companies: {
company_type: {exclude: ['<string>'], include: ['<string>']},
domain: {exclude: ['<string>'], include: ['<string>']},
headcount: {gte: 1, lte: 1},
headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
identifier: {exclude: ['<string>'], include: ['<string>']},
industry: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
linkedin_id: {exclude: ['<string>'], include: ['<string>']},
linkedin_slug: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
name: {exclude: ['<string>'], include: ['<string>']},
revenue: {gte: 1, lte: 1}
},
people: {
company_headcount: {gte: 1, lte: 1},
company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
company_identifier: {exclude: ['<string>'], include: ['<string>']},
company_industry: {exclude: ['<string>'], include: ['<string>']},
company_keyword: {exclude: ['<string>'], include: ['<string>']},
company_location: {exclude: ['<string>'], include: ['<string>']},
company_name: {exclude: ['<string>'], include: ['<string>']},
company_revenue: {gte: 1, lte: 1},
company_type: {exclude: ['<string>'], include: ['<string>']},
company_website: {exclude: ['<string>'], include: ['<string>']},
first_name: {exclude: ['<string>'], include: ['<string>']},
job_title: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
languages: {exclude: ['<string>'], include: ['<string>']},
last_name: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
past_company_headcount: {gte: 1, lte: 1},
past_company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
past_company_identifier: {exclude: ['<string>'], include: ['<string>']},
past_company_industry: {exclude: ['<string>'], include: ['<string>']},
past_company_keyword: {exclude: ['<string>'], include: ['<string>']},
past_company_location: {exclude: ['<string>'], include: ['<string>']},
past_company_name: {exclude: ['<string>'], include: ['<string>']},
past_company_revenue: {gte: 1, lte: 1},
past_company_type: {exclude: ['<string>'], include: ['<string>']},
past_company_website: {exclude: ['<string>'], include: ['<string>']},
past_job_title: {exclude: ['<string>'], include: ['<string>']},
profile_location: {exclude: ['<string>'], include: ['<string>']},
school: {exclude: ['<string>'], include: ['<string>']},
skills: {exclude: ['<string>'], include: ['<string>']},
work_location: {exclude: ['<string>'], include: ['<string>']},
years_in_current_company: {gte: 1, lte: 1},
years_of_experience: {gte: 1, lte: 1}
}
})
};
fetch('https://api.getoneprofile.ai/find-leads/count/', 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.getoneprofile.ai/find-leads/count/",
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([
'companies' => [
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'domain' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'headcount' => [
'gte' => 1,
'lte' => 1
],
'headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_id' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_slug' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'revenue' => [
'gte' => 1,
'lte' => 1
]
],
'people' => [
'company_headcount' => [
'gte' => 1,
'lte' => 1
],
'company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_revenue' => [
'gte' => 1,
'lte' => 1
],
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'first_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'languages' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'last_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_headcount' => [
'gte' => 1,
'lte' => 1
],
'past_company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'past_company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_revenue' => [
'gte' => 1,
'lte' => 1
],
'past_company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'profile_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'school' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'skills' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'work_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'years_in_current_company' => [
'gte' => 1,
'lte' => 1
],
'years_of_experience' => [
'gte' => 1,
'lte' => 1
]
]
]),
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.getoneprofile.ai/find-leads/count/"
payload := strings.NewReader("{\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\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.getoneprofile.ai/find-leads/count/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/count/")
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 \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"max_rows_per_search": 123,
"total": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}find-leads
Count matching leads
Count the leads matching a set of filters. Free — no credits are consumed — so it is safe to call as filters change.
POST
/
find-leads
/
count
/
Count matching leads
curl --request POST \
--url https://api.getoneprofile.ai/find-leads/count/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companies": {
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"domain": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_id": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"linkedin_slug": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"first_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"languages": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"last_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_industry": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_keyword": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_name": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_company_website": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"past_job_title": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"profile_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"school": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"skills": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"work_location": {
"exclude": [
"<string>"
],
"include": [
"<string>"
]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
}
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/count/"
payload = {
"companies": {
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"domain": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"headcount": {
"gte": 1,
"lte": 1
},
"headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_id": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"linkedin_slug": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"revenue": {
"gte": 1,
"lte": 1
}
},
"people": {
"company_headcount": {
"gte": 1,
"lte": 1
},
"company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_revenue": {
"gte": 1,
"lte": 1
},
"company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"first_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"languages": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"last_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_headcount": {
"gte": 1,
"lte": 1
},
"past_company_headcount_growth": {
"max_percent": 4950,
"min_percent": 4950,
"timespan": "12months"
},
"past_company_identifier": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_industry": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_keyword": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_name": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_revenue": {
"gte": 1,
"lte": 1
},
"past_company_type": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_company_website": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"past_job_title": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"profile_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"school": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"skills": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"work_location": {
"exclude": ["<string>"],
"include": ["<string>"]
},
"years_in_current_company": {
"gte": 1,
"lte": 1
},
"years_of_experience": {
"gte": 1,
"lte": 1
}
}
}
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({
companies: {
company_type: {exclude: ['<string>'], include: ['<string>']},
domain: {exclude: ['<string>'], include: ['<string>']},
headcount: {gte: 1, lte: 1},
headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
identifier: {exclude: ['<string>'], include: ['<string>']},
industry: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
linkedin_id: {exclude: ['<string>'], include: ['<string>']},
linkedin_slug: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
name: {exclude: ['<string>'], include: ['<string>']},
revenue: {gte: 1, lte: 1}
},
people: {
company_headcount: {gte: 1, lte: 1},
company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
company_identifier: {exclude: ['<string>'], include: ['<string>']},
company_industry: {exclude: ['<string>'], include: ['<string>']},
company_keyword: {exclude: ['<string>'], include: ['<string>']},
company_location: {exclude: ['<string>'], include: ['<string>']},
company_name: {exclude: ['<string>'], include: ['<string>']},
company_revenue: {gte: 1, lte: 1},
company_type: {exclude: ['<string>'], include: ['<string>']},
company_website: {exclude: ['<string>'], include: ['<string>']},
first_name: {exclude: ['<string>'], include: ['<string>']},
job_title: {exclude: ['<string>'], include: ['<string>']},
keyword: {exclude: ['<string>'], include: ['<string>']},
languages: {exclude: ['<string>'], include: ['<string>']},
last_name: {exclude: ['<string>'], include: ['<string>']},
location: {exclude: ['<string>'], include: ['<string>']},
past_company_headcount: {gte: 1, lte: 1},
past_company_headcount_growth: {max_percent: 4950, min_percent: 4950, timespan: '12months'},
past_company_identifier: {exclude: ['<string>'], include: ['<string>']},
past_company_industry: {exclude: ['<string>'], include: ['<string>']},
past_company_keyword: {exclude: ['<string>'], include: ['<string>']},
past_company_location: {exclude: ['<string>'], include: ['<string>']},
past_company_name: {exclude: ['<string>'], include: ['<string>']},
past_company_revenue: {gte: 1, lte: 1},
past_company_type: {exclude: ['<string>'], include: ['<string>']},
past_company_website: {exclude: ['<string>'], include: ['<string>']},
past_job_title: {exclude: ['<string>'], include: ['<string>']},
profile_location: {exclude: ['<string>'], include: ['<string>']},
school: {exclude: ['<string>'], include: ['<string>']},
skills: {exclude: ['<string>'], include: ['<string>']},
work_location: {exclude: ['<string>'], include: ['<string>']},
years_in_current_company: {gte: 1, lte: 1},
years_of_experience: {gte: 1, lte: 1}
}
})
};
fetch('https://api.getoneprofile.ai/find-leads/count/', 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.getoneprofile.ai/find-leads/count/",
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([
'companies' => [
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'domain' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'headcount' => [
'gte' => 1,
'lte' => 1
],
'headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_id' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'linkedin_slug' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'revenue' => [
'gte' => 1,
'lte' => 1
]
],
'people' => [
'company_headcount' => [
'gte' => 1,
'lte' => 1
],
'company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_revenue' => [
'gte' => 1,
'lte' => 1
],
'company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'first_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'languages' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'last_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_headcount' => [
'gte' => 1,
'lte' => 1
],
'past_company_headcount_growth' => [
'max_percent' => 4950,
'min_percent' => 4950,
'timespan' => '12months'
],
'past_company_identifier' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_industry' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_keyword' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_name' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_revenue' => [
'gte' => 1,
'lte' => 1
],
'past_company_type' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_company_website' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'past_job_title' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'profile_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'school' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'skills' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'work_location' => [
'exclude' => [
'<string>'
],
'include' => [
'<string>'
]
],
'years_in_current_company' => [
'gte' => 1,
'lte' => 1
],
'years_of_experience' => [
'gte' => 1,
'lte' => 1
]
]
]),
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.getoneprofile.ai/find-leads/count/"
payload := strings.NewReader("{\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\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.getoneprofile.ai/find-leads/count/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/count/")
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 \"companies\": {\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"domain\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_id\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"linkedin_slug\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"revenue\": {\n \"gte\": 1,\n \"lte\": 1\n }\n },\n \"people\": {\n \"company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"first_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"languages\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"last_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_headcount\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_headcount_growth\": {\n \"max_percent\": 4950,\n \"min_percent\": 4950,\n \"timespan\": \"12months\"\n },\n \"past_company_identifier\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_industry\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_keyword\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_name\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_revenue\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"past_company_type\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_company_website\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"past_job_title\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"profile_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"school\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"skills\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"work_location\": {\n \"exclude\": [\n \"<string>\"\n ],\n \"include\": [\n \"<string>\"\n ]\n },\n \"years_in_current_company\": {\n \"gte\": 1,\n \"lte\": 1\n },\n \"years_of_experience\": {\n \"gte\": 1,\n \"lte\": 1\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"max_rows_per_search": 123,
"total": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
HTTPBearerAPIKeyHeader
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
A search request.
Both query shapes are accepted on every request and the record type picks which one is read, so the client can keep a draft of each while the user toggles between people and companies without losing what they typed.
Which side of the lead database a search runs against.
Available options:
people, companies Filters for a company search.
Show child attributes
Show child attributes
Filters for a people search.
Show child attributes
Show child attributes
Was this page helpful?