Popcurve API v1

Set the API base URL before running the examples. The JSON examples are trimmed responses from a smoke test with the EcoGPT baseline and recorded Apple responses.

BASE=https://popcurve.app/api/v1

All endpoints use GET. The v1 API is public and returns Access-Control-Allow-Origin: *. JSON property names and SSE payload types are defined in src/lib/api-types.ts. App IDs are positive safe integers, storefront codes are two letters from the supported markets, and dates and week boundaries use UTC. Input country codes are case-insensitive and output codes are lowercase.

q is required and accepts 1–120 characters after trimming. An explicit country selects the storefront. When country is omitted, the service uses x-vercel-ip-country if it is a supported market and falls back to the US otherwise. The selected storefront comes first, with additional US results merged in and duplicate app IDs removed. Ratings are local to the storefront that supplied each result. The home page starts with the visitor's storefront, remembers changes in the gt-storefront cookie and always sends the selected code as country.

curl -sS "$BASE/search?q=EcoGPT"
{
  "results": [
    {
      "id": 6756059656,
      "name": "EcoGPT",
      "developer": "EcoGPT Inc",
      "rating": 4.77708,
      "ratingCount": 13238,
      "genre": "Productivity"
    }
  ]
}

Overview · /apps/{id}

Returns app metadata, all 40 storefronts sorted by rating count, the global rating, and sync status. A market without a snapshot has a null rating and date, and a count of zero. settled marks storefront lookups completed in the latest sync, including storefronts where Apple returned no result. Before the first sync, existing snapshots mark settled storefronts. share is a fraction from 0 through 1. lowVolume is true below 10 ratings. The global average weights each available storefront rating by its count and is null when the total is below five.

growthScore contains the daily score, confidence and history for eligible apps. See Growth Score.

ratingsGrowth reports rating volume and observed changes.

First requests for an unknown ID check Apple's US storefront and fall back to the other supported markets if needed. When found, the app is queued for ingestion and can return with zero snapshots. An app becomes fresh after its lookups and review backfill finish successfully, remains fresh for six hours, and is stale when its data is older and no full sync is active. syncing means a full sync is active. Summary generation can still be queued after the app becomes fresh. pendingJobs includes running and retry-delayed app jobs.

curl -sS "$BASE/apps/6756059656"
{
  "app": {
    "id": 6756059656,
    "name": "EcoGPT",
    "developer": "EcoGPT Inc",
    "bundleId": "com.improvement.ecogpt",
    "primaryGenreId": 6007,
    "primaryGenreName": "Productivity",
    "currentVersion": "5.8.6",
    "currentVersionReleasedAt": "2026-11-27T08:54:59.000Z"
  },
  "markets": [
    {
      "cc": "us",
      "name": "United States",
      "flag": "🇺🇸",
      "rating": 4.77708,
      "count": 13238,
      "share": 0.678280473433417,
      "version": "5.8.6",
      "snapshotDate": "2026-12-03",
      "settled": true,
      "lowVolume": false
    }
  ],
  "global": {
    "weightedAverage": 4.764461174873188,
    "totalRatings": 19517,
    "marketsWithRatings": 40
  },
  "ratingsGrowth": {
    "totalRatings": 19517,
    "asOf": "2026-12-03",
    "last24h": null,
    "last7d": null,
    "last30d": null,
    "sinceTracking": {
      "from": "2026-07-27", "to": "2026-12-03", "gained": 7344,
      "percentChange": 60.3302390536, "storefronts": 40, "multiple": 1.6033023905
    },
    "series": [{ "date": "2026-07-27", "count": 12173 }, { "date": "2026-12-03", "count": 19517 }]
  },
  "growthScore": { "score": null, "label": null, "confidence": "low", "components": [], "readyInDays": 5, "history": [] },
  "sync": {
    "state": "fresh",
    "lastFullSyncAt": "2026-12-03T17:11:56.841Z",
    "pendingJobs": 0
  }
}

App and company list rankings · /apps and /lists/{slug}

/apps ranks popular apps with a landing page. Optional category takes a category slug such as productivity, and limit accepts 1–100 with a default of 25. /lists/{slug} ranks the matched apps for a curated company list. Available slugs are lenny-100 and lenny-next-50. Company lists also return the source, edition, matched-app company and valuation, and counts of companies without a match and awaiting matching.

