ReviewlistGuides

Scrape App Store reviews with Node.js

About 70 lines of Node.js 18+ with the built-in fetch save the latest 500 written reviews of any iPhone, iPad or Mac app per country as CSV.

More

No packages, no API key, no headless browser. Or use the form above and skip the code.

Example: https://apps.apple.com/us/app/duolingo-language-lessons/id570060128, 570060128, com.duolingo.DuolingoMobile or just "Duolingo".
More countries Pro Each country store has its own reviews. With Pro, one run collects them from every store you choose. See Pro
Sample result Pro
AppVersionReviewsAverage
Duolingo7.148.15004.09/5

See sample report

Popular: ChatGPT Duolingo Spotify Instagram TikTok Uber all apps

Free or Pro

Free includes CSV and JSON for one app in one country. Pro adds all 182 countries, app comparison, Excel and shareable reports.

See Pro No card, no account.

The code

It reads Apple's public customer reviews feed (how the feed works): 10 pages of 50 reviews, newest first. The app ID is the number after "id" in the App Store link. Save it as reviews.mjs and run node reviews.mjs. On 21 November 2026 it saved all 500 reviews of Duolingo (570060128), no page empty.

import { writeFileSync } from 'node:fs';
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));

// The same page at equivalent addresses: Apple caches an empty answer per exact URL.
function* urls(appId, country, page) {
  const a = `page=${page}/id=${appId}`, b = `id=${appId}/page=${page}`;
  for (const fmt of ['json', 'xml']) {
    yield [`https://itunes.apple.com/${country}/rss/customerreviews/${a}/sortby=mostrecent/${fmt}`, fmt];
    yield [`https://itunes.apple.com/${country}/rss/customerreviews/${a}/sortby=mostrecent/${fmt}?cc=${country}`, fmt];
    yield [`https://itunes.apple.com/rss/customerreviews/${a}/sortby=mostrecent/${fmt}?cc=${country}`, fmt];
    yield [`https://itunes.apple.com/${country}/rss/customerreviews/${b}/sortby=mostRecent/${fmt}`, fmt];
  }
}

function parse(body, fmt) {
  if (fmt === 'json') {
    let entries = JSON.parse(body).feed?.entry ?? [];
    if (!Array.isArray(entries)) entries = [entries]; // a page with a single review
    return entries.filter((e) => e['im:rating']).map((e) => ({
      id: e.id.label, date: e.updated.label, rating: Number(e['im:rating'].label),
      version: e['im:version'].label, title: e.title.label, text: e.content.label,
    }));
  }
  const dec = (s) => s?.replace(/&(lt|gt|quot|#39|apos|amp);/g, (_, n) => ({ lt: '<', gt: '>', quot: '"', '#39': "'", apos: "'", amp: '&' })[n]);
  const tag = (x, t) => dec((x.match(new RegExp(`<${t}[^>]*>([\\s\\S]*?)</${t}>`)) || [])[1]);
  return [...body.matchAll(/<entry>([\s\S]*?)<\/entry>/g)].filter((m) => tag(m[1], 'im:rating')).map((m) => ({
    id: tag(m[1], 'id'), date: tag(m[1], 'updated'), rating: Number(tag(m[1], 'im:rating')),
    version: tag(m[1], 'im:version'), title: tag(m[1], 'title'), text: tag(m[1], 'content'),
  }));
}

async function readPage(appId, country, page) {
  for (const [url, fmt] of urls(appId, country, page)) {
    const res = await fetch(url);
    const reviews = res.ok ? parse(await res.text(), fmt) : [];
    if (reviews.length) return reviews;
  }
  return [];
}

async function appStoreReviews(appId, country = 'us') {
  const pages = {};
  for (let p = 1; p <= 10; p++) pages[p] = await readPage(appId, country, p);
  for (let pass = 0; pass < 2; pass++) { // empty pages: two more passes, a few seconds apart
    await sleep(5000);
    for (const p of Object.keys(pages).filter((k) => !pages[k].length)) pages[p] = await readPage(appId, country, p);
  }
  const seen = new Set(), out = [];
  for (const r of Object.values(pages).flat()) if (!seen.has(r.id)) { seen.add(r.id); out.push(r); }
  console.log('empty pages:', Object.keys(pages).filter((k) => !pages[k].length));
  return out;
}

const reviews = await appStoreReviews(570060128); // the number after "id" in the App Store link
const esc = (v) => `"${String(v ?? '').replaceAll('"', '""')}"`;
const cols = ['date', 'rating', 'version', 'title', 'text'];
writeFileSync('reviews.csv', [cols.join(','), ...reviews.map((r) => cols.map((c) => esc(r[c])).join(','))].join('\n'));
console.log(reviews.length, 'reviews saved');

Why it is longer than a plain loop

Sometimes the feed answers 200 with no entry at all for a page that exists. A plain loop over the JSON address then saves a fraction of the list and looks successful: on 21 November the same plain loop saved 50 of 500 reviews. Two things fix most of it:

  • Equivalent addresses. The empty answer is cached per exact URL. The country as ?cc=, the country dropped from the path, id= and page= swapped and mostRecent in other case return the same reviews.
  • The XML version of a page is sometimes there when the JSON one is empty.
  • Passes. A real end of a list is a page with 1 to 49 reviews, so empty pages are asked for again, twice, a few seconds apart. The code prints the pages that stayed empty; never present a list with empty pages as complete.

Entries without im:rating are skipped (the first entry is sometimes the app itself), and a page with one review comes as an object, not a list. For the most helpful reviews, change sortby=mostrecent to sortby=mosthelpful; both lists together give up to 1,000 per country.

Read more

The same approach in Python is in Scrape App Store reviews with Python.

Every country, on a schedule

Reviews are separate per store: loop over the two-letter codes from the list of 182 stores. Apple's feed keeps only the latest 500 reviews and busy apps replace them in days, so a one-off script loses history.

Read more

The App Store Reviews Scraper on Apify runs the same requests in the cloud with all countries, more address forms and passes, and can save only the reviews it has not saved before ($0.08 per 1,000 reviews). From Node.js:

import { ApifyClient } from 'apify-client'; // npm i apify-client

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('makerio/app-store-reviews').call({
  apps: ['https://apps.apple.com/us/app/duolingo-language-lessons/id570060128'],
  countries: ['us', 'gb', 'de'],
  maxReviewsPerCountry: 500,
  onlyNewReviews: true, // next runs return only new reviews
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const r of items) console.log(r.country, r.rating, r.appVersion, r.title);

Questions

Do I need an API key?

No. The feed is public and needs no key or login. The Apify version needs an Apify account token.

Which Node.js version?

18 or newer, for the built-in fetch. The code uses ES modules, so keep the .mjs extension.

Can I get more than 500 reviews?

Not from one list: Apple stops after 10 pages. Add the most helpful list for up to 1,000 per country, add more countries, or export regularly and keep the files.

I do not want to write code.

The form at the top of this page does the same in your browser and gives CSV, JSON or Excel.

Need more than one country or app?

Reviewlist Pro loads all 182 countries in one run, both review lists (up to 1,000 per country), up to 5 apps side by side, and exports to Excel or a ready-to-send HTML report. $9 a month or $49 a year, cancel any time, 3-day free trial in the browser.

See what Pro adds

Related guides and reports