Installations
npm install app-store-scraper
Releases
Unable to fetch releases
Developer
facundoolano
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
20.3.1
NPM Version
9.6.7
Statistics
1,033 Stars
162 Commits
243 Forks
37 Watching
2 Branches
30 Contributors
Updated on 27 Nov 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
1,151,771
Last day
-3.3%
640
Compared to previous day
Last week
-6.1%
3,493
Compared to previous week
Last month
24.7%
14,133
Compared to previous month
Last year
-19.2%
190,063
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
app-store-scraper
Node.js module to scrape application data from the iTunes/Mac App Store. The goal is to provide an interface as close as possible to the google-play-scraper module.
Installation
npm install app-store-scraper
Usage
Available methods:
- app: Retrieves the full detail of an application.
- list: Retrieves a list of applications from one of the collections at iTunes.
- search: Retrieves a list of apps that results of searching by the given term.
- developer: Retrieves a list of apps by the given developer id.
- privacy: Display the privacy details for the app.
- suggest: Given a string returns up to 50 suggestions to complete a search query term.
- similar: Returns the list of "customers also bought" apps shown in the app's detail page.
- reviews: Retrieves a page of reviews for the app.
- ratings: Retrieves the ratings for the app.
app
Retrieves the full detail of an application. Options:
id
: the iTunes "trackId" of the app, for example553834731
for Candy Crush Saga. Either this or theappId
should be provided.appId
: the iTunes "bundleId" of the app, for examplecom.midasplayer.apps.candycrushsaga
for Candy Crush Saga. Either this or theid
should be provided.country
: the two letter country code to get the app details from. Defaults tous
. Note this also affects the language of the data.lang
: language code for the result text. Defaults to undefined, so country specific language should be used automatically.
ratings
: load additional ratings information likeratings
number andhistogram
Example:
1var store = require('app-store-scraper'); 2 3store.app({id: 553834731}).then(console.log).catch(console.log);
Results:
1{ id: 553834731, 2 appId: 'com.midasplayer.apps.candycrushsaga', 3 title: 'Candy Crush Saga', 4 url: 'https://itunes.apple.com/us/app/candy-crush-saga/id553834731?mt=8&uo=4', 5 description: 'Candy Crush Saga, from the makers of Candy Crush ...', 6 icon: 'http://is5.mzstatic.com/image/thumb/Purple30/v4/7a/e4/a9/7ae4a9a9-ff68-cbe4-eed6-fe0a246e625d/source/512x512bb.jpg', 7 genres: [ 'Games', 'Entertainment', 'Puzzle', 'Arcade' ], 8 genreIds: [ '6014', '6016', '7012', '7003' ], 9 primaryGenre: 'Games', 10 primaryGenreId: 6014, 11 contentRating: '4+', 12 languages: [ 'EN', 'JA' ], 13 size: '73974859', 14 requiredOsVersion: '5.1.1', 15 released: '2012-11-14T14:41:32Z', 16 updated: '2016-05-31T06:39:52Z', 17 releaseNotes: 'We are back with a tasty Candy Crush Saga update ...', 18 version: '1.76.1', 19 price: 0, 20 currency: 'USD', 21 free: true, 22 developerId: 526656015, 23 developer: 'King', 24 developerUrl: 'https://itunes.apple.com/us/developer/king/id526656015?uo=4', 25 developerWebsite: undefined, 26 score: 4, 27 reviews: 818816, 28 currentVersionScore: 4.5, 29 currentVersionReviews: 1323, 30 screenshots: 31 [ 'http://a3.mzstatic.com/us/r30/Purple49/v4/7a/8a/a0/7a8aa0ec-976d-801f-0bd9-7b753fdaf93c/screen1136x1136.jpeg', 32 ... ], 33 ipadScreenshots: 34 [ 'http://a1.mzstatic.com/us/r30/Purple49/v4/db/45/cf/db45cff9-bdb6-0832-157f-ac3f14565aef/screen480x480.jpeg', 35 ... ], 36 appletvScreenshots: [], 37 supportedDevices: 38 [ 'iPhone-3GS', 39 'iPadWifi', 40 ... ]}
Example with ratings
option:
1var store = require('app-store-scraper'); 2 3store.app({id: 553834731, ratings: true}).then(console.log).catch(console.log);
Results:
1{ id: 553834731, 2 appId: 'com.midasplayer.apps.candycrushsaga', 3 4 // ... like above 5 6 ratings: 652230, 7 histogram: { 8 '1': 7004, 9 '2': 6650, 10 '3': 26848, 11 '4': 140625, 12 '5': 471103 13 } 14}
list
Retrieves a list of applications from one of the collections at iTunes. Options:
collection
: the collection to look up. Defaults tocollection.TOP_FREE_IOS
, available options can be found here.category
: the category to look up. This is a number associated with the genre for the application. Defaults to no specific category. Available options can be found here.country
: the two letter country code to get the list from. Defaults tous
.lang
: language code for the result text. Defaults to undefined, so country specific language should be used automatically.num
: the amount of elements to retrieve. Defaults to50
, maximum allowed is200
.fullDetail
: If this is set totrue
, an extra request will be made to get extra attributes of the resulting applications (like those returned by theapp
method).
Example:
1var store = require('app-store-scraper'); 2 3store.list({ 4 collection: store.collection.TOP_FREE_IPAD, 5 category: store.category.GAMES_ACTION, 6 num: 2 7}) 8.then(console.log) 9.catch(console.log);
Returns:
1[ { id: '1091944550', 2 appId: 'com.hypah.io.slither', 3 title: 'slither.io', 4 icon: 'http://is4.mzstatic.com/image/thumb/Purple30/v4/68/d7/4d/68d74df4-f4e7-d4a4-a8ea-dbab686e5554/mzl.ujmngosn.png/100x100bb-85.png', 5 url: 'https://itunes.apple.com/us/app/slither.io/id1091944550?mt=8&uo=2', 6 price: 0, 7 currency: 'USD', 8 free: true, 9 description: 'Play against other people online! ...', 10 developer: 'Steve Howse', 11 developerUrl: 'https://itunes.apple.com/us/developer/steve-howse/id867992583?mt=8&uo=2', 12 developerId: '867992583', 13 genre: 'Games', 14 genreId: '6014', 15 released: '2016-03-25T10:01:46-07:00' }, 16 { id: '1046846443', 17 appId: 'com.ubisoft.hungrysharkworld', 18 title: 'Hungry Shark World', 19 icon: 'http://is5.mzstatic.com/image/thumb/Purple60/v4/08/1a/8d/081a8d06-b4d5-528b-fa8e-f53646b6f797/mzl.ehtjvlft.png/100x100bb-85.png', 20 url: 'https://itunes.apple.com/us/app/hungry-shark-world/id1046846443?mt=8&uo=2', 21 price: 0, 22 currency: 'USD', 23 free: true, 24 description: 'The stunning sequel to Hungry ...', 25 developer: 'Ubisoft', 26 developerUrl: 'https://itunes.apple.com/us/developer/ubisoft/id317644720?mt=8&uo=2', 27 developerId: '317644720', 28 genre: 'Games', 29 genreId: '6014', 30 released: '2016-05-04T09:43:06-07:00' } ]
search
Retrieves a list of apps that results of searching by the given term. Options:
term
: the term to search for (required).num
: the amount of elements to retrieve. Defaults to50
.page
: page of results to retrieve. Defaults to to1
.country
: the two letter country code to get the similar apps from. Defaults tous
.lang
: language code for the result text. Defaults toen-us
.idsOnly
: (optional, defaults tofalse
): skip extra lookup request. Search results will contain array of application ids.
Example:
1var store = require('app-store-scraper'); 2 3store.search({ 4 term: 'panda', 5 num: 2, 6 page: 3, 7 country : 'us', 8 lang: 'lang' 9}) 10.then(console.log) 11.catch(console.log);
Results:
1[ 2 { id: 903990394, 3 appId: 'com.pandarg.pxmobileapp', 4 title: 'Panda Express Chinese Kitchen', 5 (...) 6 }, 7 { 8 id: 700970012, 9 appId: 'com.sgn.pandapop', 10 title: 'Panda Pop', 11 (...) 12 } 13]
developer
Retrieves a list of applications by the give developer id. Options:
devId
: the iTunes "artistId" of the developer, for example284882218
for Facebook.country
: the two letter country code to get the app details from. Defaults tous
. Note this also affects the language of the data.lang
: language code for the result text. Defaults to undefined, so country specific language should be used automatically.
Example:
1var store = require('app-store-scraper'); 2 3store.developer({devId: 284882218}).then(console.log).catch(console.log);
Results:
1[ 2 { id: 284882215, 3 appId: 'com.facebook.Facebook', 4 title: 'Facebook', 5 (...) 6 }, 7 { id: 454638411, 8 appId: 'com.facebook.Messenger', 9 title: 'Messenger', 10 (...) 11 }, 12 (...) 13]
privacy
Retrieves the ratings for the app. Currently only for US App Store. Options:
id
: the iTunes "trackId" of the app, for example553834731
for Candy Crush Saga.
Example:
1var store = require('app-store-scraper'); 2 3store.privacy({ 4 id: 324684580, 5}) 6.then(console.log) 7.catch(console.log);
Returns:
1{ 2 "managePrivacyChoicesUrl": null, 3 "privacyTypes": [ 4 { 5 "privacyType": "Data Used to Track You", 6 "identifier": "DATA_USED_TO_TRACK_YOU", 7 "description": "The following data may be used to track you across apps and websites owned by other companies:", 8 "dataCategories": [ 9 { 10 "dataCategory": "Contact Info", 11 "identifier": "CONTACT_INFO", 12 "dataTypes": [ 13 "Email Address", 14 "Phone Number" 15 ] 16 }, 17 ... 18 ], 19 "purposes": [] 20 }, 21 ... 22 ] 23}
suggest
Given a string returns up to 50 suggestions to complete a search query term.
A priority index is also returned which goes from 0
for terms with low traffic
to 10000
for the most searched terms.
Example:
1var store = require('app-store-scraper'); 2 3store.suggest({term: 'panda'}).then(console.log).catch(console.log);
Results:
1[ 2 { term: 'panda pop' }, 3 { term: 'panda pop free' }, 4 { term: 'panda' }, 5 { term: 'panda express' }, 6 { term: 'panda games' }, 7 { term: 'panda pop 2' }, 8 ... 9]
similar
Returns the list of "customers also bought" apps shown in the app's detail page. Options:
id
: the iTunes "trackId" of the app, for example553834731
for Candy Crush Saga. Either this or theappId
should be provided.appId
: the iTunes "bundleId" of the app, for examplecom.midasplayer.apps.candycrushsaga
for Candy Crush Saga. Either this or theid
should be provided.
Example:
1var store = require('app-store-scraper'); 2 3store.similar({id: 553834731}).then(console.log).catch(console.log);
Results:
1[ 2 { 3 id: 632285588, 4 appId: 'com.nerdyoctopus.dots', 5 title: 'Dots: A Game About Connecting', 6 (...) 7 }, 8 { 9 id: 727296976, 10 appId: 'com.sgn.cookiejam', 11 title: 'Cookie Jam', 12 (...) 13 } 14 (...) 15]
reviews
Retrieves a page of reviews for the app. Options:
id
: the iTunes "trackId" of the app, for example553834731
for Candy Crush Saga. Either this or theappId
should be provided.appId
: the iTunes "bundleId" of the app, for examplecom.midasplayer.apps.candycrushsaga
for Candy Crush Saga. Either this or theid
should be provided.country
: the two letter country code to get the reviews from. Defaults tous
.page
: the review page number to retrieve. Defaults to1
, maximum allowed is10
.sort
: the review sort order. Defaults tostore.sort.RECENT
, available options arestore.sort.RECENT
andstore.sort.HELPFUL
.
Example:
1var store = require('app-store-scraper'); 2 3store.reviews({ 4 appId: 'com.midasplayer.apps.candycrushsaga', 5 sort: store.sort.HELPFUL, 6 page: 2 7}) 8.then(console.log) 9.catch(console.log);
Returns:
1[ { id: '1472864600', 2 userName: 'Linda D. Lopez', 3 userUrl: 'https://itunes.apple.com/us/reviews/id324568166', 4 version: '1.80.1', 5 score: 5, 6 title: 'Great way to pass time or unwind', 7 text: 'I was a fan of Bejeweled many moons ago...', 8 updated: '2021-07-26T18:26:24-07:00', 9 url: 'https://itunes.apple.com/us/review?id=553834731&type=Purple%20Software' },, 10 { id: '1472864708', 11 userName: 'Jennamaxkidd', 12 userUrl: 'https://itunes.apple.com/us/reviews/id223990784', 13 version: '1.80.1', 14 score: 1, 15 title: 'Help! THE PROBLEM IS NOT FIXED!', 16 text: 'STILL HAVING THE SAME ISSUE. It\'s happening again...', 17 updated: '2021-07-26T18:04:41-07:00', 18 url: 'https://itunes.apple.com/us/review?id=553834731&type=Purple%20Software' }, 19 (...) 20]
ratings
Retrieves the ratings for the app. Options:
id
: the iTunes "trackId" of the app, for example553834731
for Candy Crush Saga. Either this or theappId
should be provided.appId
: the iTunes "bundleId" of the app, for examplecom.midasplayer.apps.candycrushsaga
for Candy Crush Saga. Either this or theid
should be provided.country
: the two letter country code to get the reviews from. Defaults tous
.
Example:
1var store = require('app-store-scraper'); 2 3store.ratings({ 4 appId: 'com.midasplayer.apps.candycrushsaga', 5}) 6.then(console.log) 7.catch(console.log);
Returns:
1{ 2 ratings: 652719, 3 histogram: { 4 '1': 7012, 5 '2': 6655, 6 '3': 26876, 7 '4': 140680, 8 '5': 471496 9 } 10}
Memoization
Since every library call performs one or multiple requests to
an iTunes API or web page, sometimes it can be useful to cache the results
to avoid requesting the same data twice. The memoized
function returns the
store object that caches its results:
1var store = require('app-store-scraper'); // regular non caching version 2var memoized = require('app-store-scraper').memoized(); // cache with default options 3var memoizedCustom = require('app-store-scraper').memoized({ maxAge: 1000 * 60 }); // cache with default options 4 5memoized.app({id: 553834731}) // will make a request 6 .then(() => memoized.app({id: 553834731})); // will resolve to the cached value without requesting
The options available are those supported by the memoizee module. By default up to 1000 values are cached by each method and they expire after 5 minutes.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 14/26 approved changesets -- score normalized to 5
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/facundoolano/app-store-scraper/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/facundoolano/app-store-scraper/test.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 18 are checked with a SAST tool
Score
3.6
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More