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.
  2. Navigate to ReportsCustom reportsGoals, or Ecommerce .
  3. On the left, click a report that you want to work with.
  4. Click the three-dot icon next to the report section that you want to use.
    View API call definition in Piwik PRO
  5. Click View API call definition.
    View API call definition in Piwik PRO
  6. Copy an API endpoint or API query.
    View 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 our API, read our developer documentation.

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center