从Google Play商店获取评论的API

3
有没有可能获取Google Play商店上发表的应用程序的一些评论,但不是我开发的应用程序?例如,如果我想获取像Whatsapp或Twitter这样的知名应用程序的评论,是否可以?还是只有该应用程序的开发人员才能使用此功能?我正在阅读这份文档,但对此问题并不清楚足够深入。
如果无法获取此类评论,我应该怎么办?
3个回答

1
无法通过API获取你没有拥有的应用程序的评论。
来自文档: https://developers.google.com/android-publisher/getting_started 引用: 要开始进行API调用,您将直接从Google Play控制台设置和管理Google Play开发者API。该API只能由您的Google Play开发者帐户所有者管理。

谢谢,这意味着我无法通过API在Facebook或Chrome等应用上获得任何评论。您有什么替代方案可以建议吗?比如是否有关于评论的数据集可用,或者您知道其他开放API的评论网站吗? - catris25
您需要一个访问令牌才能访问API,这令牌只能通过所有者的Google Play控制台设置。除了应用程序所有者的帮助外,我没有看到任何获取评论的方法。 - Bob

0
没关系。如果你和我一样,需要一些替代评论数据集的资源(显然谷歌应用商店没有在他们的API中提供这个功能),我找到了一个不错的资源。亚马逊评论数据集

-1

我在Github上放了一个仓库,用于从Play商店拉取评论;我看到这个问题在这里出现了很多次,决定发布我的代码;希望它能有所帮助。

演示:https://www.reviewsmaker.com/api/demo/playstore/

Github链接:https://github.com/ilanpatao/google-playstore-reviews-api

基本上,通过使用应用程序ID,我能够提取任何已列出应用程序的所有评论,输出是一个经过整理的JSON返回,包括评论日期、作者名称、作者图像、评分和评论正文;

以下是Clash of Clans应用程序返回的样本:

