Revenues Estimates

GET 75 Credits / Request + 25 Credits / Request / 30 days /ios/applications/{APPLICATION_ID}/revenues.json

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.

Revenues Estimates Request

Header parameters
X-AppTweak-Key:
Your AppTweak API Key.
Path parameters
APPLICATION_ID:
Application ID for which you want to get the metadata.
Query parameters
country: string us Required

The two letter country code (ISO Alpha-2) you want to fetch the app in.

us. Get the list of our country codes, here.

device: string iphone

The device you want to fetch the application for.

iphone or ipad

start_date: date

Start date, format: YYYY-MM-DD

end_date: date

End date, format: YYYY-MM-DD

GET /ios/applications/{APPLICATION_ID}/revenues.json

Request example
GET /ios/applications/618783545/revenues.json?country=es&start_date=2018-09-01&end_date=2018-09-15&device=iphone
cURL example
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"

Revenues Estimates Response

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.

Object properties
country_code (e.g. us): array

Key/value pairs containing the history of the revenues estimates on the selected period per device.

CHILD PROPERTIES

device: array

The list of devices the app is available on. Can contain : ipad, ipod and iphone.

start_date: datetime

Start date for the selected period.

end_date: datetime

End date for the selected period.

revenues: array

Array of numbers (integer) listing all the revenues estimates for each day on the selected period.

precisions: array

Array of numbers (float) listing the AppTweak confidence about the calculated revenues estimates for each day on the selected period.

Response Example

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