19

The Google Play Store app (aka. Android Market) has updated to have many cool features, even wishlist of apps.

I wonder if there is any official API to communicate with it, even intents. I wonder if people just looked at the log to see the intents, or that there is an official API to reach each page of the app.

Here are some examples of what such API might be able to let you do:

  1. what would you do in order to add an app to the wishlist of the Google Play Store?
  2. what would you do in order to go to the reviews of a specific app, or even go to the part where you write a review of it?
  3. Is there a way to query the apps of a specific company there?
  4. what about a query of apps that were installed in the past?

And so on…

Charles
  • 50,943
  • 13
  • 104
  • 142
android developer
  • 114,585
  • 152
  • 739
  • 1,270

2 Answers2

3

1 . what would you do in order to add an app to the wishlist of the google play?

You can't

2 . what would you do in order to go to the reviews of a specific app , or even go to the part where you write a review of it ?

You can open up the app's page on Google Play using Intent with the URL from the link at the bottom of this answer.

3 . is there a way to query the apps of a specific company there ?

At best, you can use the Search URL to display a list of a particular developers apps.

4 . what about a query of apps that were installed in the past ?

You can't.

Documentation.

OrangeDog
  • 36,653
  • 12
  • 122
  • 207
Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
-2

Another unofficial API that you can try is also check out: www.playstoreapi.com

It's unofficial but easy to use (free for non commercial use) and it has a lot of nice features like search and top charts. from their documentation section:

Node.js:

var request     = require('request');
var apiKey      = 'wij5czxu3mxkzkt9'; // your API key
var packageName = 'com.whatsapp';     // package Name, e.g. com.whatsapp for WhatsApp

var url = 'http://api.playstoreapi.com/v1.1/apps/' + packageName + '?key=' + apiKey;

request({
    url: url,
    json: true
    }, function (error, response, body) {
    if (!error && response.statusCode === 200) {
        console.log(body) // Print the json response
    }
});
    

HTML/JS:

<html>
<head>
<body>
<p></p>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

  <script>

  var apiKey = 'wij5czxu3mxkzkt9'; // your API key
  var app    = 'com.whatsapp';     // package com.whatsapp for WhatsApp

  var url = 'http://api.playstoreapi.com/v1.1/apps/' + app + '?key=' + apiKey;

  $.getJSON(url).done(function(appDetails) {
    $('p:last').html(JSON.stringify(appDetails));
  });

  </script>
</body>
</head>
<html>
      

Python:

import urllib2
import json

packageName = 'com.whatsapp'      # package com.whatsapp for WhatsApp
apiKey      = 'wij5czxu3mxkzkt9'  # your API key

url = 'http://api.playstoreapi.com/v1.1/apps/{0}?key={1}'

response = urllib2.urlopen(url.format(packageName, apiKey))

data = json.load(response)   
print data
  

C# .NET:

string apiKey = "wij5czxu3mxkzkt9"; // your API key
string app    = "com.whatsapp";     // package com.whatsapp for WhatsApp

string url = "http://api.playstoreapi.com/v1.1/apps/{0}?key={1}";

using (var webClient = new System.Net.WebClient()) {
    string jsonString = webClient.DownloadString(string.Format(url, app, apiKey));
}
Benjamin Loison
  • 3,782
  • 4
  • 16
  • 33
orcaman
  • 6,263
  • 8
  • 54
  • 69
  • Nice, but it costs money and needs registration. and I don't know if they have Java support (though it's weird since that's the most common thing to use on Android). – android developer Apr 17 '14 at 11:32
  • it's a REST API, you can consume it anyway you like (just perform a GET request using your favourite programming language and you are set). it does require registration but from what I can gather it's free for non-commercial use. – orcaman Apr 18 '14 at 12:17
  • Does "non-commercial" include free apps and/or donation based apps, and/or ad-based apps? – android developer Apr 18 '14 at 13:04
  • I think that usually non-commercial use means that you are not going to be making money off this thing in a direct way (either by selling it or by displaying ads or something like that) – orcaman Apr 19 '14 at 10:54
  • oh, ok. thank you for suggesting this library. – android developer Apr 19 '14 at 11:17
  • 1
    Note: the link in this answer doesn't work (redirects to the play store). – Zack Feb 23 '16 at 04:44