Getting started
Set up your first Reverse Contact request in less than 5 minutes: get an API key, call the API with a Social URL, read the response, then try live data.
Before you begin
- Create an account if you don't have one yet.
- Generate an API key: open Workspace > API Keys, create a new key, then copy it and keep it secure.
- Have a Social URL ready, such as
https://www.social.com/in/janedoe, or a person's full name and company domain.
Authentication covers API keys and permissions.
1. Make your first request
All endpoints are served from https://api.reversecontact.com/v2/. This request fetches a person profile from a Social URL, with your key in the RC_API_KEY environment variable. The TypeScript SDK and Python SDK tabs use the official SDKs: install them with npm install @reverse-contact/sdk or pip install reversecontact, see TypeScript and JavaScript SDK and Python SDK.
POST /v2/fetch/persons
const response = await fetch("https://api.reversecontact.com/v2/fetch/persons", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.RC_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
url: "https://www.social.com/in/janedoe"
})
});
const result = await response.json();
console.log(result.data.firstName, result.data.lastName);import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const result = await client.fetch.person({ url: "https://www.social.com/in/janedoe" });
if (result === null) console.log("Profile not found: nothing was charged");
else console.log(result.data.firstName, result.data.lastName);curl -X POST https://api.reversecontact.com/v2/fetch/persons \
-H "Authorization: Bearer ${RC_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.social.com/in/janedoe"}'import os
import requests
response = requests.post(
"https://api.reversecontact.com/v2/fetch/persons",
headers={
"Authorization": f"Bearer {os.environ['RC_API_KEY']}",
"Content-Type": "application/json"
},
json={"url": "https://www.social.com/in/janedoe"}
)
result = response.json()
print(result["data"]["firstName"], result["data"]["lastName"])import os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
result = client.fetch.person(url="https://www.social.com/in/janedoe")
if result is None:
print("Profile not found: nothing was charged")
elif result.data is not None:
print(result.data.first_name, result.data.last_name)2. Read the response
Every API response has the same top-level fields:
| Field | Description |
|---|---|
success | true if the request succeeded |
data | The returned object for this endpoint |
error | Error details if something went wrong, null on success |
metadata | Request ID and execution time, useful for debugging |
quotas | Your remaining credits and rate limit status |
See API reference for the response format and the shared types.
3. Get real-time data from the live endpoints
The live, Find Email and Find Phone endpoints fetch fresh data asynchronously. They reply immediately with a webhookId, then deliver the result once it's ready, usually within seconds.
For the live profile endpoints, Find Email and Find Phone, the simplest way to retrieve the result is polling: trigger the task, then call GET /v2/webhooks/:webhookId until the status is succeeded. The Find Email and Find Phone pages describe their results.
Trigger + poll
const KEY = "YOUR_API_KEY";
const BASE = "https://api.reversecontact.com";
const trigger = await fetch(`${BASE}/v2/fetch/persons/live`, {
method: "POST",
headers: {
"Authorization": `Bearer ${KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({ url: "https://social.com/in/janedoe" })
});
const { data: { webhookId } } = await trigger.json();
while (true) {
const res = await fetch(`${BASE}/v2/webhooks/${webhookId}`, {
headers: { "Authorization": `Bearer ${KEY}` }
});
const { data } = await res.json();
if (data.status === "succeeded") { console.log(data.result); break; }
if (data.status === "errored") throw new Error(data.errorCode ?? "Task failed");
await new Promise(r => setTimeout(r, 2000));
}import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const task = await client.fetch.personLive({ url: "https://social.com/in/janedoe" });
console.log("Save this task id:", task.id);
// Polls until the task ends, and throws TaskFailedError if it fails.
const done = await task.wait();
console.log(done.data.result);KEY="YOUR_API_KEY"
ID=$(curl -sX POST https://api.reversecontact.com/v2/fetch/persons/live \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://social.com/in/janedoe"}' | jq -r .data.webhookId)
while :; do
S=$(curl -s https://api.reversecontact.com/v2/webhooks/$ID \
-H "Authorization: Bearer $KEY" | jq -r .data.status)
[ "$S" = "succeeded" ] && break
[ "$S" = "errored" ] && echo "task failed" && exit 1
sleep 2
done
curl -s https://api.reversecontact.com/v2/webhooks/$ID \
-H "Authorization: Bearer $KEY" | jq .data.resultimport os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
task = client.fetch.person_live(url="https://social.com/in/janedoe")
print("Save this task id:", task.id)
# Polls until the task ends, and raises TaskFailedError if it fails.
done = task.wait()
print(done.data.result if done.data else None)To get each result as soon as it's ready with fewer requests, add ?wait=20 to the poll: each call then waits up to 20 seconds for the task to end. The SDKs' task.wait() already polls this way. The Polling guide walks through the integration and compares polling with webhooks.
4. Many people or companies? Let a List orchestrate the work
The endpoints above look up one person at a time. For a file, a CRM segment or a set of prospects, a List orchestrates the whole pipeline instead: send it up to 25,000 Social profile URLs, emails or names in one import, or the URL of a public CSV file, and it identifies each person, skips those already on the List, buys the data you ask for (profile, work email, phone number) under a credit ceiling you set, and keeps the result for you to read or export. Your team sees the same List in the app.
The Lists guide explains what a List orchestrates, and Build your first List walks through a first List step by step.
FAQ
What is the base URL of the Reverse Contact API?
All Reverse Contact endpoints are served from https://api.reversecontact.com/v2/, for example POST https://api.reversecontact.com/v2/fetch/persons. The examples send the API key in an Authorization: Bearer header.
How do I get a Reverse Contact API key?
Create a Reverse Contact account, then open Workspace > API Keys, create a new key, copy it and keep it secure. The Authentication page covers API keys and permissions.
How long does a live endpoint take to return data?
The live endpoints, Find Email and Find Phone reply immediately with a webhookId, then deliver the result once it's ready, usually within seconds. Reverse Contact aims to deliver each result in under 15 seconds, but it can take tens of minutes depending on conditions, so live endpoints are built to feed async pipelines, not to block a request a user is waiting on.
How do I get a live profile result without setting up a webhook?
Use polling: trigger the live task, then call GET /v2/webhooks/:webhookId until the status is succeeded, or stop if it is errored. Polling needs no webhook receiver, and polls are free and do not count against your per-minute rate limit. See the Polling guide.
What replaced /v2/search/persons?
/v2/search/persons?On October 13, 2026, /v2/search/persons was replaced by /v2/search/people. The old endpoint now returns 410 Gone. See the endpoint transition guide.
Last verified