Python package for App Store Connect API.
It supports Python3.6.1+.
The complete documentation is here.
pip install app-store-connect-client
import app_store_connect_client as app_store
import json
app_id = '12345'
client = app_store.Client(username="XXX", password="XXX")
# query config.
config = {
'measures': [app_store.measures.installs]
}
query = app_store.Query(app_id).metrics(config).date_range('2016-04-01', '2016-04-02')
results = client.execute(query)
print(json.dumps(results, indent=4))
{
"size": 1,
"results": [
{
"adamId": "12345678",
"meetsThreshold": true,
"group": null,
"data": [
{
"date": "2020-04-01T00:00:00Z",
"installs": 50.0
}
],
"totals": {
"value": 50.0,
"type": "COUNT",
"key": "installs"
}
}
]
}