App Store - App Analytics Product Page Views

Is it possible to get app analytics data such as product page views from an Apple Api?

See below image showing the data we're looking to get from an API.

I've seen code like below. Is this the way to get app analytics data? The below code isn't quite complete. Is there documentation somewhere of how to get this data properly?

Is this URL an internal URL that shouldn't be used? https://appstoreconnect.apple.com/analytics/api/v1/data/time-series

import requests
import json

url = "https://appstoreconnect.apple.com/analytics/api/v1/data/time-series"
adamId = "0000000000" # App ID
measures = "installs" # or "impressionsTotalUnique"

cookie_dqsid = "dqsid=ey...." # ?????

payload = json.dumps({
  "adamId": [adamId],
  "measures": [measures],
  "frequency": "day",
  "startTime": "2021-10-16T00:00:00Z",
  "endTime": "2021-11-14T00:00:00Z",
  "group": {
    "metric": measures,
    "dimension": "source",
    "rank": "DESCENDING",
    "limit": 100
  }
})

headers = {
  'Host': 'appstoreconnect.apple.com',
  'X-Requested-By': 'dev.apple.com',
  'Cookie': cookie_dqsid,
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload, allow_redirects=False)

print(response.text)