SkillAgentSearch skills...

GooglePlayStoreApi

Google Play Store API for .NET(unofficial)

Install / Use

/learn @kagasu/GooglePlayStoreApi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img src="https://i.imgur.com/I6Fcgir.png" width="96" height="96">

GooglePlayStoreApiNuGet

Install

Install as NuGet package

Install-Package GooglePlayStoreApi

.NET CLI

dotnet add package GooglePlayStoreApi

Usage

Get auth_token from this URL

Search

var email = "abc@gmail.com";
var androidId = ""; // use your real GSF ID(Google Service Framework ID)
var token = "oauth2_4/...";

var client = new GooglePlayStoreClient(email, androidId);
token = await client.GetGoogleToken(token);
await client.GetGoogleAuth(token);

var searchResult = await client.Search("gmail");
foreach (var appDetail in searchResult.PreFetch[0].Response.Payload.ListResponse.Item[0].SubItem.Select(x => x.SubItem[0]))
{
  var appId = appDetail.Id;
  var appName = appDetail.Title;

  Console.WriteLine($"{appId},{appName}");
}

AppDetail

var email = "abc@gmail.com";
var androidId = ""; // use your real GSF ID(Google Service Framework ID)
var token = "oauth2_4/...";
var gmailPackageName = "com.google.android.gm";

var client = new GooglePlayStoreClient(email, androidId);
token = await client.GetGoogleToken(token);
await client.GetGoogleAuth(token);

var appDetail = await client.AppDetail(gmailPackageName);
var appName = appDetail.Item.Title;
var descriptionHtml = appDetail.Item.DescriptionHtml;
var versionCode = appDetail.Item.Details.AppDetails.VersionCode;
var versionString = appDetail.Item.Details.AppDetails.VersionString;
var permissions = appDetail.Item.Details.AppDetails.Permission;
var offerType = appDetail.Item.Offer[0].OfferType;

Download APK

var email = "abc@gmail.com";
var androidId = ""; // use your real GSF ID(Google Service Framework ID)
var token = "oauth2_4/...";
var gmailPackageName = "com.google.android.gm";

var client = new GooglePlayStoreClient(email, androidId);
token = await client.GetGoogleToken(token);
await client.GetGoogleAuth(token);

var appDetail = await GetAppDetail(client, gmailPackageName);
var versionCode = appDetail.Item.Details.AppDetails.VersionCode;
var offerType = appDetail.Item.Offer[0].OfferType;

await client.Purchase(gmailPackageName, offerType, versionCode);
var bytes = await client.DownloadApk(gmailPackageName);
File.WriteAllBytes("Gmail.apk", bytes);

First time login

var token = "oauth2_4/...";
token = await client.GetGoogleToken(token);
// save token to "token.txt"
File.WriteAllText("token.txt", token);
await client.GetGoogleAuth(token);

After the second time login

// load token from "token.txt"
var token = File.ReadAllText("token.txt");
await client.GetGoogleAuth(token);

Related projects

  • https://gitlab.com/AuroraOSS/AuroraStore
  • https://github.com/microg/android_packages_apps_GmsCore
  • https://github.com/NoMore201/googleplay-api
  • https://github.com/MCMrARM/Google-Play-API
  • https://github.com/dweinstein/node-google-play
  • https://github.com/Ksauder/googleplay-api
  • https://github.com/onyxbits/raccoon4
  • https://github.com/kiwiz/gkeepapi
  • https://github.com/onyxbits/dummydroid
  • https://github.com/ClaudiuGeorgiu/PlaystoreDownloader
  • https://github.com/yeriomin/token-dispenser
  • https://github.com/yeriomin/play-store-api
  • https://github.com/whyorean/playstore-api-v2
  • https://github.com/simon-weber/gpsoauth
  • https://github.com/vemacs/GPSOAuthSharp
  • https://github.com/bryanmytko/gpsoauth
  • https://github.com/svarzee/gpsoauth-java
  • https://github.com/dvirtz/gpsoauth-cpp
  • https://github.com/Iciclelz/gpsoauthclient
View on GitHub
GitHub Stars20
CategoryDevelopment
Updated2y ago
Forks6

Languages

C#

Security Score

75/100

Audited on Feb 22, 2024

No findings