curl --request GET \
--url https://api.getoneprofile.ai/accounts/length/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/accounts/length/"
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/accounts/length/', 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/accounts/length/",
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/accounts/length/"
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/accounts/length/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/accounts/length/")
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{
"accounts_so_far": 123,
"building": true,
"count": 123,
"indexing_tables": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Count accounts
How many accounts the list’s filters select, and whether they are still being built.
curl --request GET \
--url https://api.getoneprofile.ai/accounts/length/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/accounts/length/"
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/accounts/length/', 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/accounts/length/",
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/accounts/length/"
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/accounts/length/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/accounts/length/")
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{
"accounts_so_far": 123,
"building": true,
"count": 123,
"indexing_tables": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Query Parameters
Only accounts where somebody was reached (the default), or every account.
with_activity, all Text found in the account's name or domain, a person's name on it, another row's name for the company, or the website or LinkedIn page of an account merged into it. A row found by one of the last three says which in search_match. Those three are read for a search of 3 characters or more, and only with search_rows.
255Whether search also reads the accounts' rows (a person's name, another name, a merged account), not only each account's own name and domain. Default true.
Only accounts with at least one person on a table (true), or with none (false); omit for both.
Only accounts where somebody replied, bounced or is in a sequence now; repeat the parameter for any of several. Omit for every account.
3What reached somebody at an account, as the list's Outreach filter names it.
replied, bounced, in_sequence Only accounts in these industries, as GET /accounts/industries/ names them (case and spaces aside); repeat for several.
100255Only accounts whose headcount falls in these bands (a range by its low end), or unknown for none; repeat for several.
9A headcount band the list's Size filter offers, by the headcount's low end.
1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+, unknown Only accounts with a row on one of these tables; repeat for several.
100Only accounts whose CRM owner is one of these, as GET /accounts/owners/ names them (case and spaces aside), or none for the accounts no CRM record gives an owner; repeat for several.
100255Response
Successful Response
Every account in the workspace so far, whatever the filters; null once built.
Whether the workspace's accounts are still being built from its tables.
Tables whose index has work left: changes waiting to be read, or a first index. 0 while building means the workspace's tables are still being looked through.
Was this page helpful?