Skip to content
unzoi docs

SDKs

There is nothing to install, and that is deliberate.

Six GET endpoints with query parameters is not enough surface to justify a package in five languages — each of which would lag the API, need its own release, and hide the two things that actually matter: the limit headers and how you retry.

What you get instead:

  • An OpenAPI 3.1 document that any generator consumes, if you want types — see OpenAPI.
  • A worked client per language below, short enough to read in one sitting and paste into your own code.

What a client should do

  1. Send the key as a header, never in the query string. Query strings end up in logs and referrers.
  2. Tell the two 429s apart. The rate limit is transient and wants a one-second retry; the quota is not and wants an error. x-quota-remaining: 0 distinguishes them. The logic is here.
  3. Surface from_clamped. Otherwise a plan boundary is indistinguishable from an empty corpus. Archive depth.
  4. Ask for large pages. limit=100 where you can — each page is a billed request.
  5. Do not retry a 404 or a zero-result response. Neither is a failure.

If you are writing an agent rather than a client, you probably want MCP instead — the model reads the tool descriptions and makes these choices itself.