Based on the category of the given application, AppTweak can provide an estimation of the generated revenues on the selected period (dates range) in the chosen country.
The two letter country code (ISO Alpha-2) you want to fetch the app in.
us. Get the list of our country codes, here.
The device you want to fetch the application for.
iphone or ipad
Start date, format: YYYY-MM-DD
End date, format: YYYY-MM-DD
GET /ios/applications/618783545/revenues.json?country=es&start_date=2018-09-01&end_date=2018-09-15&device=iphone
curl -X GET -H "X-Apptweak-Key: ${API_KEY}" "https://api.apptweak.com/ios/applications/618783545/revenues/downloads.json?country=es&start_date=2018-09-01&end_date=2018-09-15&device=iphone"
The response for the Revenues Estimates request is a JSON hash containing all the values calculated by AppTweak for the given application in the selected country and period (dates range) on the App Store.
Key/value pairs containing the history of the revenues estimates on the selected period per device.
The list of devices the app is available on. Can contain : ipad, ipod and iphone.
Start date for the selected period.
End date for the selected period.
Array of numbers (integer) listing all the revenues estimates for each day on the selected period.
Array of numbers (float) listing the AppTweak confidence about the calculated revenues estimates for each day on the selected period.
{
"content": {
"us": [
{
"start_date": "2018-11-01",
"end_date": "2018-11-15",
"device": "iphone",
"revenues": [
31316.0,
30651.0,
29402.0,
29402.0,
31316.0,
33115.0,
28531.000000000004,
34709.0,
30651.0,
28252.0,
28815.0,
28815.0,
29106.000000000004,
31660.000000000004,
35132.0
],
"precision": [
0.7744326365374355,
0.7744326365374355,
0.7744326365374355,
0.7744326365374355,
0.7744326365374355,
0.7744326365374355,
0.7742781706843725,
0.7744326365374355,
0.7744326365374355,
0.7742781706843725,
0.7742781706843725,
0.7742781706843725,
0.7742781706843725,
0.7744326365374355,
0.7744326365374355
]
}
]
},
"metadata": {
"request": {
"path": "/applications/341232718/revenues.json",
"store": "ios",
"params": {
"country": "us",
"device": "iphone",
"start_date": "2018-11-01T00:00:00+00:00",
"end_date": "2018-11-15T00:00:00+00:00",
"id": "341232718",
"format": "json"
},
"performed_at": "2018-11-21 17:23:40 UTC"
},
"content": {
}
}
}