{
   "reviews":[
      {
         "date":"2018-12-24 13:49:06",
         "author":"Alan Ross",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mAqFuPsDx2X3WI0L4iSOalyJ_ypyIKDNGTph8R-",
         "rating":5,
         "reviewText":"great game but update process slow plz update 1 week gap required"
      },
      {
         "date":"2018-12-24 13:48:54",
         "author":"Ajib Putra",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDjbpSwUB8YXjbFt4EkAcLDbdoRvQxRMT9LkOFt2w",
         "rating":5,
         "reviewText":"very cool"
      },
      {
         "date":"2018-12-24 13:48:07",
         "author":"Mukta Varshney",
         "authorPhoto":"https://lh5.googleusercontent.com/-nKMrqfWnQq4/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcbG1L4uysKWcRe52V-Li7wwA-EG1w/mo/photo.jpg",
         "rating":5,
         "reviewText":"it is an Amazing game."
      },
      {
         "date":"2018-12-24 13:47:59",
         "author":"Unni P Unnip",
         "authorPhoto":"https://lh6.googleusercontent.com/-feiC0Hr2pLc/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcZ1_Yzwlzz6H_5W9O8YbJuS0NV63w/mo/photo.jpg",
         "rating":5,
         "reviewText":"best game than pubg"
      },
      {
         "date":"2018-12-24 13:47:33",
         "author":"CAPITAL N",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDXaRMjE4Cwa_MwSTh_RbPJfz6Y3jR7Onjve50Y",
         "rating":5,
         "reviewText":"Best android game built."
      },
      {
         "date":"2018-12-24 13:46:59",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mCA_VCuGW8CjDdsPBJn_CYqmHHCVkQ5BoUckbfGJA",
         "rating":5,
         "reviewText":"Wants town hall 12 soon"
      },
      {
         "date":"2018-12-24 13:46:52",
         "author":"technical king",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDEsrhmf22Rmo1IraiheAwxOtwoLDVkIsW3LpklCA",
         "rating":1,
         "reviewText":"Very good"
      },
      {
         "date":"2018-12-24 13:46:18",
         "author":"Aliul Hasan",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mCj8hyc4K7BFgS-rG0it0MgCdf2blIUZz9aEhDp",
         "rating":5,
         "reviewText":"It is my favourite game"
      },
      {
         "date":"2018-12-24 13:46:06",
         "author":"A Google user",
         "authorPhoto":"https://lh5.googleusercontent.com/-A1QJpTM-HUE/AAAAAAAAAAI/AAAAAAAAAAA/fCaAjnjRgtU/photo.jpg",
         "rating":5,
         "reviewText":"Very good"
      },
      {
         "date":"2018-12-24 13:46:02",
         "author":"Uma Mahesh N",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDseFeqj6p-Lq2o9eBY-xHRabbzJKbFHDBjDR7c",
         "rating":5,
         "reviewText":"Nice game"
      },
      {
         "date":"2018-12-24 13:45:56",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mB7UUy8rHeMP2aij8xALDYCnMz5Eptj6zMKx4tc",
         "rating":5,
         "reviewText":"cool game"
      },
      {
         "date":"2018-12-24 13:45:20",
         "author":"sasha chrito",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDQ_wDRSD9LTRJ2uQ1xrxMtJ-VbLmH1ldXAIr_-",
         "rating":5,
         "reviewText":"I LOVE COC very much"
      },
      {
         "date":"2018-12-24 13:45:11",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mC1BQ9jV9oDZ0uk_JqRlSVwREzBYeB2nxBzEZUk",
         "rating":5,
         "reviewText":"Love you"
      },
      {
         "date":"2018-12-24 13:45:05",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/-M1B7jHyF_7k/AAAAAAAAAAI/AAAAAAAAAAA/ofQloqYK0ow/photo.jpg",
         "rating":5,
         "reviewText":"cool"
      },
      {
         "date":"2018-12-24 13:44:52",
         "author":"A Google user",
         "authorPhoto":"https://lh4.googleusercontent.com/-veyUNcyyVxk/AAAAAAAAAAI/AAAAAAAAAAA/jjtX-sel30Y/photo.jpg",
         "rating":5,
         "reviewText":"i am bangladesi. i love coc because it give me pleasure and strategy knowledge i play coc always and i wish i become a very big player so thank you coc and help me become a big player"
      },
      {
         "date":"2018-12-24 13:44:47",
         "author":"Axolotl",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mDJHtsL-q-qh2MBp8q5l3O4jbyAzPySG1ixgRYp",
         "rating":5,
         "reviewText":"Nå er det et sinnsykt bra spill spessielt på grunn av klan krig!"
      },
      {
         "date":"2018-12-24 13:44:40",
         "author":"A Google user",
         "authorPhoto":"https://lh5.googleusercontent.com/-D70Uc0EaR7g/AAAAAAAAAAI/AAAAAAAAAAA/nVQ0KIFDN88/photo.jpg",
         "rating":5,
         "reviewText":"amazing"
      },
      {
         "date":"2018-12-24 13:44:10",
         "author":"A Google user",
         "authorPhoto":"https://lh4.googleusercontent.com/-XSWF9xLB6GE/AAAAAAAAAAI/AAAAAAAAAAA/lEIvOz40AF4/photo.jpg",
         "rating":4,
         "reviewText":"что за фиг ня что за обнова у меня когда нажимаю на новости игра вылетает сообщения пол кортинки не видно я не доволен"
      },
      {
         "date":"2018-12-24 13:43:58",
         "author":"A Google user",
         "authorPhoto":"https://lh5.googleusercontent.com/-Mzn6BQsVE8Y/AAAAAAAAAAI/AAAAAAAAAAA/4HZVmyK7YXs/photo.jpg",
         "rating":5,
         "reviewText":"gajab"
      },
      {
         "date":"2018-12-24 13:43:13",
         "author":"Bryan Simon Sanchez Eranista",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mC-Zpn3Ao8qza49REV0j4EeEmkoeH8z5Z3vLg9c",
         "rating":1,
         "reviewText":"do you know that your supercell i.d . has been a usefull way to the scammer to get account . my 2 account has been connected to SC ID without my permission. its your work right . so your the one who can help me bring back my account ?"
      },
      {
         "date":"2018-12-24 13:43:11",
         "author":"Vivek Palina",
         "authorPhoto":"https://lh5.googleusercontent.com/-940QFsCKBZk/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcYouGAXRzeaGnK-FtojN5h9RclgIQ/mo/photo.jpg",
         "rating":5,
         "reviewText":"one of the world's best game"
      },
      {
         "date":"2018-12-24 13:43:09",
         "author":"Parag Jadhav",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mAjd9hbKxPDapG_iNDMhp--rDxSRn4EuR2hxMkkyA",
         "rating":2,
         "reviewText":"Sometimes when my clanmate donates troops to me,they goes nowhere...He can see that donation is successful but I never receives them ;("
      },
      {
         "date":"2018-12-24 13:42:36",
         "author":"꧁Chun Yuen꧂",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mABOsBzSbRx9aPaCSEuEHqldojJOlv7k9uVGrq7",
         "rating":1,
         "reviewText":"i cant login my id VIP_小俊"
      },
      {
         "date":"2018-12-24 13:41:55",
         "author":"A Google user",
         "authorPhoto":"https://lh6.googleusercontent.com/-c3qzpJqou54/AAAAAAAAAAI/AAAAAAAAAAA/PKhJRWfg1FE/photo.jpg",
         "rating":5,
         "reviewText":"As"
      },
      {
         "date":"2018-12-24 13:41:50",
         "author":"Suman kumari Kumari",
         "authorPhoto":"https://lh6.googleusercontent.com/-2Mj1RHoHuYc/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcaB3vrxki8zZatOD0sf3s57pVDURw/mo/photo.jpg",
         "rating":5,
         "reviewText":"a mamu bole teo akbham jaksh"
      },
      {
         "date":"2018-12-24 13:40:46",
         "author":"A Google user",
         "authorPhoto":"https://lh6.googleusercontent.com/-M5qa-sgHFm4/AAAAAAAAAAI/AAAAAAAAAAA/CBJ70thT3kw/photo.jpg",
         "rating":5,
         "reviewText":"best game i ever played"
      },
      {
         "date":"2018-12-24 13:40:37",
         "author":"A Google user",
         "authorPhoto":"https://lh4.googleusercontent.com/-Zy_RY879NjI/AAAAAAAAAAI/AAAAAAAAAAA/oe-FOPjbETI/photo.jpg",
         "rating":5,
         "reviewText":"Good"
      },
      {
         "date":"2018-12-24 13:40:35",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/-yM1irpRIfIM/AAAAAAAAAAI/AAAAAAAAAAA/oI337F1EobE/photo.jpg",
         "rating":5,
         "reviewText":"it's amazing how much you love it and I love it"
      },
      {
         "date":"2018-12-24 13:40:27",
         "author":"A Google user",
         "authorPhoto":"https://lh6.googleusercontent.com/-iKB3-FtuBj8/AAAAAAAAAAI/AAAAAAAAAAA/fEA1xElg15Y/photo.jpg",
         "rating":5,
         "reviewText":"Very nice game"
      },
      {
         "date":"2018-12-24 13:40:17",
         "author":"A Google user",
         "authorPhoto":"https://lh6.googleusercontent.com/-TqROmpFxuL4/AAAAAAAAAAI/AAAAAAAAAAA/-wcpyMawShg/photo.jpg",
         "rating":5,
         "reviewText":"Super"
      },
      {
         "date":"2018-12-24 13:39:45",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/-dCe6IL4sET4/AAAAAAAAAAI/AAAAAAAAAAA/vcyWyVuPg8c/photo.jpg",
         "rating":5,
         "reviewText":"nice gam e"
      },
      {
         "date":"2018-12-24 13:37:48",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/-dUsYZNOCM6w/AAAAAAAAAAI/AAAAAAAAAAA/ixVSqeMPQRI/photo.jpg",
         "rating":5,
         "reviewText":"this game is amazing"
      },
      {
         "date":"2018-12-24 13:37:47",
         "author":"ENTER TAINER",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mAVZSf9oCQWSI0_eSoaIEpimAjujb93F8rptlAO",
         "rating":5,
         "reviewText":"nice phone I have ever played"
      },
      {
         "date":"2018-12-24 13:37:39",
         "author":"MANI KANTA",
         "authorPhoto":"https://lh4.googleusercontent.com/-vxI-1-gBgEM/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcYjoBKCjZBtYSHUGZwKX2vPhWP_MQ/mo/photo.jpg",
         "rating":4,
         "reviewText":"IAM IOST MORE TROPHY SUPER CELL SEE MYYY BASE ONE TIME #PR28U0PUV"
      },
      {
         "date":"2018-12-24 13:37:18",
         "author":"A Google user",
         "authorPhoto":"https://lh6.googleusercontent.com/-evaTlieF-v0/AAAAAAAAAAI/AAAAAAAAAAA/l3Y9BFuCF4I/photo.jpg",
         "rating":5,
         "reviewText":"fantastic it nice what i say waoooo "
      },
      {
         "date":"2018-12-24 13:36:39",
         "author":"Jefferson Corro",
         "authorPhoto":"https://lh3.googleusercontent.com/-l-1AG0dRhxQ/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcZo_NHiv3QUizUsD0WA6hWY2dEZtA/mo/photo.jpg",
         "rating":5,
         "reviewText":"thank you"
      },
      {
         "date":"2018-12-24 13:36:30",
         "author":"Anita Gurung",
         "authorPhoto":"https://lh5.googleusercontent.com/-7FkYFO0EuUQ/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcZKGPM4SyVdrZ3hnDr_FI8t80m9Rw/mo/photo.jpg",
         "rating":5,
         "reviewText":"Fine"
      },
      {
         "date":"2018-12-24 13:36:19",
         "author":"A Google user",
         "authorPhoto":"https://lh3.googleusercontent.com/a-/AAuE7mD1jdEM917g92sMPMWBkHe6Qf5HC9ya64vj8yUb",
         "rating":5,
         "reviewText":"THIS IS MY 3 FAVOURITE GAME ON PLAYSTORE I LOVE COC PLAYING ALL THE TIME"
      },
      {
         "date":"2018-12-24 13:35:57",
         "author":"anil rai",
         "authorPhoto":"https://lh4.googleusercontent.com/-FO3att02aNE/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcYJeh-JWq8d6OhXLTFhHbQWAGzjUw/mo/photo.jpg",
         "rating":3,
         "reviewText":"excellent"
      },
      {
         "date":"2018-12-24 13:35:50",
         "author":"prem saxena",
         "authorPhoto":"https://lh4.googleusercontent.com/-l0wQKnuCD5I/AAAAAAAAAAI/AAAAAAAAAAA/AKxrwcZKymagN4ljshyOQghWp3EzUNZMQw/mo/photo.jpg",
         "rating":5,
         "reviewText":"so cool i will come after 3 years"
      }
   ],
   "appid":"com.supercell.clashofclans",
   "displayingLatest":"40 reviews",
   "author":"Ilan Patao - ilan@reviewsmaker.com"
}

希望它有所帮助!


代码中像 "// 调用我的 API" 这样调用不起作用的 API 是没有什么用处的。 - sandris

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接