Both endpoints return sort and results. Rows include rank, id, name, path, iconUrl, rating and ratingsGrowth.

curl -sS "$BASE/apps?category=productivity&limit=10"
curl -sS "$BASE/lists/lenny-100?sort=ratings"

Google Play · /apps/{id}/android

Returns Android data for a stored App Store ID. twin identifies the matched Google Play package, its store URL and the match method (seller_domain, developer_name or manual). An app without a twin returns null for twin and latest and empty arrays. An unknown App Store ID returns 404 app_not_found.

latest is the latest listing snapshot and history contains up to 366 captured days, newest first, including latest. Play rating and rating count are global. Price-related data and chart placement reflect the US listing. Install estimates and milestones are Play-sourced and may be null. reviews contains up to 20 of the newest stored US written review excerpts, with stars, version, publication date, helpful count, optional developer reply excerpt and a Google Play deep link. Each excerpt is limited to 280 characters. The response is cached for two minutes when a twin exists.

ratingsGrowth contains the latest observed global count, reset-aware comparisons and a series of recorded counts. Its storefronts coverage counts the single global series. The read-only MCP tool get_android returns the same Android fields and accepts an App Store ID, Popcurve slug or app name. MCP tools

curl -sS "$BASE/apps/6448311069/android"
{
  "twin": {
    "package": "com.openai.chatgpt",
    "matchMethod": "seller_domain",
    "confidence": 1,
    "storeUrl": "https://play.google.com/store/apps/details?id=com.openai.chatgpt"
  },
  "latest": {
    "day": "2026-12-04",
    "rating": 4.787233,
    "ratingCount": 70749994,
    "histogram": { "1": 1492721, "2": 459152, "3": 1424937, "4": 4854994, "5": 62518160 },
    "reviewCount": 216454,
    "installsEstimate": 1768425327,
    "installsMin": 1000000000,
    "installsDisplay": "1,000,000,000+",
    "chartLabel": "top free productivity",
    "chartRank": 2,
    "version": "1.2026.328",
    "updatedAt": "2026-11-27T17:53:22.000Z",
    "inAppPurchases": "$8.00 - $500.00 per item"
  },
  "history": [],
  "reviews": [],
  "ratingsGrowth": {
    "totalRatings": 70749994,
    "asOf": "2026-12-04",
    "last24h": null,
    "last7d": null,
    "last30d": null,
    "sinceTracking": null,
    "series": []
  }
}

This example omits history entries and review excerpts. API requests read Postgres only and use zero Firecrawl credits. Collection uses Firecrawl Alexandria’s play-google-com tools for search, listing and review pages. Each upstream attempt reserves five credits before the call, including failures and the one permitted retry. Responses are cached for 24 hours, and cache hits use zero credits. The shared UTC daily ceiling defaults to 3,000 credits and is configurable with server-side PLAY_DAILY_CREDIT_CAP. The queue defers work until the next UTC day when fewer than five credits remain. Firecrawl Alexandria API

Version history · /apps/{id}/versions

Returns captured App Store versions and versions reconstructed from written reviews, newest first. Numeric versions use version precedence (5.10.0 comes before 5.9.2), including prereleases. Unstructured labels keep their date-based positions. Apple’s captured release date takes precedence. Otherwise releasedAt is the earliest stored review and releasedAtExact is false. If neither date is available, releasedAt is null. The service prefers captured US release dates and notes and uses other storefronts to fill gaps. Full release notes retain line breaks. firstSeenAt is the earliest listing observation when available.

reviews, avgStars, lowStarShare (a 0–1 fraction), and countries describe the stored written reviews for that version across storefronts. A captured version with no reviews has zero reviews, null averages and review dates, and an empty country list. other counts versions with one or two reviews and the reviews attributed to them. Those versions are omitted from versions unless there is a captured listing or release record, and the rating chart excludes them. Reviews without a version are excluded. An app without any version data returns an empty versions array and zero counts in other.

