Guides
Record lookup
Fetch full records for companies, people and documents you can already identify, in batches, with every value that was not found reported.
Record lookup answers "what do you hold on these?". You send identifiers you already have (domains, LinkedIn URLs, names, or ids from search rows), and POST /v1/entities/{kind} returns the full record for each, in one call.
Use it when you know which records you want. To find records you cannot name yet, use Search.
Kinds of record#
| Route | Looks up | Identify each one by | Values per call |
|---|---|---|---|
POST /v1/entities/companies | Companies | id, domain, li_url, name or auto | 1,000 by id; 50 otherwise |
POST /v1/entities/persons | People | id, li_url, name or auto | 1,000 by id; 50 otherwise |
POST /v1/entities/patents | Patents | id | 100 |
POST /v1/entities/academic-reports | Research papers | id | 100 |
POST /v1/entities/trends | Trends | id | 100 |
POST /v1/entities/news | News articles | name (the headline) or id | 100 by id; 50 by name |
POST /v1/entities/market-reports | Market reports | name (the report title) or id | 100 by id; 50 by name |
POST /v1/entities/fundings | Funding rounds | name (the raising company) or id | 100 by id; 50 by name |
POST /v1/entities/job-openings | Job openings | name (the role) or id | 100 by id; 50 by name |
Lookups by id are larger because an id names exactly one record. A domain, URL or name has to be resolved one value at a time, so fewer fit in one call.
Companies and people#
Send the values in ids and say what they are in by:
idto look up by theida search row gave you.domain(companies only),li_urlornamewhen every value is that kind.auto, the default, when the list mixes kinds: each value's kind is worked out from its shape.
A domain, a LinkedIn URL or an id finds one record. A name can belong to several companies or people, so it returns every candidate, up to 10, each saying how it matched. When one record is named exactly as you asked, it comes back on its own. Prefer domains and LinkedIn URLs when you have them.
To tell people with the same name apart, send a person's name with their employer, as {"name": ..., "company": ...}. The company can be a domain, a LinkedIn company page or a name, and by must be name or auto. With an employer, a name almost always finds one person:
{
"by": "name",
"ids": [{ "name": "Jane Doe", "company": "stripe.com" }, "Sam Taylor"]
}curl -X POST "https://api.sproutsdata.ai/v1/entities/companies" \
-H "X-API-Key: $SPROUTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "by": "domain", "ids": ["stripe.com", "adyen.com"] }'People work the same way, at POST /v1/entities/persons:
{ "by": "li_url", "ids": ["https://www.linkedin.com/in/jane-doe-example"] }A person record does not include email addresses or phone numbers. To find those, use Contact enrichment.
Documents#
Every document row from a search has an id. Send it to the route for that document's category to fetch the full record:
{ "ids": ["ID_FROM_A_SEARCH_ROW"] }- Patents, research papers and trends are looked up by id only.
- News, market reports, funding rounds and job openings are looked up by id or by name: a headline, a report title, the company that raised, or a job's role. A name can match several records, and they come back best first.
bydefaults toauto, which reads ids from search rows as ids and anything else as names; send"by": "id"or"by": "name"to say which.
Document routes also take fields, the fields to return for each record (up to 200). Leave it out for the standard set. "*" adds the bulk fields, such as a report's full text or a trend's list of companies, which can be very large.
Read the answer#
The answer has one entry in results for every value you sent: the values that were found come first, then those that were not, each group in the order you sent them. Nothing is dropped silently.
{
"results": [
{
"id": "Mercury",
"query": "Mercury",
"matched_by": "name",
"category": "company",
"found": true,
"total": 4,
"has_more": false,
"matches": [
{
"id": "…",
"account_name": "Mercury",
"domain": "mercury.com",
"query": "Mercury",
"matched_by": "name",
"match": "contains"
}
]
},
{
"id": "unknown-example.com",
"query": "unknown-example.com",
"matched_by": "domain",
"category": "company",
"found": false,
"total": 0,
"has_more": false,
"matches": []
}
],
"total": 2,
"has_more": false,
"next_cursor": null,
"meta": { "request_id": "…", "credits_charged": 1 }
}| Field | What it is |
|---|---|
query | The value as you sent it, so you can match each answer to your input. id holds it too. |
matched_by | How the value was read: id, domain, li_url or name. |
category | The kind of record. |
found | Whether anything matched. |
matches | The records found, best first. Each carries its public id (the same one search gives it), the query and matched_by it came from, and match. |
total | How many records the value matches in all. |
has_more | More records match than matches shows. Narrow the value: add a person's employer, or use a company's domain. |
Each record's match says how it matched its value:
exact: the record is the one the value names.contains: the record's name holds the words you sent.fuzzy: a close spelling, returned only when nothing else matched. Treat it as a suggestion and check it before you use it.
total on the envelope is the number of values looked up. Complete records lists what a company and a person record hold.
Pages#
A lookup returns up to 50 records per page and never splits one value's records across pages. When has_more is true, send the same body again with "cursor" set to next_cursor to get the values that did not fit.
Cost#
A lookup costs 1 credit for each value that finds a record, by default, however many records it shows: a name that matches several records counts once, on the page it appears on. A value whose records your workspace unlocked in the last 90 days, through a lookup, a saved list or an export, is free again, and values that are not found are free. If the balance cannot pay for the records found, the call is refused with credits.insufficient and nothing is charged. meta.credits_charged says what the call cost. See Credits and usage.