shmokmt / app-store-connect-client

Deprecated: Python package for App Store Connect Analytics API. (ex-iTunes Connect Analytics)
https://pypi.org/project/app-store-connect-client/
MIT License
3 stars 2 forks source link
analytics app-store itc itunes-connect poerty python3 yet-another

app store connect client

Python package for App Store Connect API.

python_version Release latest_version LICENSE

It supports Python3.6.1+.

The complete documentation is here.

Installation

pip install app-store-connect-client

Getting Started

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))

results

{
    "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"
            }
        }
    ]
}

TODO

Credit

Related Projects

LICENSE

MIT

Authors