npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

google-play-scraper-fetch

v0.1.1

Published

Fetch-only port of google-play-scraper (reviews and app details). Zero dependencies. Runs on Cloudflare Workers, Deno, Bun, Node, and browsers.

Readme

google-play-scraper-fetch

Fetch-only port of google-play-scraper covering app() and reviews(). Zero runtime dependencies. Runs on Cloudflare Workers, Deno, Bun, Node 18+, and browsers.

Why this exists

The original google-play-scraper depends on got, cheerio, and Node streams, so it only runs on Node. This package reimplements the two functions most apps need (app metadata and reviews) on top of the global fetch API, with the same request shapes and response field mappings. If your code runs on a Cloudflare Worker or an edge runtime, this works where the original cannot.

Install

npm install google-play-scraper-fetch

Usage

App details

import { app } from 'google-play-scraper-fetch'

const details = await app({ appId: 'com.pocketguard.android.app' })
console.log(details.title, details.score, details.icon)

Options: appId (required), lang (default en), country (default us), fetch (custom fetch implementation).

Reviews

import { reviews, sort } from 'google-play-scraper-fetch'

// First page
const page1 = await reviews({
	appId: 'com.pocketguard.android.app',
	sort: sort.NEWEST,
	num: 50,
	paginate: true,
})
console.log(page1.data.length, 'reviews')

// Next page
const page2 = await reviews({
	appId: 'com.pocketguard.android.app',
	sort: sort.NEWEST,
	paginate: true,
	nextPaginationToken: page1.nextPaginationToken,
})

Options: appId (required), lang, country, sort (sort.NEWEST, sort.RATING, sort.HELPFULNESS), num (default 150), paginate (default false, set true to page manually), nextPaginationToken, throttleMs, fetch.

With paginate: false, the library keeps requesting pages internally until it has num reviews or runs out. Set throttleMs to insert a delay in milliseconds between those internal page requests. There is no delay before the first request, and the option does nothing when only one request is made or when you page manually with paginate: true. Each review includes id, userName, date (ISO string), score, text, replyText, version, thumbsUp, and criterias.

Errors

Everything thrown by this package extends PlayScraperError:

  • PlayScraperHttpError for failed requests (includes status and url, 404 means the app does not exist)
  • PlayScraperParseError when the response cannot be parsed into the expected shape (includes a context snippet to help diagnose)

The package throws rather than returning partial or garbage data, so wrap calls in try/catch and treat PlayScraperParseError as a signal that the protocol may have changed.

Caveat

Google Play has no public API for this data. Both functions wrap an internal, undocumented protocol (batchexecute and the script payloads embedded in the details page). Google can change it at any time without notice. Field mappings are ported from google-play-scraper and verified against captured fixtures, but expect occasional breakage and pin your version.

Differences from the original

  • Only app() and reviews() are implemented.
  • Throttling is a plain delay (throttleMs) between internal page requests, instead of the original's requests-per-second limiter.
  • No requestOptions passthrough. Pass a custom fetch instead.
  • No persistent cookie jar. Cookies from the first reviews response are reused for follow-up pages within a single reviews() call.
  • memoized() is not implemented.

License

MIT


Want these reviews clustered and turned into shipped fixes automatically? https://usero.io