google-play-scraper

google-play-scraper

Node.js模块助力抓取Google Play应用数据

google-play-scraper是一个用于抓取Google Play商店应用数据的Node.js模块。它提供获取应用详情、搜索应用、获取开发者应用列表等多种功能。支持多语言和多国家数据抓取,可获取应用评分、下载量、评论等关键信息。这个工具适用于需要分析Google Play应用市场数据的开发者和研究人员。

Google Play爬虫应用数据Node.jsAPIGithub开源项目

google-play-scraper workflow

Node.js module to scrape application data from the Google Play store.

Related projects

  • app-store-scraper: a scraper with a similar interface for the iTunes app store.
  • aso: an App Store Optimization module built on top of this library.
  • google-play-api: a RESTful API to consume the data produced by this library.

Installation

npm install google-play-scraper

Usage

Available methods:

  • app: Retrieves the full detail of an application.
  • list: Retrieves a list of applications from one of the collections at Google Play.
  • search: Retrieves a list of apps that results of searching by the given term.
  • developer: Returns the list of applications by the given developer name.
  • suggest: Given a string returns up to five suggestion to complete a search query term.
  • reviews: Retrieves a page of reviews for a specific application.
  • similar: Returns a list of similar apps to the one specified.
  • permissions: Returns the list of permissions an app has access to.
  • datasafety: Returns the data safety information of an app.
  • categories: Retrieve a full list of categories present from dropdown menu on Google Play.

app

Retrieves the full detail of an application. Options:

  • appId: the Google Play id of the application (the ?id= parameter on the url).
  • lang (optional, defaults to 'en'): the two letter language code in which to fetch the app page.
  • country (optional, defaults to 'us'): the two letter country code used to retrieve the applications. Needed when the app is available only in some countries.

Example:

import gplay from "google-play-scraper"; gplay.app({appId: 'com.google.android.apps.translate'}) .then(console.log, console.log);

Results:

{ title: 'Google Translate', description: 'Translate between 103 languages by typing\r\n...' , descriptionHTML: 'Translate between 103 languages by typing<br>...', summary: 'The world is closer than ever with over 100 languages', installs: '500,000,000+', minInstalls: 500000000, maxInstalls: 898626813, score: 4.482483, scoreText: '4.5', ratings: 6811669, reviews: 1614618, histogram: { '1': 370042, '2': 145558, '3': 375720, '4': 856865, '5': 5063481 }, price: 0, free: true, currency: 'USD', priceText: 'Free', offersIAP: false, IAPRange: undefined, androidVersion: 'VARY', androidVersionText: 'Varies with device', androidMaxVersion: 'VARY', developer: 'Google LLC', developerId: '5700313618786177705', developerEmail: 'translate-android-support@google.com', developerWebsite: 'http://support.google.com/translate', developerAddress: '1600 Amphitheatre Parkway, Mountain View 94043', privacyPolicy: 'http://www.google.com/policies/privacy/', developerInternalID: '5700313618786177705', genre: 'Tools', genreId: 'TOOLS', categories: [ { name: 'Tools', id: 'TOOLS' }, { name: 'Another category without id', id: null } ], icon: 'https://lh3.googleusercontent.com/ZrNeuKthBirZN7rrXPN1JmUbaG8ICy3kZSHt-WgSnREsJzo2txzCzjIoChlevMIQEA', headerImage: 'https://lh3.googleusercontent.com/e4Sfy0cOmqpike76V6N6n-tDVbtbmt6MxbnbkKBZ_7hPHZRfsCeZhMBZK8eFDoDa1Vf-', screenshots: [ 'https://lh3.googleusercontent.com/dar060xShkqnJjWC2j_EazWBpLo28X4IUWCYXZgS2iXes7W99LkpnrvIak6vz88xFQ', 'https://lh3.googleusercontent.com/VnzidUTSWK_yhpNK0uqTSfpVgow5CsZOnBdN3hIpTxODdlZg1VH1K4fEiCrdUQEZCV0', ], video: undefined, videoImage: undefined, previewVideo: undefined, contentRating: 'Everyone', contentRatingDescription: undefined, adSupported: false, released: undefined, updated: 1576868577000, version: 'Varies with device', recentChanges: 'Improved offline translations with upgraded language downloads', comments: [], preregister: false, earlyAccessEnabled: false, isAvailableInPlayPass: false, editorsChoice: true, features: [ { title: 'Uses Google Play Games', description: 'For automatic sign-in, leaderboards, achievements, and more.' }, { title: 'Achievements', description: 'Grants you achievements for completing goals and skill-based challenges.' } ], appId: 'com.google.android.apps.translate', url: 'https://play.google.com/store/apps/details?id=com.google.android.apps.translate&hl=en&gl=us', isAvailableInPlayPass: false }

