Lookalike
curl --request POST \
--url https://api.revenuebase.ai/v2/contact/company/lookalike \
--header 'Content-Type: application/json' \
--header 'X-Key: <api-key>' \
--data '
{
"domain": "stripe.com",
"limit": 5,
"columns": [
"RBID_ORG",
"COMPANY_NAME_ORG",
"DOMAIN_ORG"
]
}
'import requests
url = "https://api.revenuebase.ai/v2/contact/company/lookalike"
payload = {
"domain": "stripe.com",
"limit": 5,
"columns": ["RBID_ORG", "COMPANY_NAME_ORG", "DOMAIN_ORG"]
}
headers = {
"X-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domain: 'stripe.com',
limit: 5,
columns: ['RBID_ORG', 'COMPANY_NAME_ORG', 'DOMAIN_ORG']
})
};
fetch('https://api.revenuebase.ai/v2/contact/company/lookalike', 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/lookalike",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'stripe.com',
'limit' => 5,
'columns' => [
'RBID_ORG',
'COMPANY_NAME_ORG',
'DOMAIN_ORG'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revenuebase.ai/v2/contact/company/lookalike"
payload := strings.NewReader("{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.revenuebase.ai/v2/contact/company/lookalike")
.header("X-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/lookalike")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"rbidOrg": "rb-oacwbixtv",
"matches": [
{
"rbidOrg": "rb-oabt7ovif",
"similarity": 0.8989,
"match": "exact",
"COMPANY_NAME_ORG": "Haipals",
"DOMAIN_ORG": "haipals.com"
},
{
"rbidOrg": "rb-oacls43ho",
"similarity": 0.8824,
"match": "exact",
"COMPANY_NAME_ORG": "Paymentre",
"DOMAIN_ORG": "paymentre.com"
},
{
"rbidOrg": "rb-oaczstvlg",
"similarity": 0.8759,
"match": "exact",
"COMPANY_NAME_ORG": "Azapay",
"DOMAIN_ORG": "azapaybusiness.com"
},
{
"rbidOrg": "rb-oacrxzm3i",
"similarity": 0.8756,
"match": "exact",
"COMPANY_NAME_ORG": "Merchly",
"DOMAIN_ORG": null
},
{
"rbidOrg": "rb-oackyxmvn",
"similarity": 0.87,
"match": "exact",
"COMPANY_NAME_ORG": "Onyx Processing",
"DOMAIN_ORG": "onyxprocessing.com"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Company Endpoints
Lookalike
Find companies similar to a seed company and return their company fields.
POST
/
company
/
lookalike
Lookalike
curl --request POST \
--url https://api.revenuebase.ai/v2/contact/company/lookalike \
--header 'Content-Type: application/json' \
--header 'X-Key: <api-key>' \
--data '
{
"domain": "stripe.com",
"limit": 5,
"columns": [
"RBID_ORG",
"COMPANY_NAME_ORG",
"DOMAIN_ORG"
]
}
'import requests
url = "https://api.revenuebase.ai/v2/contact/company/lookalike"
payload = {
"domain": "stripe.com",
"limit": 5,
"columns": ["RBID_ORG", "COMPANY_NAME_ORG", "DOMAIN_ORG"]
}
headers = {
"X-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domain: 'stripe.com',
limit: 5,
columns: ['RBID_ORG', 'COMPANY_NAME_ORG', 'DOMAIN_ORG']
})
};
fetch('https://api.revenuebase.ai/v2/contact/company/lookalike', 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/lookalike",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => 'stripe.com',
'limit' => 5,
'columns' => [
'RBID_ORG',
'COMPANY_NAME_ORG',
'DOMAIN_ORG'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.revenuebase.ai/v2/contact/company/lookalike"
payload := strings.NewReader("{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.revenuebase.ai/v2/contact/company/lookalike")
.header("X-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revenuebase.ai/v2/contact/company/lookalike")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"stripe.com\",\n \"limit\": 5,\n \"columns\": [\n \"RBID_ORG\",\n \"COMPANY_NAME_ORG\",\n \"DOMAIN_ORG\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"rbidOrg": "rb-oacwbixtv",
"matches": [
{
"rbidOrg": "rb-oabt7ovif",
"similarity": 0.8989,
"match": "exact",
"COMPANY_NAME_ORG": "Haipals",
"DOMAIN_ORG": "haipals.com"
},
{
"rbidOrg": "rb-oacls43ho",
"similarity": 0.8824,
"match": "exact",
"COMPANY_NAME_ORG": "Paymentre",
"DOMAIN_ORG": "paymentre.com"
},
{
"rbidOrg": "rb-oaczstvlg",
"similarity": 0.8759,
"match": "exact",
"COMPANY_NAME_ORG": "Azapay",
"DOMAIN_ORG": "azapaybusiness.com"
},
{
"rbidOrg": "rb-oacrxzm3i",
"similarity": 0.8756,
"match": "exact",
"COMPANY_NAME_ORG": "Merchly",
"DOMAIN_ORG": null
},
{
"rbidOrg": "rb-oackyxmvn",
"similarity": 0.87,
"match": "exact",
"COMPANY_NAME_ORG": "Onyx Processing",
"DOMAIN_ORG": "onyxprocessing.com"
}
]
}{
"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 |
|---|---|---|
| Company matches, current behavior | Free 0 credits | Unlimited 0 credits |
| Companies per request | 200 maximum; 25 default | 200 maximum; 25 default |
When to use Lookalike
Start from a company you already know and inspect nearby companies. This endpoint returns company records, rather than the people who work there. For a contact or company audience with other criteria, use a lookalike filter on Count, View, Preview, or Export.Example
SetREVENUEBASE_API_KEY to your API key.
curl --request POST 'https://api.revenuebase.ai/v2/contact/company/lookalike' \
--header "X-Key: $REVENUEBASE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"domain": "stripe.com",
"limit": 5,
"columns": [
"RBID_ORG",
"COMPANY_NAME_ORG",
"DOMAIN_ORG"
]
}'
{
"rbidOrg": "rb-oacwbixtv",
"matches": [
{
"rbidOrg": "rb-oabt7ovif",
"similarity": 0.8989,
"match": "exact",
"COMPANY_NAME_ORG": "Haipals",
"DOMAIN_ORG": "haipals.com"
},
{
"rbidOrg": "rb-oacls43ho",
"similarity": 0.8824,
"match": "exact",
"COMPANY_NAME_ORG": "Paymentre",
"DOMAIN_ORG": "paymentre.com"
},
{
"rbidOrg": "rb-oaczstvlg",
"similarity": 0.8759,
"match": "exact",
"COMPANY_NAME_ORG": "Azapay",
"DOMAIN_ORG": "azapaybusiness.com"
},
{
"rbidOrg": "rb-oacrxzm3i",
"similarity": 0.8756,
"match": "exact",
"COMPANY_NAME_ORG": "Merchly",
"DOMAIN_ORG": null
},
{
"rbidOrg": "rb-oackyxmvn",
"similarity": 0.87,
"match": "exact",
"COMPANY_NAME_ORG": "Onyx Processing",
"DOMAIN_ORG": "onyxprocessing.com"
}
]
}
Read the response
rbidOrg identifies the resolved seed. matches is an ordered list of other companies, with rbidOrg, similarity, a match classification, and requested company fields. Higher similarity is closer to the seed. The seed itself is excluded. A match classification can be null when it falls outside the named tiers.
Options and limits
| Option | Meaning |
|---|---|
domain or rbidOrg | Provide a seed domain or company identifier. If both are present, rbidOrg is used. |
limit | Defaults to 25 and is clamped to 1 through 200. This is a nearest-results cap. |
columns | Choose company fields; ["*"] requests all company catalog fields. |
Errors and next steps
An unresolved seed or one without usable similarity data can fail with a 404 or 422 response. Choose another seed or retrieve its company record first. Company Enrich retrieves known company identifiers. A lookalike filter lets you count an audience before choosing an inline response or file.Authorizations
Body
application/json
Seed company domain. Supply domain or rbidOrg.
Seed company identifier. Takes precedence when both identifiers are supplied.
Number of nearest companies; defaults to 25 and is clamped to 1 through 200.
Company fields to return; ["*"] requests all company catalog fields.
Response
Successful Response
The response is of type Response Lookalike V1 Company Lookalike Post · object.
Was this page helpful?
