Get how many records a search type reaches
curl --request GET \
--url https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/', 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/leads/record-types/{record_type}/coverage/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"record_type": "people",
"total": 123,
"updated_last_30_days": 123,
"updated_last_90_days": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"error_code": "<string>",
"filter_errors": [
{
"filter": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"retryable": true
}{
"detail": "<string>"
}find-leads
Get how many records a search type reaches
How many people (people) or companies (companies) the search can find, and how many of them were updated in the last 30 and 90 days. Free to call, read afresh twice a day. Every other search type answers 404: it has no fixed set of records to count.
GET
/
leads
/
record-types
/
{record_type}
/
coverage
/
Get how many records a search type reaches
curl --request GET \
--url https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/', 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/leads/record-types/{record_type}/coverage/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/leads/record-types/{record_type}/coverage/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"record_type": "people",
"total": 123,
"updated_last_30_days": 123,
"updated_last_90_days": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"error_code": "<string>",
"filter_errors": [
{
"filter": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"retryable": true
}{
"detail": "<string>"
}Path Parameters
Which dataset a search runs against, and so which provider serves it.
Values are persisted in String(16) columns, so every member must stay within 16 characters.
Available options:
people, companies, signal_companies, signal_people, lookalikes, local_businesses, hiring_companies, backlinks, search_results, post_authors, startup_launches Response
Successful Response
How many people or companies a search type reaches, and how fresh they are.
Which dataset a search runs against, and so which provider serves it.
Values are persisted in String(16) columns, so every member must stay within 16 characters.
Available options:
people, companies, signal_companies, signal_people, lookalikes, local_businesses, hiring_companies, backlinks, search_results, post_authors, startup_launches Was this page helpful?