SDKs

Official clients for TypeScript and Python, and the SDKs you already use.

Both SDKs cover the whole API, with the same names as the HTTP API, typed responses, streaming, jobs, automatic retries and typed errors. They read your key from TYPESEARCH_API_KEY.

TypeScriptPython
Searchsearch(query, options)search(query, **options)
Stream a searchsearchStream(query, options)search_stream(query, **options)
Similarsimilar(url, options)similar(url, **options)
Contentscontents(urls, options)contents(urls, query=…)
Live site searchsiteSearch() · siteSearchAndWait() · siteSearchStream()site_search() · site_search_and_wait()
Jobsjobs.get(id) · jobs.wait(id)jobs.get(id) · jobs.wait(id)
Sources and usagesources() · usage()sources() · usage()

Already on Exa, Tako or Perplexity?

Their official SDKs work against typesearch as they are: point them at our compatibility layer and use a typesearch key. See Migrate from Exa, Tako or Perplexity.

Any other language

The API is plain JSON over HTTPS, described by an OpenAPI 3.1 document you can feed to any client generator.

On this page