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 🙏

© 2024 – Pkg Stats / Ryan Hefner

app-store-scraper-reviews

v1.0.1

Published

Scrape reviews from the app store

Downloads

17

Readme

app-store-scraper-reviews

Simple Node.js module to scrape reviews from the App Store. Provides the ability to get all reviews or a number of reviews for a given app. Written in TypeScript and the API response is fully typed.

npm version

Installation

npm install app-store-scraper-reviews

Usage

import { getReviews } from 'app-store-scraper-reviews';

const reviews = await getReviews({
  country: 'us',
  appId: '1271273970',
  appName: 'hey-camera',
});

Optional Parameters

numberOfReviews (number) - The number of reviews to get. If this is not provided then all reviews will be fetched.

sleep (number) - The time in ms to wait before each API request to get the next 20 reviews.

Response Example

[
  {
    "id": "6637304379",
    "type": "user-reviews",
    "attributes": {
      "date": "2020-11-12T16:15:38Z",
      "review": "When Siri didn’t do this, I was glad to find an app that would accomplish it and set up a Siri command to do it as well. \n\nJust wish I could use options like Portrait mode on my iPhone.",
      "rating": 4,
      "isEdited": false,
      "title": "Glad to find",
      "userName": "Joe Wi"
    }
  }
]

FAQ

How is this different than getting reviews using app-store-scraper?

That Node.js module uses a separate API and can get up to 500 reviews maximum. This module allows getting all reviews by using a separate API and technique.

At a high level this is a port of the python app-store-scraper. I implemented that technique and approach here for this Node.js module.

This module does what SerpApi sells but this is free.

Why is the review count different than what is seen on the landing page?

The review count seen on the landing page differs from the actual number of reviews fetched. This is because only some users who rated the app also leave reviews.

Why do I get more reviews returned than what is supplied to the numberOfReviews param?

The maximum number of reviews fetched per request is 20. To minimise the number of calls, the limit of 20 is hardcoded. It is possible to get more results than what is passed to numberOfReviews.

License

MIT