curl -sS "$BASE/apps/6756059656/versions"
{
  "versions": [
    {
      "version": "5.8.7",
      "releasedAt": "2026-12-04T00:34:22.000Z",
      "releasedAtExact": true,
      "releaseNotes": "Edit your Docs, Sheets and Slides more easily on your phone…",
      "firstSeenAt": "2026-12-04T08:42:24.293Z",
      "firstReviewAt": null,
      "lastReviewAt": null,
      "reviews": 0,
      "avgStars": null,
      "lowStarShare": null,
      "countries": []
    }
  ],
  "other": { "versions": 17, "reviews": 22 }
}

Storefront listing · /apps/{id}/listing

Optional country defaults to us. Optional lang selects a country-specific locale such as fr-CA or de-CH and defaults to the storefront’s unqualified response locale. The response includes country, lang, and the full Apple lookup object in listing.data, along with the UTC time and SHA-256 hash of the latest recorded listing change. changes lists observations newest first and gives the top-level fields that changed relative to the previous observation. The first observation has an empty field list. Rating and rating-count changes, including current-version ratings, do not create listing changes. Rating values inside listing.data reflect the time of that listing observation. For a known app with no lookup capture in the requested storefront and language, listing is null and changes is empty.

productPage is null until a product page is captured for the requested storefront and language. It contains the UTC observation time, SHA-256 hash, and data with product-page fields. These include the title, subtitle, promotional text when available, relevant headings, ordered purchases, privacy labels, age rating and reasons, Editors’ Choice, chart badge, supported language names, developer links, events, and public version history. A missing field means it was unavailable in the parsed capture.

curl -sS "$BASE/apps/6756059656/listing?country=ca&lang=fr-CA"

Listing changes · /apps/{id}/changes and /changes

Both return changes sorted newest first and nextOffset for pagination. Each change has a string appId, storefront country, BCP 47 lang, field, UTC observedAt, and JSON before and after values. Initial observations establish a baseline. Text values are returned in full, prices include amount and currency, and image values use archived content hashes for default locales when captured. Localized image changes use the lookup URLs. The app response includes languages represented by its timeline. The cross-app response adds appName, path, and icon to each change and returns the effective since value.

curl -sS "$BASE/apps/6756059656/changes?country=ca&lang=fr-CA"
curl -sS "$BASE/changes?since=2026-12-04&field=subtitle"

Rating history · /apps/{id}/history

Optional country, from, and to. Date boundaries are inclusive YYYY-MM-DD. The default starts at the first available snapshot and ends today. A requested range can span up to 3,660 days. Missing storefront values carry forward for up to three days. perMarket contains storefronts with coverage on that day. A gap has null totalRatings and weightedAverage, with no entries in perMarket. An observed count of zero remains zero. Reset markers contain the date, storefront, prior count, new count, and version when known.

curl -sS "$BASE/apps/6756059656/history?country=us&from=2026-07-27&to=2026-07-28"
{
  "series": [
    {
      "date": "2026-07-27",
      "totalRatings": 5894,
      "weightedAverage": 4.78096,
      "perMarket": {
        "us": {
          "count": 5894,
          "rating": 4.78096,
          "carried": false
        }
      }
    }
  ],
  "resets": []
}

Growth · /apps/{id}/growth

Returns a verdict, its underlying numbers and explanations, ISO-Monday written review counts, daily rating gains, the best chart movement, and the first-to-latest recorded rating totals. ratingTotals contains one point per observed snapshot date, summing the storefronts captured that day. ratingsVelocity[].gain is null when there is no comparable interval that day. perMarket holds the available gains. The long-range comparison uses the first snapshot day's total and the latest known observation in each market, so coverage can differ between the two ends. topMarketMovers contains up to five comparable storefronts ordered by absolute count change. Changes are signed. Spans of at least 14 days have a separate long-range explanation even when daily rating velocity is unavailable.

growthScore matches the object on the app overview.