list

Retrieve a list of applications from one of the collections at Google Play. Options:

  • collection (optional, defaults to collection.TOP_FREE): the Google Play collection that will be retrieved. Available options can bee found here.
  • category (optional, defaults to no category): the app category to filter by. Available options can bee found here.
  • age (optional, defaults to no age filter): the age range to filter the apps (only for FAMILY and its subcategories). Available options are age.FIVE_UNDER, age.SIX_EIGHT, age.NINE_UP.
  • num (optional, defaults to 500): the amount of apps to retrieve.
  • lang (optional, defaults to 'en'): the two letter language code used to retrieve the applications.
  • country (optional, defaults to 'us'): the two letter country code used to retrieve the applications.
  • fullDetail (optional, defaults to false): if true, an extra request will be made for every resulting app to fetch its full detail.

Example:

import gplay from "google-play-scraper"; gplay.list({ category: gplay.category.GAME_ACTION, collection: gplay.collection.TOP_FREE, num: 2 }) .then(console.log, console.log);

Results:

[ { url: 'https://play.google.com/store/apps/details?id=com.playappking.busrush', appId: 'com.playappking.busrush', summary: 'Bus Rush is an amazing running game for Android! Start running now!', developer: 'Play App King', developerId: '6375024885749937863', title: 'Bus Rush', icon: 'https://lh3.googleusercontent.com/R6hmyJ6ls6wskk5hHFoW02yEyJpSG36il4JBkVf-Aojb1q4ZJ9nrGsx6lwsRtnTqfA=w340', score: 3.9, scoreText: '3.9', priceText: 'Free', free: false }, { url: 'https://play.google.com/store/apps/details?id=com.yodo1.crossyroad', appId: 'com.yodo1.crossyroad', title: 'Crossy Road', summary: 'Embark on an action arcade, endless runner journey!', developer: 'Yodo1 Games', developerId: 'Yodo1+Games', icon: 'https://lh3.googleusercontent.com/doHqbSPNekdR694M-4rAu9P2B3V6ivff76fqItheZGJiN4NBw6TrxhIxCEpqgO3jKVg=w340', score: 4.5, scoreText: '4.5', priceText: 'Free', free: false } ]

search

Retrieves a list of apps that results of searching by the given term. Options:

  • term: the term to search by.
  • num (optional, defaults to 20, max is 250): the amount of apps to retrieve.
  • lang (optional, defaults to 'en'): the two letter language code used to retrieve the applications.
  • country (optional, defaults to 'us'): the two letter country code used to retrieve the applications.
  • fullDetail (optional, defaults to false): if true, an extra request will be made for every resulting app to fetch its full detail.
  • price (optional, defaults to all): allows to control if the results apps are free, paid or both.
    • all: Free and paid
    • free: Free apps only
    • paid: Paid apps only

Example:

import gplay from "google-play-scraper"; gplay.search({ term: "panda", num: 2 }).then(console.log, console.log);

Results:

[ { url: 'https://play.google.com/store/apps/details?id=com.snailgameusa.tp', appId: 'com.snailgameusa.tp', summary: 'An exciting action adventure RPG of Panda proportions!', title: 'Taichi Panda', developer: 'Snail Games USA', developerId: 'Snail+Games+USA+Inc', icon: 'https://lh3.googleusercontent.com/g8RMjpRk9yetsui4g5lxnioAFwtgoKUJDBnb2knJMrOaLOtHrwU1qYkb-PadbL0Zmg=w340', score: 4.1, scoreText: '4.1', priceText: 'Free', free: true }, { url: 'https://play.google.com/store/apps/details?id=com.sgn.pandapop.gp', appId: 'com.sgn.pandapop.gp', summary: 'Plan your every pop to rescue baby pandas from the evil Baboon!', title: 'Panda Pop', developer: 'SGN', developerId: '5509190841173705883', icon: 'https://lh5.ggpht.com/uAAUBzEHtD_-mTxomL2wFxb5VSdtNllk9M4wjVdTGMD8pH79RtWGYQYrrtfVTjq7PV7M=w340', score: 4.2, scoreText: '4.2', priceText: 'Free', free: true } ]

developer

