Run a temporary search
Send the same body as Create Search toPOST /search/temporary, and keep the connection open:
POST /search rejects a temporary field with 400 USE_TEMPORARY_ENDPOINT, so a request meant to be temporary can never be stored by mistake.
The request goes through the same authentication, plan limits, concurrency check, and blocklist as a normal search, and counts toward your API usage in the same way.
Search options behave as they do on POST /search. For example, features.registered_accounts: "only" runs only the registered-account check, without modules, leak sources, or breached accounts, and leaks.custom_mapping selects the leak record format. Leak sources still require their API add-ons.
Response
A successful request returns200 with a Server-Sent Events stream instead of a JSON body.
Events
Events have the same names and fields as in the normal stream, includingleak.page.ready. The only addition is on module.result, which carries a unique result_id: several cards from one module can share a timestamp, and temporary results cannot be fetched again, so use result_id to tell them apart.
As in the normal stream, search.finished is the last event. If some modules failed, it still has status completed, with an error such as partial failures: 3 module(s). status is failed only when the search could not run.
Leak records
Leak records are loaded page by page, as for a normal search, with the same API key that started the search:{id} is the X-Search-Id of the stream. Send X-Osintly-Progressive-Leaks: 1 to read pages as soon as leak.page.ready arrives. These records are available for one hour after the search ends, then deleted.
Differences from the normal stream
- There is no BYOK event, since temporary searches do not accept
byok. - The stream cannot be resumed. If the connection drops, the results that had not arrived yet are lost; start a new search to try again.
GET /search/{id},/results,/results/leaks, and/streamdo not know temporary searches; use the leak endpoints above. The search cannot be deleted because it was never stored.
What Osintly does not keep
- No search record, history entry, or search ID that can be fetched later
- No stored module results, leak records, registered accounts, or breached accounts
Limits and errors
Other errors, such as an invalid API key or an exceeded plan limit, are the same as for
POST /search.
Sending temporary to POST /search instead returns 400 USE_TEMPORARY_ENDPOINT and starts no search.
In the Osintly app, temporary search is a separate option on the Search page. See Temporary search.