Response formats
Choose between one JSON result and a stream of Server-Sent Events for each Deep Search API call, and see which events arrive while a lookup runs.
Pick a format
Unless you ask otherwise, people search, person dossiers, person chat and research runs stream text/event-stream, while company, image, VIN and address lookups answer with JSON. You can request either format from any operation. In a stream, the data: lines of each frame hold JSON.
Add "format": "json" to the body to wait for one typed object instead. Its type tells you where the result is: a search_result holds hits, a dossier_result holds dossier and a chat_result holds answer.
During a people search the same candidate can arrive more than once: a later hit with a hit.id you have already seen carries newly sourced details. Update that candidate where it is rather than listing a new person.
Events you may receive
| Event | Meaning |
|---|---|
status | Short progress text you can show to a user. |
hit | One person or company candidate. |
entity_section | One section of a company dossier. |
vehicle_section | One section of a vehicle profile. |
address_section | One section of an address report, about the property and place only. |
image_match | A public page where the image appears. |
similar_image | An image that looks like the one you sent. |
image_summary | The overall reverse-image result and the provider that produced it. |
section | A completed section of a person dossier. |
summary | The next piece of a person dossier's written summary. |
sources | The sources a person dossier relies on. |
text | The next piece of a chat answer. |
related | Follow-up questions to offer after a chat answer. |
social_account_found | New social-account evidence found during a people search. |
account_updated | Revised evidence for a social account a people search already reported. |
cluster_updated | Revised evidence for a group of matching candidates in a people search. |
evidence | Where a claim about an account or candidate group came from, in a people search. |
avatar_updated | A people search checked or changed a profile photo candidate. |
usage | The final charge for the call and the usage you have left. |
done | The stream has ended. partial: true means it stopped early. |
error | A fatal error ended the stream. |
Skip any event type your code does not recognise, because new types can appear within the same API version.