How can I fetch report data using API?

When you need to get raw data from a report via API, you can use an API call definition and ask directly the database for information.

To fetch data directly from a report, follow these steps:

  1. Go to Menu > Analytics (new).
  2. Navigate to Reports, Custom reports, Goals, or Ecommerce .
  3. On the left, click a report that you want to work with.
  4. Click a three-dot icon next to the report section that you want to use.
  5. API call definition in Piwik PRO.
  6. Click View API call definition.
  7. API call definition in Piwik PRO.
  8. Copy an API endpoint or API query.
API call definition in Piwik PRO.
  • API endpoint shows where the call needs to be sent.
  • API query asks the database for listed information.

Note: Each request must be authenticated.

For more about HTTP API, read our developers documentation.

Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at

We’re happy to help!