I can get analytics data from API but I do not how I can get "dqsid"? I take it from the browser cookie but I want to get "dqsid" param from API. Do you have any ideas?
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)
Post
Replies
Boosts
Views
Activity
I can get analytics data from API but I do not how I can get "dqsid"? I take it from the browser cookie but I want to get "dqsid" param from API. Do you have any ideas?
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)
I can get analytics data from API but I do not how I can get "dqsid"? I take it from the browser cookie but I want to get "dqsid" param from API. Do you have any ideas?
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)
I can get analytics data from API but I do not how I can get "dqsid"? I take it from the browser cookie but I want to get "dqsid" param from API. Do you have any ideas?
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)
I can get analytics data from API but I do not how I can get "dqsid"?
I take it from the browser cookie but I want to get "dqsid" param from API.
Do you have any ideas?
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)
I can get analytics data from API but I do not how I can get "dqsid"?
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)
Me too. They have an internal API https://appstoreconnect.apple.com/analytics/api/v1/data/time-series
Me too.
They have an internal API
https://appstoreconnect.apple.com/analytics/api/v1/data/time-series