Company Stats
curl --request GET \
--url https://api.revenuebase.ai/v2/contact/company/stats \
--header 'X-Key: <api-key>'import requests
url = "https://api.revenuebase.ai/v2/contact/company/stats"
headers = {"X-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Key': '<api-key>'}};
fetch('https://api.revenuebase.ai/v2/contact/company/stats', 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.revenuebase.ai/v2/contact/company/stats",
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-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.revenuebase.ai/v2/contact/company/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.revenuebase.ai/v2/contact/company/stats")
.header("X-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companies": 21337431,
"withDomain": 16599854,
"withLinkedinUrl": 21337431,
"withAboutUs": 12862771,
"contacts": 341045421
}Company Endpoints
Company Stats
Read whole-dataset company totals and key-field coverage.
GET
/
company
/
stats
Company Stats
curl --request GET \
--url https://api.revenuebase.ai/v2/contact/company/stats \
--header 'X-Key: <api-key>'import requests
url = "https://api.revenuebase.ai/v2/contact/company/stats"
headers = {"X-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Key': '<api-key>'}};
fetch('https://api.revenuebase.ai/v2/contact/company/stats', 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.revenuebase.ai/v2/contact/company/stats",
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-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.revenuebase.ai/v2/contact/company/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.revenuebase.ai/v2/contact/company/stats")
.header("X-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companies": 21337431,
"withDomain": 16599854,
"withLinkedinUrl": 21337431,
"withAboutUs": 12862771,
"contacts": 341045421
}Credits and plans
PAYG is Pay-as-you-go. AYCE is All-you-can-eat.| Usage | PAYG | AYCE |
|---|---|---|
| Metadata request | Free 0 credits | Free 0 credits |
When to use Company Stats
Read a dataset-wide summary of company coverage. These totals cover the company dataset used by the Contact and Company APIs.Company Stats does not accept audience filters. Use Company Count to count matching companies, or Company Insights to measure field coverage within a filtered audience.
Example
SetREVENUEBASE_API_KEY to your API key.
curl --request GET 'https://api.revenuebase.ai/v2/contact/company/stats' \
--header "X-Key: $REVENUEBASE_API_KEY"
{
"companies": 21337431,
"withDomain": 16599854,
"withLinkedinUrl": 21337431,
"withAboutUs": 12862771,
"contacts": 341045421
}
Read the totals
companies is the number of company records. Optional withDomain, withLinkedinUrl, and withAboutUs report populated company fields. contacts sums contact rows represented by the company dataset. Fields can be omitted when the underlying catalog does not include them. These are whole-dataset totals, with no filter or individual company records. Responses can be cached; X-Cache indicates a cache hit or miss when supplied.Errors and retries
This GET request has no filter or body. If a 429 response is returned, wait for Retry-After. Contact and company routes share the default 10 requests per second per user.Next steps
Company Count measures a filtered audience; Company Insights analyzes its composition and field fill rates.Authorizations
Response
200 - application/json
Successful Response
The response is of type Response Company Stats V1 Company Stats Get · object.
Was this page helpful?