curl -sS "$BASE/apps/6756059656/growth"
{
  "verdict": "insufficient_data",
  "basis": "none",
  "headline": "Not enough history",
  "explanation": [
    "Tracking began 27 Jul 2026; momentum appears once we have 14 days of daily snapshots.",
    "7,344 more ratings since 27 Jul 2026 (12,173 → 19,517, ×1.6), about 57 a day on average."
  ],
  "metrics": {
    "primary": null,
    "ratings": null,
    "reviews": null,
    "blendedRatio": null,
    "snapshotDays": 2,
    "completeWeeks": 0,
    "longRange": {
      "firstDate": "2026-07-27",
      "latestDate": "2026-12-03",
      "firstTotal": 12173,
      "latestTotal": 19517,
      "change": 7344,
      "topMarketMovers": [{ "cc": "us", "change": 7344 }]
    }
  },
  "weeklyReviews": [
    {
      "weekStart": "2026-11-30",
      "count": 3,
      "avgStars": 5,
      "partial": true
    }
  ],
  "ratingTotals": [
    { "date": "2026-07-27", "count": 12173 },
    { "date": "2026-12-03", "count": 19517 }
  ],
  "ratingsVelocity": [
    {
      "date": "2026-12-03",
      "gain": null,
      "perMarket": {}
    }
  ],
  "chartMovement": null,
  "growthScore": { "score": null, "label": null, "confidence": "low", "components": [], "readyInDays": 5, "history": [] }
}

How growth is calculated

Growth Score

The score is the weighted mean of the available component percentiles among apps scored on the same UTC day. A score of 90 corresponds to a weighted 90th percentile across the measured signals. The population includes apps with ratings that are popular, major, notable, matched to YC companies or tracked through their publisher. The daily job runs after the rating and chart snapshots land. Category filters use those same scores.

Component key Weight Calculation and value unit
ratingsMomentum 40% Mean ratings gained per day over the last seven days divided by the previous 28-day rate. Comparable storefronts have at least four recent and 14 baseline gain days. Ranking uses the log of the ratio clamped to 0.2–5. value is the raw ratio.
relativeVelocity 25% Reset-aware gains over seven days divided by counts at the start in the storefronts observed at both ends. value is a signed fraction.
reviewMomentum 15% Average written reviews per week over the latest four complete UTC Monday weeks divided by the preceding eight. All 12 weeks must be complete and non-truncated. Complete weeks can have zero reviews. value is the raw ratio.
chartMomentum 10% Sum of rank improvements across captured top 100 storefront, feed and category placements. Use the latest capture up to two days old and the capture seven to nine days before it. Entry starts at 101 and dropout ends at 101. Ranking uses the signed log(1 + abs(change)). value is the raw signed number of places.
spread 10% Share of currently rated storefronts with positive reset-aware seven-day gains. Growth requires coverage at both ends. value is a 0–1 fraction.

Rating endpoint counts carry forward for up to three days. Gains are spread over gaps up to 14 days. Reset intervals are omitted and small negative corrections are treated as zero. When both rates are zero the ratio is 1. A positive rate rising from zero has value: null and ranks above finite ratios before any clamp.

Ties use midpoint percentiles, a single app receives the 50th percentile, and the weights of available components are renormalised to sum to 1. The weighted mean is rounded to the nearest integer. Unless positive storefront gains sum to at least 10 ratings over seven days or the last four complete weeks averaged at least three written reviews per week, the score is capped at 59.

confidence is high with at least 21 distinct snapshot days and at least three available components. It is medium with seven or more snapshot days and an available component, or with both review and chart components. Otherwise it is low. A low score has null score and label, an empty components array, and readyInDays equal to the number of daily snapshots still needed to reach seven, with a minimum of one day while data is missing. Other scores have a null readyInDays. growthScore itself is null when the app has no eligible score or rating coverage.

Score Label
80–100 Surging
60–79 Growing
40–59 Steady
20–39 Cooling
0–19 Declining

Returned components have key, label, value, percentile on a 0–100 scale, and the renormalised weight. history contains {day, score} points in ascending date order for the 30 UTC days through the latest cohort. Gaps and low-confidence days are omitted.

Growth leaderboard · /growth/leaderboard

Returns {day, mode, results, fullScoresStart, chartClimbers}. Every row has rank, id, name, iconUrl, path, and category (a slug). Ranked app results also include rating and ratingsGrowth. Ranks start at 1 within the selected view.

curl -sS "$BASE/growth/leaderboard?category=productivity&limit=10&min_confidence=high"

App Store assets · /apps/{id}/assets

Optional country chooses a storefront and defaults to us. Each response has country, current and history. The newest captured set is current. The earlier sets are under history, newest first. A storefront with no captured set returns current: null and an empty history, as does a deployment without asset storage. Captures are compared by image bytes and by screenshot order.

