Get an app's daily metric history (rating, ratings count, installs, star histogram, price).
One row per country and day on which a value changed — carry the previous row forward for the days in between. Defaults to the last 90 days. Use it to chart growth or spot rating drops.
Request
curl "https://api.appgoat.ai/v1/apps/com.spotify.music/history" \
-H "x-api-key: $APPGOAT_API_KEY"const res = await fetch("https://api.appgoat.ai/v1/apps/com.spotify.music/history", {
headers: {
"x-api-key": process.env.APPGOAT_API_KEY,
},
});
const { data, meta } = await res.json();import os, requests
res = requests.get(
"https://api.appgoat.ai/v1/apps/com.spotify.music/history",
headers={"x-api-key": os.environ["APPGOAT_API_KEY"]}
)
body = res.json()Path parameters
appstringrequiredAny app identifier: App Store id (
284882215, id284882215), Play package (com.spotify.music), Apple bundle id (com.spotify.client), store URL (URL-encoded), apple:<id> / play:<id>, or a name (spotify).Query parameters
store"apple" | "play"Disambiguates
{app} (a bundle id vs a Play package, or a name).countrystringISO country code(s):
us (default), a comma list (paid plans), or all (Studio).Default "us"
fromstringStart date (ISO), default 90 days before
to.tostringEnd date (ISO), default today.
max_ageintegerRefresh from the store when our data is older than this many seconds (0 = always). Default 604800 (7 days).
Default 604800
waitbooleanBlock up to ~25 s for a refresh (default). false = answer immediately from cache with a job id.
Default true
Response
200 with data: HistoryPoint[]. See the envelope for meta.
countrystringdatestringratingnumber | nullratings_countinteger | nullreviews_countinteger | nullinstalls_mininteger | nullinstalls_exactinteger | nullhistograminteger[] | nullpricenumber | nullExample
{
"data": [
{
"country": "us",
"date": "2026-10-22",
"rating": 4.5,
"ratings_count": 1,
"reviews_count": 1,
"installs_min": 1,
"installs_exact": 1,
"histogram": [
1
],
"price": 4.5
}
],
"meta": {
"credits_used": 1,
"credits_remaining": 9981,
"request_id": "req_123"
}
}Status codes
200
Metric rows, by country then date.
A parameter is missing or invalid (
error.param names it).Missing or invalid API key.
insufficient_credits (the call costs more than you have left; nothing was done) or plan_limit (a feature of a higher plan).Nothing matches
{app}, or the store does not have it.429
rate_limitedToo many requests per second for your plan.