Company Column Values
curl --request GET \
--url https://api.revenuebase.ai/v2/contact/company/columns/{column}/values \
--header 'X-Key: <api-key>'import requests
url = "https://api.revenuebase.ai/v2/contact/company/columns/{column}/values"
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/columns/{column}/values', 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/columns/{column}/values",
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/columns/{column}/values"
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/columns/{column}/values")
.header("X-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/columns/{column}/values")
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{
"column": "COUNTRY_CODE_ORG",
"values": [
"AD",
"AE",
"AF",
"AG",
"AI"
],
"truncated": true,
"limit": 5,
"multiselect": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Company Endpoints
Company Column Values
Get the available options for one enumerable company field.
GET
/
company
/
columns
/
{column}
/
values
Company Column Values
curl --request GET \
--url https://api.revenuebase.ai/v2/contact/company/columns/{column}/values \
--header 'X-Key: <api-key>'import requests
url = "https://api.revenuebase.ai/v2/contact/company/columns/{column}/values"
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/columns/{column}/values', 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/columns/{column}/values",
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/columns/{column}/values"
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/columns/{column}/values")
.header("X-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/columns/{column}/values")
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{
"column": "COUNTRY_CODE_ORG",
"values": [
"AD",
"AE",
"AF",
"AG",
"AI"
],
"truncated": true,
"limit": 5,
"multiselect": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}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 Column Values
Populate a filter picker or search a bounded vocabulary, such as country codes. Choose an enumerable field from Company Columns.Example
SetREVENUEBASE_API_KEY to your API key.
curl --request GET 'https://api.revenuebase.ai/v2/contact/company/columns/COUNTRY_CODE_ORG/values?limit=5' \
--header "X-Key: $REVENUEBASE_API_KEY"
{
"column": "COUNTRY_CODE_ORG",
"values": [
"AD",
"AE",
"AF",
"AG",
"AI"
],
"truncated": true,
"limit": 5,
"multiselect": true
}
Read the result and options
values lists the returned options. column is the canonical field name; limit is the applied cap; truncated=true means more values exist. The optional search input narrows results, and limit is clamped to the field’s own valueLimit. Omit limit to use that cap. Open-ended text fields such as company names are not enumerable and return 422 COLUMN_NOT_ENUMERABLE. Use contains in a filter for those fields. An unknown field returns 404. For all picker vocabularies, use Company Columns with include=values.Errors and retries
Correct unsupported fields or filters before retrying a 400 or 422 response. 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
Use these values in a company filter, then Company Count.Was this page helpful?