Each set has an ISO UTC observedAt, a nullable icon, ordered screenshots and ipadScreenshots, and changes. When there is a previous set, changes contains boolean icon, screenshots and ipadScreenshots fields. The first captured set has changes: null. The timestamp is when Popcurve observed the storefront listing.

Each asset includes sha256, kind (icon, screenshot or ipad_screenshot), width and height in pixels, bytes, contentType, the immutable archive url, the original sourceUrl and the earliest firstSeenAt. A local disk archive returns origin-relative URLs. Where several storefronts or URLs serve identical bytes, the asset record retains the first source URL with those bytes. The original storefront URLs are also available in each listing capture.

curl -sS "$BASE/apps/6448311069/assets?country=us"

Populated asset responses use a two-minute shared cache. Image URLs use one-year immutable caching.

Breakouts · /breakouts

Optional days accepts 1–366 and defaults to 7 UTC dates, including today. country accepts a supported storefront code. It matches countries contributing positive ratings to a qualifying spike, a detected chart surge, or qualifying storefront spread. category accepts a primary category slug such as productivity. Omit either filter or pass an empty value for all results.

Returns { days, results }. Each result includes id, name, iconUrl, path, category (display name), categorySlug, day, strength, and signals. The latest matching day per app is returned, sorted by day descending, strength descending, then app ID ascending. Matching applies before selecting the latest day. Strength compares the most pronounced qualifying gain or chart move against its threshold, then adds 0.25 each for newness, storefront spread and qualifying through both ratings and charts. A top-100 entry contributes 1 + (100 - rank) / 100.

Responses have a two-minute shared cache. The website publishes the same seven-day scope at /viral and /viral/rss.xml.

curl -sS "$BASE/breakouts?days=7&country=US&category=productivity"

Chart ranks · /apps/{id}/ranks

Optional country and days (1–366, default 30). History is grouped by storefront, RSS feed and genre, with genreId: 0 for the overall chart. The tracked feeds are topfreeapplications, toppaidapplications, and topgrossingapplications. Missing days can mean the app fell outside the published chart or a capture is missing. current contains the latest confirmed placement per chart within the requested window and the last three UTC dates, ordered by best rank. A newer capture that omits the app ends its placement on that chart.

curl -sS "$BASE/apps/6741796873/ranks?country=us&days=30"
{
  "charts": [
    {
      "cc": "us",
      "feed": "topfreeapplications",
      "genreId": 0,
      "history": [
        {
          "date": "2026-12-03",
          "rank": 1
        }
      ]
    }
  ],
  "current": [
    { "cc": "us", "feed": "topfreeapplications", "genreId": 0, "date": "2026-12-03", "rank": 1 }
  ]
}

Daily App Store charts · /charts

curl -sS "$BASE/charts?country=us&chart=top-grossing&genre=games"
Parameter Value
country Required. One of us, gb, ca, au, de, fr, jp, kr, br, in, mx, es, it, nl, se, nz.
chart Required. top-free, top-paid or top-grossing.
genre Optional. A category slug such as games or photo-video, or its Apple genre ID such as 6014. Omit it or use overall or 0 for all apps.
date Optional UTC date in YYYY-MM-DD. Defaults to today.

The response includes country, chart, genre (null for overall), genreId, requestedDate, date, previousDate, entries and dropped. The date is the actual capture date, which can be earlier than the requested date if a capture is missing. If no capture exists on or before the requested date, the API returns HTTP 404 with chart_not_found.

Entries are ordered by ascending rank. Each has id (a string), rank, name, developer, icon, rating, ratingCount, path and movement. Unavailable developer, icon and rating fields are null. Ratings use the latest snapshot for that storefront on or before the chart date. path points to the app’s Popcurve landing page or its numeric app page.

ratingsGained7d is the signed change for the chart's storefront across the seven days ending on its capture date. It is null without matching rating snapshots in the same reset segment. movement has a kind of up, down, unchanged or new and a signed change equal to the prior rank minus the current rank. A new app was absent from the previous populated capture for the same country, feed, and genre, and its change is null. With no earlier populated capture of that chart, previousDate and each movement are null. dropped contains apps and their former ranks from the previous capture, or an empty array when none have dropped or no comparison exists.

