Simple Analytics APIs

Simple Analytics does not own your data. That’s why we care a lot about the interoperability of your data. Our APIs are a good example of that. Most analytics companies do not give you access to your raw data. We believe it should be easy for you to get your data out of our database. You should decide what you want to do with your data.

There are a few ways to interact with our API. We have the Stats API for aggregated data, Export API for raw level data, and the Admin API for listing and adding websites. AI apps and agents use our MCP server and Tools API.

Depending on the public settings of a website you’ll need to authenticate. Learn how to authenticate with Simple Analytics APIs.

AI apps and agents

AI apps and agents don’t call these APIs. They use tools to read your stats, set up websites and events, and manage goals, annotations, email reports and more. You log in or approve a token instead of creating an API key, and it works on every plan.

  • MCP server: connect Claude, ChatGPT, Claude Code or Codex, and ask about your stats in the chat.
  • Tools API: the same tools over HTTPS, for AI agents without MCP and for your own scripts.
  • All tools: everything apps, agents and scripts can do, with their inputs.