Install
fetch — Cloudflare Workers, Deno and Bun included. Zero runtime dependencies. ESM and CommonJS. Fully typed.
Quick start
site_id, start_date, group_by), never camelCase, so the API reference applies as written.
Methods
Pagination
Every report method is awaitable for the first page and async-iterable for every row.Filters
Pass a plain object, or build one withf:
is, not_is, in, not_in, contains, not_contains, all case-insensitive. Numbers and booleans are converted to strings for you (f.is("verified", true)). Which fields each report accepts: Filtering.
Errors
status, code, details and requestId — include the request id when you contact support.
Retries
On by default, with two retries after the first attempt. A429 is retried after exactly the Retry-After time. Other errors are retried only for operations that are safe to repeat. maxRetryWaitMs caps the total time one call may spend waiting.