Publisher catalog · /publishers/{artistId}

Look up an Apple artist ID already known to Popcurve. The response includes publisher (identity, links, tracking reason and last catalog check), ratings (total count and weighted average), and apps (App Store ID, name, icon, links, original release date, rating count and growth verdict). The app list combines the US and UK catalogs, with one entry per app. Ratings use the latest available snapshot in each storefront. The catalog average weights those storefront ratings by their counts.

catalogStatus is complete, limited for large catalogs with tracked apps only, unavailable when Apple returns neither storefront's artist, or null before the first check. An unknown artist ID returns publisher_not_found with status 404.

The catalog's apps include ratingsGrowth. Optional sort accepts growth (default), ratings or rating. growth orders by weekly gain, then gains since tracking began, then total ratings. rating orders by observed star average.

curl -sS "$BASE/publishers/6813649256"

New launches · /launches

Optional days accepts 1–366 and defaults to 30. Returns { days, launches } sorted by the original App Store release date, newest first. Each launch includes its publisher, release and detection timestamps, and current ratings when available. The release and detection must both fall in the requested window. A launch is recorded once, when a daily check first finds an app released within the preceding 30 days after establishing that publisher's catalog baseline. The website also offers an RSS feed.

curl -sS "$BASE/launches?days=30"

Written reviews · /apps/{id}/reviews

Optional country, stars (comma-separated values 1–5), version (exact match), cursor, and limit (1–100, default 25). Results are newest first. Pass nextCursor back verbatim with the same filters. A null cursor ends pagination. Facets count all stored reviews for the app by country, stars and known version. The body excerpt is at most 280 characters. storeUrl opens the App Store's reviews for that storefront.

curl -sS "$BASE/apps/6756059656/reviews?country=us&stars=5&version=5.8.6&limit=1"
{
  "reviews": [
    {
      "id": "14859985155",
      "cc": "us",
      "stars": 5,
      "title": "Imn0tiris",
      "excerpt": "This is the best app I love how it helps me with school",
      "version": "5.8.6",
      "publishedAt": "2026-12-01T23:19:27.000Z",
      "storeUrl": "https://apps.apple.com/us/app/id6756059656?see-all=reviews"
    }
  ],
  "facets": {
    "country": {
      "us": 3
    },
    "stars": {
      "5": 3
    },
    "version": {
      "5.8.6": 3
    }
  },
  "nextCursor": "eyJ0IjoiMjAyNi0xMi0wMVQyMzoxOToyNy4wMDBaIiwiaWQiOiIxNDg1OTk4NTE1NSJ9"
}

Summary · /apps/{id}/summary

scope defaults to all and accepts a supported country code. A ready result has status, scope, model, generatedAt, reviewCount, sampleSize, and content. The global content includes headline, loves, complaints, recent_changes, low_star_themes, per_market and data_note. Theme fields are theme, detail, share and quote. Changes contain version, change, sentiment and an estimated share within that version. Market content has headline, top_love, top_complaint, nullable love_share and complaint_share, and market-specific recent_changes and low_star_themes. Existing stored briefs may omit the new fields until regenerated. format_version: 2 identifies the expanded global brief format.

With a provider configured, pending means a storefront sync has active jobs preparing the review corpus or a summary job is queued or running. insufficient provides the stored written reviewCount for the requested scope and its minimumReviews once review collection settles. The minimum is 10 worldwide or 15 for a storefront. A storefront also needs at least 15 of its reviews in the generation sample. unavailable covers missing provider configuration, unavailable coverage for the scope, or generation that ended without a summary. Cached summaries remain available when no provider is configured.

The minimum time to regenerate is 24 hours. After that a refresh needs any of the following.

curl -sS "$BASE/apps/6747649411/summary?scope=all"
{
  "status": "insufficient",
  "reviewCount": 1,
  "minimumReviews": 10
}

Live updates · /apps/{id}/stream

Use an EventSource or an SSE client. The server replays stored app metadata, markets, newest review excerpts by market, growth, and summary when a client connects. When work is pending, it also drives the app’s jobs for up to about 250 seconds, including summary jobs queued after the app became fresh. Progress can arrive from other instances through Postgres. Heartbeat comments keep the connection open during upstream waits. A fresh app with an empty queue sends its stored state and closes promptly.

