curl --request GET \
--url https://api.getoneprofile.ai/leads/record-types/{record_type}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/leads/record-types/{record_type}/"
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}/', 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}/",
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}/"
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}/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/leads/record-types/{record_type}/")
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{
"credits_per_request": 123,
"credits_per_row": 123,
"preview_supported": true,
"record_type": "people",
"rows_per_request": 123,
"credits_for_rows": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Get a search type's row price
What one row of this search type costs, in credits, before any enrichment, and whether it can be previewed at all. Free to call and never fetches a row, so a builder can quote the price and decide on the preview button before anything is spent. With row_count, it also quotes what that many rows cost, request charges included.
curl --request GET \
--url https://api.getoneprofile.ai/leads/record-types/{record_type}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/leads/record-types/{record_type}/"
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}/', 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}/",
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}/"
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}/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/leads/record-types/{record_type}/")
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{
"credits_per_request": 123,
"credits_per_row": 123,
"preview_supported": true,
"record_type": "people",
"rows_per_request": 123,
"credits_for_rows": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
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.
people, companies, signal_companies, signal_people, lookalikes, local_businesses, hiring_companies, backlinks, search_results, post_authors Query Parameters
Rows a run would add, to quote their total as credits_for_rows; omit for the per-row price alone.
x >= 0Response
Successful Response
One kind of lead search: what its rows cost, and whether it can be sampled first.
The two facts a builder needs before anything is spent, read for free and without fetching a row: asking the price must never itself cost a row.
What each request to the data source costs on top of its rows, in credits, charged once for every rows_per_request rows a run adds (a Google search: 0.1 credit for every ten results). Zero for the search types billed by the row alone.
What one row of this search type costs, in credits, before any enrichment is chosen. Zero for the search types whose rows are free. Charged on the rows a run adds, so a run that adds nothing costs nothing. Never included in an enrichment's credits_per_row, so a true total is this plus the ticked enrichments rather than either alone.
Whether this search type can be sampled before it is added. The backend lists which datasets offer an explicit sample. This is independent of row pricing; automatic counts are only available when the data source counts for free.
Which dataset the search runs against.
people, companies, signal_companies, signal_people, lookalikes, local_businesses, hiring_companies, backlinks, search_results, post_authors How many rows one request to the data source returns, and so how many each request charge covers.
What row_count rows cost before any enrichment, request charges included and rounded once on the total; null if no row_count was given. The rows a run adds are what gets charged, so a run that matches fewer rows than asked for costs less than this.
Was this page helpful?