POST /v2/search/entities/canonical-resolutions turns names, such as a company, a title or a location, into entity ids. Search on an id and you get that exact entity, not every record whose text happens to match.
Resolve a batch of names
Send up to 25 lookups in one request. Each has anentity_type and exactly one name, or an entity_id from an earlier lookup to confirm it still resolves (a merged id answers the entity that replaced it). region is required and locations are checked against it, so use the region you will search. The Idempotency-Key header is required: it is what makes the request safe to retry without paying twice.
200 carries one result per lookup; selector_index is its position in your requests. Below, the company resolved and the title matched more than one entity. Each candidate carries entity_id, the numeric entity id. Use it in the matching supported entity-id search filter.
billing object that reports what the lookup charged. Current rates are available to signed-in accounts in the console.
Result statuses
entity_type is one of company, title, skill, school, location, major, degree, certification or industry. A name may be up to 256 characters.
Search on the ids
Put each id in the matching filter of a candidate search. Text filters such ascurrent_companies still work beside them. Entity-id filters accept entity ids as integers or canonical decimal strings, including in nested filters. Each id must match the filter’s entity type. One filter takes up to 200 ids but only 25 names, so resolve a longer list of names, such as every company in a sector, a batch at a time and search on the ids.
0 itself. Zero is valid only for degree and industry ids; other entity types require a positive id. An id may resolve through an unambiguous redirect to the current entity. Unknown, ambiguous or wrong-type ids are refused with reason entity_id_not_usable.
The first search response can include entity_resolution.resolved_entities for resolved names. Entries include the entity_id and search_index, the zero-based position in searches. entity_resolution.fallback entries also carry search_index to identify which search used the fallback. Continuation pages do not repeat these details.
The search is billed exactly like a candidate search, and the ids add no lookup charge. Follow pagination.cursor to the next page as described in the Search guide.
Billing and retries
Each successful request is one entity lookup unit, however many names it carries or results it returns. A batch where nothing was found, or an empty list of suggestions, is still a completed lookup.- Reuse the same
Idempotency-Keyto retry: inside 24 hours the stored answer comes back withreused: trueand nothing is charged again. - Reusing a key with a different body is
409. Generate a new key for different work. - Keep the original key after a timeout or a
503. A fresh key is new work and is charged as such. - Your key’s access to the source and region is checked again before a stored answer is returned.
Failures worth handling
See the API reference overview for the generated page of each operation. To suggest values while someone types, see Autosuggest.