Dear Amplitude Support,
Currently I am trying to pull a specific dashboard from below,
https://analytics.amplitude.com/adform/chart/i8u86h8
Using the Python code as below,
payload = {}headers = {"Authorization": os.environ.get("AUTHORIZATION_KEY")}
def pulldata(url): response = requests.request("GET", url, headers=headers, data=payload) if response.status_code == 429: time.sleep(300) pulldata(url) data = response.json() df = pd.json_normalize(data) df = df[["data.series", "data.seriesLabels", "data.xValues"]] return df
I called the pulldata function as below, which returns huge amount of data
logintrack = pulldata("https://amplitude.com/api/3/chart/i8u86h8/query")logintrack["Type"] = "Active User"logintrack["UI"] = "Regular UI"logintrack.to_csv("Checking.csv")
In the original dashboard there’s a profile id with specific value eg. “XYZ” with multiple data throughout the year. However, that specific profile id “XYZ” does ot show up when I try to pull it via Dashboard API.
Do you know what might be the problem?
Thank you!