Solved

Pull data from dashboard or report in Python

  • 21 July 2023
  • 3 replies
  • 390 views

Badge

Hello,

I’m looking to pull data directly from a dashboard or report in Python. Are there any APIs supporting the same ? The reason I cannot go with the export csv path is because I’ve a python script that needs to be automated. 

I see Amplitude has APIs to pull from an event but I’ve complex reports with multiple events, group by and month over month analysis and hence I’m thinking of pulling directly from existing dashboard/report instead of an event. Thanks!

icon

Best answer by Saish Redkar 21 July 2023, 17:16

View original

3 replies

Userlevel 7
Badge +10

Hi @srushti.wadekar 

The existing chart endpoint from the Dashboard API should work in this case.

 

Badge

Thanks @Saish Redkar!

Can this also be done using Python’s Amplitude library ? 

Userlevel 7
Badge +10

Are you referring to the Python SDK? If yes, then it’s used for data instrumentation on your Python app.

I usually write a .py script using Requests library to pull data from that endpoint.

I’m not sure if there are 3rd party Python libraries out there which give you an interface for tapping into the Dashboard API.

 

 

Reply