Event Payload
app App metadata, including ID and current version.
market One market rating keyed by cc, with its latest known count and share.
reviews {cc, page, countAdded, newest}. Replay uses page: null, zero added, and up to three current excerpts.
trends The growth response, including ratingsGrowth, refreshed after batches of changes.
summary The global summary response, using ready, pending, and unavailable. Read /summary for the written-review count when a summary is unavailable.
done {state, lastFullSyncAt, pendingJobs}. The response closes.
error The JSON error shape. Errors before the stream opens instead use HTTP status codes.

Treat repeated app, market, and review IDs as updates. A final market event can update the market's share as more snapshots arrive. When done is fresh with zero pending jobs, close an automatic EventSource reconnect loop. If jobs remain or the connection drops, reconnect with backoff. The server replays current data and can resume eligible jobs without a cursor.

curl -NsS "$BASE/apps/6756059656/stream"
event: reviews
data: {"cc":"us","page":1,"countAdded":3,"newest":[{"id":"14859985155","cc":"us","stars":5,"excerpt":"This is the best app I love how it helps me with school","storeUrl":"https://apps.apple.com/us/app/id6756059656?see-all=reviews"}]}

event: done
data: {"state":"fresh","lastFullSyncAt":"2026-12-03T17:11:56.841Z","pendingJobs":0}

Errors and caching

curl -sS "$BASE/apps/invalid"
{
  "error": {
    "code": "invalid_request",
    "message": "Use a positive numeric App Store ID"
  }
}
Status Code Meaning
400 invalid_request Invalid app ID or query parameter.
404 app_not_found Apple returned no app in any supported storefront for an unknown ID.
404 publisher_not_found Popcurve has no record for the requested Apple artist ID.
404 chart_not_found No chart capture exists on or before the requested date.
503 apple_unavailable Apple could not be reached or storefront availability could not be confirmed. Honor Retry-After.
500 internal_error The backend could not complete the request.

Search requests with an explicit country have a five-minute shared response cache. Search requests that infer the country use no-store so a cached response cannot cross storefronts. Fresh overview and reviews cache for one minute, fresh rating history and growth for two, ranks and the growth leaderboard for two, and ready summaries for three. Populated version and listing responses cache for two minutes. Cacheable responses allow stale-while-revalidate for twice the shared TTL. Errors, in-progress overview data, pending summaries and SSE use no-store. Daily chart responses use no-store with a tagged server-side cache for current charts. Publisher API responses cache for 15 minutes and launch responses for five. Apple responses are separately cached for one hour for search, six hours for lookup, charts and reviews, and up to 24 hours for publisher catalogs when the body fits the 256 KiB cache ceiling.

Debounce search input and reuse completed results. For active syncs, use a single stream instead of polling every endpoint. Back off on disconnect or a 503 and reuse pagination cursors. Apple lookups, charts and reviews share a service-wide request budget.

Switching the iOS app

Current ITunesClient.swift method v1 equivalent
searchApps(term:platform:countryCode:) /search?q=...&country=... for iOS software search. Retain the native Mac App Store search for that platform.
fetchLookup(appId:countryCode:) /apps/{id}. Read metadata from app and match the storefront in markets. Use /stream for the first view and /history?country=... for the market's rating history.
fetchChart(key:fallbackTitle:) /apps/{id}/ranks?country=...&days=30 for a tracked iOS app. Match feed and genreId, where overall is 0. The ranks API provides app-specific recorded placements. Use /charts?country=...&chart=... for full free, paid and grossing iPhone charts in the chart markets. Keep native requests for the iPad-specific, new-app and Mac feeds.
fetchReviews(appId:countryCode:) /apps/{id}/reviews?country=.... Map stars, title, excerpt, version and date. Use storeUrl to open the full review listing in the App Store.

For the iOS summary screen, decode insufficient and optional reviewCount and minimumReviews from GET /apps/{id}/summary. Show the review count and keep review excerpts visible. The stream continues to emit unavailable for a brief below the minimum. Read the scoped summary endpoint when the stream finishes to get the detailed status.

Current iOS client