---
updatedAt: 2026-10-05T13:51:36.000Z
agentTools:
  projectIndex: https://developers.apptweak.com/llms.txt
---

# App Metrics - History

Get the historical metrics of an app (downloads, revenues, ratings & app power). <br/><br/> <b>Price</b><table><thead><tr><th>Data</th><th>Credits</th><th>Per</th></tr></thead><tbody><tr><td>Ratings</td><td>5</td><td>app and metric</td></tr><tr><td>Daily ratings</td><td>5</td><td>app and metric</td></tr><tr><td>App Power</td><td>5</td><td>app and metric</td></tr><tr><td>Download estimates</td><td>50</td><td>app and metric</td></tr><tr><td>Revenue estimates</td><td>50</td><td>app and metric</td></tr></tbody></table> <br/><br/> Any date range up to 1 year costs the same. <br/><br/> Metrics returned as `null` are still charged. <br/><br/> Requesting `downloads` or `revenues` requires estimates access. Existing plans retain access; new Lite, Pro and Power plans do not include it. <br/><br/> <Callout icon="🚧" theme="warn"><b>Missing app ratings data?</b><p>If you're not seeing some data that is appearing on the store, it's probably because the app is not followed and we haven't fetched data for it. You should make sure to follow the app through our ASO tool to ensure its data is fetched daily.</p></Callout>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1",
    "title": "App Store API",
    "contact": {
      "name": "AppTweak",
      "email": "support@apptweak.com"
    }
  },
  "servers": [
    {
      "url": "https://public-api.apptweak.com/api/public/store"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "App Metrics",
      "description": "Returns analytics data for applications that AppTweak has been able to gather or estimate."
    }
  ],
  "paths": {
    "/apps/metrics/history.json": {
      "get": {
        "summary": "App Metrics - History",
        "description": "Get the historical metrics of an app (downloads, revenues, ratings & app power). <br/><br/> <b>Price</b><table><thead><tr><th>Data</th><th>Credits</th><th>Per</th></tr></thead><tbody><tr><td>Ratings</td><td>5</td><td>app and metric</td></tr><tr><td>Daily ratings</td><td>5</td><td>app and metric</td></tr><tr><td>App Power</td><td>5</td><td>app and metric</td></tr><tr><td>Download estimates</td><td>50</td><td>app and metric</td></tr><tr><td>Revenue estimates</td><td>50</td><td>app and metric</td></tr></tbody></table> <br/><br/> Any date range up to 1 year costs the same. <br/><br/> Metrics returned as `null` are still charged. <br/><br/> Requesting `downloads` or `revenues` requires estimates access. Existing plans retain access; new Lite, Pro and Power plans do not include it. <br/><br/> <Callout icon=\"🚧\" theme=\"warn\"><b>Missing app ratings data?</b><p>If you're not seeing some data that is appearing on the store, it's probably because the app is not followed and we haven't fetched data for it. You should make sure to follow the app through our ASO tool to ensure its data is fetched daily.</p></Callout>",
        "operationId": "app-metrics-history",
        "tags": [
          "App Metrics"
        ],
        "parameters": [
          {
            "name": "apps",
            "in": "query",
            "description": "Comma-separated list of app IDs (max 5). <a href=\"https://developers.apptweak.com/reference/how-to-find-app-ids\" target=\"_blank\"><b>How to find App IDs?</b></a>",
            "required": true,
            "example": "835599320",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metrics",
            "in": "query",
            "description": "Comma separated list of metrics.",
            "required": true,
            "example": "downloads,ratings",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "Start date (YYYY-MM-DD). Send both dates or omit both. Maximum range: one full calendar year. Defaults to 30 days ago.",
            "required": false,
            "example": "2026-06-01",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "End date (YYYY-MM-DD). Defaults to yesterday.",
            "required": false,
            "example": "2026-07-01",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Two-letter country code (`us`, `gb`, `fr`). Accepted values: <a href=\"https://developers.apptweak.com/reference/countries-1\" target=\"_blank\"><code>GET /api/public/apptweak/countries</code></a> with `store=ios` or `store=android`. You can only pass one country code. Defaults to us.",
            "required": false,
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "AppTweak language code, not always ISO: US English is `us`, US Spanish `sp`. Accepted pairs: <a href=\"https://developers.apptweak.com/reference/languages-1\" target=\"_blank\"><code>GET /api/public/apptweak/languages</code></a> with `store=ios` or `store=android`. These metrics do not vary by language: the value is checked against the country and then not used. Defaults to the country's <a href=\"https://developers.apptweak.com/reference/languages-overview#default-language\" target=\"_blank\"><b>default language</b></a>.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "Choose a device from iphone, ipad or android. Defaults to iphone.",
            "required": false,
            "schema": {
              "default": "iphone",
              "type": "string",
              "enum": [
                "iphone",
                "ipad",
                "android"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "title": "App ID",
                        "description": "Keyed by app ID (numeric App Store ID on iOS, package name on Google Play). Only the metrics requested via the `metrics` parameter are present, each as one entry per day in the requested range.",
                        "properties": {
                          "downloads": {
                            "type": "array",
                            "description": "One entry per day in the requested range.",
                            "items": {
                              "$ref": "#/components/schemas/DownloadsPoint"
                            }
                          },
                          "revenues": {
                            "type": "array",
                            "description": "One entry per day in the requested range.",
                            "items": {
                              "$ref": "#/components/schemas/RevenuesPoint"
                            }
                          },
                          "ratings": {
                            "type": "array",
                            "description": "One entry per day in the requested range.",
                            "items": {
                              "$ref": "#/components/schemas/RatingsPoint"
                            }
                          },
                          "daily-ratings": {
                            "type": "array",
                            "description": "One entry per day in the requested range.",
                            "items": {
                              "$ref": "#/components/schemas/DailyRatingsPoint"
                            }
                          },
                          "app-power": {
                            "type": "array",
                            "description": "One entry per day in the requested range.",
                            "items": {
                              "$ref": "#/components/schemas/AppPowerPoint"
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "$ref": "#/components/schemas/ResponseMetadata"
                    }
                  }
                },
                "examples": {
                  "iOS": {
                    "value": {
                      "result": {
                        "1521236603": {
                          "downloads": [
                            {
                              "value": 886,
                              "date": "2022-11-01",
                              "precision": 1
                            },
                            {
                              "value": 745,
                              "date": "2022-11-02",
                              "precision": 1
                            },
                            {
                              "value": 802,
                              "date": "2022-11-03",
                              "precision": 1
                            }
                          ],
                          "revenues": [
                            {
                              "value": 9228,
                              "date": "2022-11-01",
                              "precision": 1,
                              "currency": "USD"
                            },
                            {
                              "value": 8656,
                              "date": "2022-11-02",
                              "precision": 1,
                              "currency": "USD"
                            },
                            {
                              "value": 9926,
                              "date": "2022-11-03",
                              "precision": 1,
                              "currency": "USD"
                            }
                          ],
                          "ratings": [
                            {
                              "value": 4.791,
                              "breakdown": {
                                "1": 233,
                                "2": 130,
                                "3": 161,
                                "4": 303,
                                "5": 8475,
                                "total": 9302,
                                "avg": 4.791
                              },
                              "date": "2022-11-01"
                            },
                            {
                              "value": 4.79,
                              "breakdown": {
                                "1": 235,
                                "2": 130,
                                "3": 161,
                                "4": 303,
                                "5": 8495,
                                "total": 9324,
                                "avg": 4.79
                              },
                              "date": "2022-11-02"
                            },
                            {
                              "value": 4.79,
                              "breakdown": {
                                "1": 235,
                                "2": 131,
                                "3": 161,
                                "4": 303,
                                "5": 8505,
                                "total": 9335,
                                "avg": 4.79
                              },
                              "date": "2022-11-03"
                            }
                          ],
                          "daily-ratings": [
                            {
                              "breakdown": {
                                "1": 0,
                                "2": 0,
                                "3": 1,
                                "4": 0,
                                "5": 9
                              },
                              "date": "2022-11-01",
                              "value": 4.8
                            },
                            {
                              "breakdown": {
                                "1": 2,
                                "2": 0,
                                "3": 0,
                                "4": 0,
                                "5": 20
                              },
                              "date": "2022-11-02",
                              "value": 4.636363636363637
                            },
                            {
                              "breakdown": {
                                "1": 0,
                                "2": 1,
                                "3": 0,
                                "4": 0,
                                "5": 10
                              },
                              "date": "2022-11-03",
                              "value": 4.7272727272727275
                            }
                          ],
                          "app-power": [
                            {
                              "value": 40.6,
                              "date": "2022-11-01"
                            },
                            {
                              "value": 40.8,
                              "date": "2022-11-02"
                            },
                            {
                              "value": 40.8,
                              "date": "2022-11-03"
                            }
                          ]
                        }
                      },
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/apps/metrics/history.json",
                          "params": {
                            "device": "iphone",
                            "country": "us",
                            "language": "us",
                            "start_date": "2022-11-01",
                            "end_date": "2022-11-03",
                            "apps": [
                              "1521236603"
                            ],
                            "metrics": [
                              "downloads",
                              "revenues",
                              "ratings",
                              "daily-ratings",
                              "app-power"
                            ]
                          },
                          "cost": 115,
                          "status": 200,
                          "charge_type": "credits"
                        },
                        "response": null
                      }
                    }
                  },
                  "Android": {
                    "value": {
                      "result": {
                        "com.reddit.frontpage": {
                          "downloads": [
                            {
                              "value": 20390,
                              "date": "2022-02-01",
                              "precision": 1
                            },
                            {
                              "value": 21658,
                              "date": "2022-02-02",
                              "precision": 1
                            },
                            {
                              "value": 21481,
                              "date": "2022-02-03",
                              "precision": 1
                            }
                          ],
                          "revenues": [
                            {
                              "value": 5571,
                              "date": "2022-02-01",
                              "precision": 1,
                              "currency": "USD"
                            },
                            {
                              "value": 5138,
                              "date": "2022-02-02",
                              "precision": 1,
                              "currency": "USD"
                            },
                            {
                              "value": 5015,
                              "date": "2022-02-03",
                              "precision": 1,
                              "currency": "USD"
                            }
                          ],
                          "ratings": [
                            {
                              "value": 4.109,
                              "breakdown": {
                                "1": 333406,
                                "2": 68804,
                                "3": 108295,
                                "4": 383352,
                                "5": 1509145,
                                "total": 2403002,
                                "avg": 4.109
                              },
                              "date": "2022-02-01"
                            },
                            {
                              "value": 4.114,
                              "breakdown": {
                                "1": 331180,
                                "2": 68559,
                                "3": 108000,
                                "4": 384934,
                                "5": 1512648,
                                "total": 2405321,
                                "avg": 4.114
                              },
                              "date": "2022-02-02"
                            },
                            {
                              "value": 4.111,
                              "breakdown": {
                                "1": 333312,
                                "2": 68376,
                                "3": 107947,
                                "4": 385217,
                                "5": 1512703,
                                "total": 2407555,
                                "avg": 4.111
                              },
                              "date": "2022-02-03"
                            }
                          ],
                          "app-power": [
                            {
                              "value": 98.8,
                              "date": "2022-02-01"
                            },
                            {
                              "value": 98.8,
                              "date": "2022-02-02"
                            },
                            {
                              "value": 98.8,
                              "date": "2022-02-03"
                            }
                          ]
                        }
                      },
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/apps/metrics/history.json",
                          "params": {
                            "device": "android",
                            "country": "us",
                            "language": "us",
                            "start_date": "2022-02-01",
                            "end_date": "2022-02-03",
                            "apps": [
                              "com.reddit.frontpage"
                            ],
                            "metrics": [
                              "downloads",
                              "revenues",
                              "ratings",
                              "app_power"
                            ]
                          },
                          "cost": 110,
                          "status": 200,
                          "charge_type": "credits"
                        },
                        "response": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. Unknown or missing API token."
          },
          "403": {
            "description": "NotEnoughCreditsError: insufficient credits. EstimatesNotInPlanError: estimates access is missing. Either error rejects the whole request at no charge.",
            "content": {
              "application/json": {
                "examples": {
                  "Estimates not included in the plan": {
                    "value": {
                      "error": {
                        "code": "EstimatesNotInPlanError",
                        "message": "Your API plan does not include download and revenue estimates. Contact our sales team to upgrade to an Enterprise plan."
                      },
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/apps/metrics/history.json",
                          "params": {
                            "apps": "1521236603",
                            "metrics": "downloads,ratings",
                            "country": "us",
                            "device": "iphone",
                            "start_date": "2026-08-10",
                            "end_date": "2026-08-12"
                          },
                          "cost": 0,
                          "status": 403
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation error. Returned when a parameter is invalid (free), or with the code `AppNotAvailableError` when a requested app is not available in the country, language and device (costs 1 credit).",
            "content": {
              "application/json": {
                "examples": {
                  "App not available": {
                    "value": {
                      "error": {
                        "code": "AppNotAvailableError",
                        "parameter": "apps",
                        "reason": "One or more apps are not available for the given country, language and device."
                      },
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/apps/metrics/history.json",
                          "params": {
                            "apps": "1521236603",
                            "metrics": "downloads,ratings",
                            "country": "us",
                            "device": "iphone",
                            "start_date": "2026-08-10",
                            "end_date": "2026-08-12"
                          },
                          "cost": 1,
                          "status": 422
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-apptweak-key",
        "in": "header"
      }
    },
    "schemas": {
      "DownloadsPoint": {
        "type": "object",
        "title": "Downloads",
        "description": "First-time download estimate for one day.",
        "properties": {
          "value": {
            "type": "integer",
            "nullable": true,
            "description": "Estimated first-time downloads. Null on a day AppTweak holds no estimate for the app: the range is filled in day by day whether or not each day carries a figure."
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Day (YYYY-MM-DD) the estimate refers to."
          },
          "precision": {
            "type": "number",
            "description": "Indicator of how accurate the estimate is."
          }
        }
      },
      "RevenuesPoint": {
        "type": "object",
        "title": "Revenues",
        "description": "Daily revenue estimate for one day.",
        "properties": {
          "value": {
            "type": "integer",
            "nullable": true,
            "description": "Estimated revenue, in the currency given below. Null on a day AppTweak holds no estimate for the app."
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Day (YYYY-MM-DD) the estimate refers to."
          },
          "precision": {
            "type": "number",
            "description": "Indicator of how accurate the estimate is."
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency of `value`, e.g. USD."
          }
        }
      },
      "RatingsPoint": {
        "type": "object",
        "title": "Ratings",
        "description": "All-time rating counts as they stood on the given day.",
        "properties": {
          "value": {
            "type": "number",
            "nullable": true,
            "description": "Average score, same figure as `breakdown.avg`. Null on a day AppTweak holds no rating counts for the app, in which case `breakdown` is null too."
          },
          "breakdown": {
            "type": "object",
            "nullable": true,
            "description": "Cumulative count per star level, plus the total and the average. Null on a day AppTweak holds no rating counts for the app.",
            "properties": {
              "1": {
                "type": "integer",
                "description": "Number of 1-star ratings."
              },
              "2": {
                "type": "integer",
                "description": "Number of 2-star ratings."
              },
              "3": {
                "type": "integer",
                "description": "Number of 3-star ratings."
              },
              "4": {
                "type": "integer",
                "description": "Number of 4-star ratings."
              },
              "5": {
                "type": "integer",
                "description": "Number of 5-star ratings."
              },
              "total": {
                "type": "integer",
                "description": "Sum of the five counts."
              },
              "avg": {
                "type": "number",
                "description": "Average score."
              }
            }
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Day (YYYY-MM-DD) the counts refer to."
          }
        }
      },
      "DailyRatingsPoint": {
        "type": "object",
        "title": "Daily ratings",
        "description": "Ratings received on that day alone.",
        "properties": {
          "value": {
            "type": "number",
            "nullable": true,
            "description": "Average score of the ratings received that day. Null in Current when no daily rating can be computed; History omits uncomputable days."
          },
          "breakdown": {
            "type": "object",
            "nullable": true,
            "description": "Number of new ratings per star level on that day. Null in Current when no daily rating can be computed.",
            "properties": {
              "1": {
                "type": "integer",
                "description": "New 1-star ratings."
              },
              "2": {
                "type": "integer",
                "description": "New 2-star ratings."
              },
              "3": {
                "type": "integer",
                "description": "New 3-star ratings."
              },
              "4": {
                "type": "integer",
                "description": "New 4-star ratings."
              },
              "5": {
                "type": "integer",
                "description": "New 5-star ratings."
              }
            }
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Day (YYYY-MM-DD) the ratings were received. For an unavailable Current point, this is the current request day."
          }
        }
      },
      "AppPowerPoint": {
        "type": "object",
        "title": "App Power",
        "description": "App Power score for one day, derived from the app's rankings in its own category and in the overall category.",
        "properties": {
          "value": {
            "type": "number",
            "nullable": true,
            "description": "Score out of 100. Null on a day AppTweak holds no App Power for the app."
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Day (YYYY-MM-DD) the score refers to."
          }
        }
      },
      "ResponseMetadata": {
        "type": "object",
        "description": "Standard response envelope, identical on every endpoint.",
        "properties": {
          "request": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "description": "The path that was called."
              },
              "params": {
                "type": "object",
                "nullable": true,
                "description": "The query as the API parsed it, with defaults applied."
              },
              "cost": {
                "type": "integer",
                "description": "Credit cost of the request. Thread tokens do not debit credits."
              },
              "charge_type": {
                "type": "string",
                "enum": [
                  "credits",
                  "thread"
                ],
                "description": "How the request is paid. `credits`: debited from the company's balance. `thread`: an unlimited token, not debited; `cost` shows what the request is worth."
              },
              "status": {
                "type": "integer",
                "description": "HTTP status of the response."
              }
            }
          },
          "response": {
            "type": "object",
            "nullable": true,
            "description": "Endpoint-specific notes; null when there are none."
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```