Skip to main content
Use Fathom through Corsair: one client, typed API calls. Fathom Analytics provides simple, privacy-first website analytics without cookies or tracking personal data. To connect to the API, generate an API token from your Fathom dashboard under Settings -> API (or https://app.usefathom.com/api). Provide the API token as key or store it in your account keys under api_key. Things to know:
  • Rate limits: Fathom enforces both an hourly volume limit and a concurrency limit per account. When exceeded, the API returns HTTP 429 with a Retry-After header.
  • Retired endpoints: Fathom retired the Wipe endpoints and the event-by-ID endpoints (events.create, events.get, events.update, events.delete, events.wipe, sites.wipe); they return HTTP 410 Gone. Events now appear once your site tracks them: read them with events.list and set their currency with events.setCurrency. events.deleteByName only removes an event’s currency setting; it does not delete the event or its completions. Wiping data is no longer possible through the API.
  • Aggregation filtering: Use reports.aggregation to query pageview or event analytics with flexible grouping and date ranges. Filters are structured objects matching supported operators (is, is not, is like, is not like, matching, not matching).
What you get:
  • 23 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List sites in Fathom
Create a new site in Fathom
See the full list on the API page.

What’s next

API reference

Every fathom.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.