curl -G "https://api.dataforb2b.ai/typeahead" \
-H "api_key: YOUR_API_KEY" \
--data-urlencode "type=skill" \
--data-urlencode "q=python" \
--data-urlencode "limit=5"
import requests
resp = requests.get(
"https://api.dataforb2b.ai/typeahead",
headers={"api_key": "YOUR_API_KEY"},
params={"type": "skill", "q": "python", "limit": 5},
)
print(resp.json())
const params = new URLSearchParams({ type: "skill", q: "python", limit: 5 });
const resp = await fetch(`https://api.dataforb2b.ai/typeahead?${params}`, {
headers: { api_key: "YOUR_API_KEY" },
});
console.log(await resp.json());
{
"type": "company",
"count": 2,
"credits_used": 0.02,
"results": [
{
"value": "Stripe",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVPs8v1Lj8oQ",
"logo_url": "https://media.licdn.com/dms/image/..."
}
},
{
"value": "Recko | A Stripe company",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVKfPiCAFeQc",
"logo_url": null
}
}
]
}
{
"type": "skill",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "Python", "popularity": "100k+", "metadata": null },
{ "value": "Python (Programming Language)", "popularity": "100k+", "metadata": null },
{ "value": "Python Scripting", "popularity": "1k-10k", "metadata": null }
]
}
{
"type": "city",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "London", "popularity": "100k+", "metadata": null },
{ "value": "Londonderry", "popularity": "<1k", "metadata": null },
{ "value": "London, United Kingdom","popularity": "<1k", "metadata": null }
]
}
{
"type": "people_industry",
"count": 1,
"credits_used": 0.01,
"results": [
{ "value": "Computer Software", "popularity": "100k+", "metadata": null }
]
}
{
"type": "investor",
"count": 2,
"credits_used": 0.02,
"results": [
{ "value": "y combinator", "popularity": "1k-10k", "metadata": null },
{ "value": "y combinator continuity fund","popularity": "<1k", "metadata": null }
]
}
Tools
Typeahead
Unified autocomplete endpoint for all search filter values
GET
/
typeahead
curl -G "https://api.dataforb2b.ai/typeahead" \
-H "api_key: YOUR_API_KEY" \
--data-urlencode "type=skill" \
--data-urlencode "q=python" \
--data-urlencode "limit=5"
import requests
resp = requests.get(
"https://api.dataforb2b.ai/typeahead",
headers={"api_key": "YOUR_API_KEY"},
params={"type": "skill", "q": "python", "limit": 5},
)
print(resp.json())
const params = new URLSearchParams({ type: "skill", q: "python", limit: 5 });
const resp = await fetch(`https://api.dataforb2b.ai/typeahead?${params}`, {
headers: { api_key: "YOUR_API_KEY" },
});
console.log(await resp.json());
{
"type": "company",
"count": 2,
"credits_used": 0.02,
"results": [
{
"value": "Stripe",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVPs8v1Lj8oQ",
"logo_url": "https://media.licdn.com/dms/image/..."
}
},
{
"value": "Recko | A Stripe company",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVKfPiCAFeQc",
"logo_url": null
}
}
]
}
{
"type": "skill",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "Python", "popularity": "100k+", "metadata": null },
{ "value": "Python (Programming Language)", "popularity": "100k+", "metadata": null },
{ "value": "Python Scripting", "popularity": "1k-10k", "metadata": null }
]
}
{
"type": "city",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "London", "popularity": "100k+", "metadata": null },
{ "value": "Londonderry", "popularity": "<1k", "metadata": null },
{ "value": "London, United Kingdom","popularity": "<1k", "metadata": null }
]
}
{
"type": "people_industry",
"count": 1,
"credits_used": 0.01,
"results": [
{ "value": "Computer Software", "popularity": "100k+", "metadata": null }
]
}
{
"type": "investor",
"count": 2,
"credits_used": 0.02,
"results": [
{ "value": "y combinator", "popularity": "1k-10k", "metadata": null },
{ "value": "y combinator continuity fund","popularity": "<1k", "metadata": null }
]
}
Overview
A single endpoint that powers autocomplete for every kind of value used in the people and company search filters — companies, industries, categories, locations, schools, job titles, skills, investors, and more. Passtype=<category> to control what is searched. Results come back ordered
by popularity, with prefix matches promoted to the top.
Query Parameters
The category to autocomplete. One of:
company— company names (returnsorg_id, name, logo)people_industry— industries on profiles (capitalized, e.g. “Computer Software”)company_industry— industries on companies (lowercase, e.g. “software development”)category— business categories (lowercase, e.g. “software”, “fintech”)location— full location strings on profiles (e.g. “San Francisco Bay Area”). Matches local and alternate names (“münchen” returns “Munich, Bavaria, Germany”, “nyc” returns “New York, New York, United States”) and returns the place type inmetadata.kind(city,area,county,region,country)city— cities on companiesregion— regions/states on companiesschool— schools and universities from education historytitle— job titlesskill— profile skillsinvestor— investor names from company funding rounds
Cost
Each returned result costs 0.01 record, i.e. 0.1 record per 10 results. Requests that return zero results are free. The amount debited for the call is returned in the response ascredits_used.
Typeahead can be made free for your account on a per-company basis. Reach
out to [email protected] if you want it enabled
for your organization.
Response
Matching values, ordered with prefix matches first.
Show result item properties
Show result item properties
curl -G "https://api.dataforb2b.ai/typeahead" \
-H "api_key: YOUR_API_KEY" \
--data-urlencode "type=skill" \
--data-urlencode "q=python" \
--data-urlencode "limit=5"
import requests
resp = requests.get(
"https://api.dataforb2b.ai/typeahead",
headers={"api_key": "YOUR_API_KEY"},
params={"type": "skill", "q": "python", "limit": 5},
)
print(resp.json())
const params = new URLSearchParams({ type: "skill", q: "python", limit: 5 });
const resp = await fetch(`https://api.dataforb2b.ai/typeahead?${params}`, {
headers: { api_key: "YOUR_API_KEY" },
});
console.log(await resp.json());
{
"type": "company",
"count": 2,
"credits_used": 0.02,
"results": [
{
"value": "Stripe",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVPs8v1Lj8oQ",
"logo_url": "https://media.licdn.com/dms/image/..."
}
},
{
"value": "Recko | A Stripe company",
"popularity": null,
"metadata": {
"org_id": "org_0lox54iG5IEZSb71mZWLR8z9CVKfPiCAFeQc",
"logo_url": null
}
}
]
}
{
"type": "skill",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "Python", "popularity": "100k+", "metadata": null },
{ "value": "Python (Programming Language)", "popularity": "100k+", "metadata": null },
{ "value": "Python Scripting", "popularity": "1k-10k", "metadata": null }
]
}
{
"type": "city",
"count": 3,
"credits_used": 0.03,
"results": [
{ "value": "London", "popularity": "100k+", "metadata": null },
{ "value": "Londonderry", "popularity": "<1k", "metadata": null },
{ "value": "London, United Kingdom","popularity": "<1k", "metadata": null }
]
}
{
"type": "people_industry",
"count": 1,
"credits_used": 0.01,
"results": [
{ "value": "Computer Software", "popularity": "100k+", "metadata": null }
]
}
{
"type": "investor",
"count": 2,
"credits_used": 0.02,
"results": [
{ "value": "y combinator", "popularity": "1k-10k", "metadata": null },
{ "value": "y combinator continuity fund","popularity": "<1k", "metadata": null }
]
}