Returns the list of applications by the given developer name. Options:

  • devId: the name of the developer.
  • lang (optional, defaults to 'en'): the two letter language code in which to fetch the app list.
  • country (optional, defaults to 'us'): the two letter country code used to retrieve the applications. Needed when the app is available only in some countries.
  • num (optional, defaults to 60): the amount of apps to retrieve.
  • fullDetail (optional, defaults to false): if true, an extra request will be made for every resulting app to fetch its full detail.

Example:

import gplay from "google-play-scraper"; gplay.developer({devId: "DxCo Games"}).then(console.log);

Results:

[ { url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies2', appId: 'com.dxco.pandavszombies2', title: 'Panda vs Zombie 2 Panda\'s back', summary: 'Help Rocky the Panda warrior to fight zombies again!', developer: 'DxCo Games', developerId: 'DxCo+Games', icon: 'https://lh3.googleusercontent.com/kFco0LtC7ICP0QrtpkF-QQahU-iwuDgEsH0AClQcHwtzsO5-8BGTf8QgR6dlCLxqBLc=w340', score: 3.9, scoreText: '3.9', priceText: 'Free', free: true }, { url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies', appId: 'com.dxco.pandavszombies', title: 'Panda vs Zombie: panda ftw', summary: 'Help Rocky the Panda warrior to fight zombie games and save the Panda kind.', developer: 'DxCo Games', developerId: 'DxCo+Games', icon: 'https://lh6.ggpht.com/5mI27oolnooL__S3ns9qAf_6TsFNExMtUAwTKz6prWCxEmVkmZZZwe3lI-ZLbMawEJh3=w340', score: 4.5, scoreText: '4.5', priceText: 'Free', free: true } ]

suggest

Given a string returns up to five suggestion to complete a search query term. Options:

  • term: the term to get suggestions for.
  • lang (optional, defaults to 'en'): the two letter language code used to retrieve the suggestions.
  • country (optional, defaults to 'us'): the two letter country code used to retrieve the suggestions.

Example:

import gplay from "google-play-scraper"; gplay.suggest({term: 'panda'}).then(console.log);

Results:

[ 'panda pop', 'panda', 'panda games', 'panda run', 'panda pop for free' ]

reviews

Retrieves a page of reviews for a specific application.

Note that this method returns reviews in a specific language (english by default), so you need to try different languages to get more reviews. Also, the counter displayed in the Google Play page refers to the total number of 1-5 stars ratings the application has, not the written reviews count. So if the app has 100k ratings, don't expect to get 100k reviews by using this method.

You can get all reviews at once, by sending the num parameter (i.g. 5000), or paginated reviews (with 150 per page), by setting the pagination parameter to true;

You`ll have to choose wich method is better for your use case.

By setting num + paginate, the num parameter will be ignored and you will receive a paginated response instead.

Options:

  • appId: Unique application id for Google Play. (e.g. id=com.mojang.minecraftpe maps to Minecraft: Pocket Edition game).
  • lang (optional, defaults to 'en'): the two letter language code in which to fetch the reviews.
  • country (optional, defaults to 'us'): the two letter country code in which to fetch the reviews.
  • sort (optional, defaults to sort.NEWEST): The way the reviews are going to be sorted. Accepted values are: sort.NEWEST, sort.RATING and sort.HELPFULNESS.
  • num (optional, defaults to 100): Quantity of reviews to be captured.
  • paginate (optional, defaults to false): Defines if the result will be paginated
  • nextPaginationToken (optional, defaults to null): The next token to paginate

Example:

import gplay from "google-play-scraper"; // This example will return 3000 reviews // on a single call gplay.reviews({ appId: 'com.dxco.pandavszombies', sort: gplay.sort.RATING, num: 3000 }).then(console.log, console.log); // This example will return the first page with 150 reviews paginated // just send an empty nexPaginationToken // you will receive a nextPaginationToken parameter in your response gplay.reviews({ appId: 'com.dxco.pandavszombies', sort: gplay.sort.RATING, paginate: true, nextPaginationToken: null // you can omit this parameter }).then(console.log, console.log); // This example will return 150 reviews paginated // for the next page (next page is the token return by the previous call) // you will receive a nextPaginationToken parameter in your response gplay.reviews({ appId: 'com.dxco.pandavszombies', sort: gplay.sort.RATING, paginate: true, nextPaginationToken: 'TOKEN_FROM_THE_PREVIOUS_REQUEST' // you can omit this parameter }).then(console.log, console.log);

Results:

{ data: [ { id:

编辑推荐精选

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

AI辅助写作AI工具AI论文工具论文写作智能生成大纲数据安全AI助手热门
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

下拉加载更多