Coder Social home page Coder Social logo

guigoz / google-play-store-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thetutlage/google-play-store-api

0.0 1.0 0.0 344 KB

Play Store API is an unofficial version of Google Play Store which will let you pullup applications from google play store using18 different functions covering almost everything from google store

PHP 90.46% CSS 3.42% JavaScript 0.36% HTML 5.76%

google-play-store-api's Introduction

Google-Play-Store-API

DEPRECIATED

Play Store API is an unofficial version of Google Play Store which will let you pullup applications from google play store using18 different functions covering almost everything from google store

Requirements

  1. Php 5.0 or greater
  2. CURL enabled server
  3. Support for mb_eregi function.

Error Handling

Class itself does all required error handling. All functions will return 0 in case of any error and will return array of data in case of success.

List Of Functions

  1. Getting Top Paid Apps
  2. Getting Top Free Apps
  3. Getting Top Grossing Apps
  4. Getting Top New Paid Apps
  5. Getting Top New Free Apps
  6. Getting Top Paid Games
  7. Getting Top Free Games
  8. Getting Trending Apps
  9. Getting Staff Picks
  10. Getting Staff Picks For Tablet
  11. List All Categories
  12. Finding Paid Items In A Category
  13. Finding Free Items In A Category
  14. Finding Items From A Certain Developer
  15. Search Items
  16. Getting Item Info
  17. Finding Related Viewed Items
  18. Finding Related Installed

Getting Top Paid Apps

<pre class="brush:php">
	include_once('api/playStoreApi.php'); // including class file
	$class_init = new PlayStoreApi;	// initiating class
	
	/* WITHOUT PARAMERTER */
	$topPaidApps = $class_init->topPaidApps(); // calling topPaidApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topPaidApps = $class_init->topPaidApps($page); // calling topPaidApps

	if($topPaidApps !== 0)
	{
		print_r($topPaidApps); // it will show all data inside an array
	}
</pre>

Getting Top Free Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topFreeApps = $class_init->topFreeApps(); // calling topFreeApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topFreeApps = $class_init->topFreeApps($page); // calling topFreeApps

	if($topFreeApps !== 0)
	{
		print_r($topFreeApps); // it will show all data inside an array
	}
</pre>

Getting Top Grossing Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topGrossingApps = $class_init->topGrossingApps(); // calling topGrossingApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topGrossingApps = $class_init->topGrossingApps($page); // calling topGrossingApps

	if($topGrossingApps !== 0)
	{
		print_r($topGrossingApps); // it will show all data inside an array
	}
</pre>

Getting Top New Paid Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topNewPaidApps = $class_init->topNewPaidApps(); // calling topNewPaidApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topNewPaidApps = $class_init->topNewPaidApps($page); // calling topNewPaidApps

	if($topNewPaidApps !== 0)
	{
		print_r($topNewPaidApps); // it will show all data inside an array
	}
</pre>

Getting Top New Free Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topNewFreeApps = $class_init->topNewFreeApps(); // calling topNewFreeApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topNewFreeApps = $class_init->topNewFreeApps($page); // calling topNewFreeApps

	if($topNewFreeApps !== 0)
	{
		print_r($topNewFreeApps); // it will show all data inside an array
	}
</pre>

Getting Top Paid Games

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topPaidGames = $class_init->topPaidGames(); // calling topPaidGames

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topPaidGames = $class_init->topPaidGames($page); // calling topPaidGames

	if($topPaidGames !== 0)
	{
		print_r($topPaidGames); // it will show all data inside an array
	}
</pre>

Getting Top Free Games

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topFreeGames = $class_init->topFreeGames(); // calling topFreeGames

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topFreeGames = $class_init->topFreeGames($page); // calling topFreeGames

	if($topFreeGames !== 0)
	{
		print_r($topFreeGames); // it will show all data inside an array
	}
</pre>

Getting Trending Apps

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$topTrendingApps = $class_init->topTrendingApps(); // calling topTrendingApps

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$topTrendingApps = $class_init->topTrendingApps($page); // calling topTrendingApps

	if($topTrendingApps !== 0)
	{
		print_r($topTrendingApps); // it will show all data inside an array
	}
</pre>

Getting Staff Picks

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$staffPicks = $class_init->staffPicks(); // calling staffPicks

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$staffPicks = $class_init->staffPicks($page); // calling staffPicks

	if($staffPicks !== 0)
	{
		print_r($staffPicks); // it will show all data inside an array
	}
</pre>

Getting Staff Picks For Tablet

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PARAMERTER */
	$staffPicksForTablet = $class_init->staffPicksForTablet(); // calling staffPicksForTablet

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$staffPicksForTablet = $class_init->staffPicksForTablet($page); // calling staffPicksForTablet

	if($staffPicksForTablet !== 0)
	{
		print_r($staffPicksForTablet); // it will show all data inside an array
	}
</pre>

List All Categories

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	$listCategories = $class_init->listCategories(); // calling listCategories

	if($listCategories !== 0)
	{
		print_r($listCategories['Games']); // it will show all games cateogry inside an array
		print_r($listCategories['Applications']); // it will show all games cateogry inside an array
	}
</pre>

Finding Paid Items In A Category

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$category_name = 'Themes'
	$categoryPaidItems = $class_init->categoryPaidItems($category_name); // calling categoryPaidItems

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$categoryPaidItems = $class_init->categoryPaidItems($category_name,$page); // calling categoryPaidItems

	if($categoryPaidItems !== 0)
	{
		print_r($categoryPaidItems); // it will show all data inside an array
	}
</pre>

Getting Free Items In A Category

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$category_name = 'Themes'
	$categoryFreeItems = $class_init->categoryFreeItems($category_name); // calling categoryFreeItems

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$categoryFreeItems = $class_init->categoryFreeItems($category_name,$page); // calling categoryFreeItems

	if($categoryFreeItems !== 0)
	{
		print_r($categoryFreeItems); // it will show all data inside an array
	}
</pre>

Finding Items From A Certain Developer

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$developer_name = 'ZYNGA'
	$developerItems = $class_init->developerItems($developer_name); // calling developerItems

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$developerItems = $class_init->developerItems($developer_name,$page); // calling developerItems

	if($developerItems !== 0)
	{
		print_r($developerItems); // it will show all data inside an array
	}
</pre>

Search Items

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* SEARCH PARAMETERE */
	$search_query = 'Go Themes';
	$sort = 'Popularity'	// Popularity OR Relevance ( OPTIONAL )
	$price = 'All'	// Free OR Paid OR All ( OPTIONAL )
	$safe_search = 'Off' 	// Off OR On	( OPTIONAL )

	/* WITHOUT PAGINATION PARAMERTER */
	
	$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search); // calling searchStore

	/* PAGINATION PARAMETER */
	// You can easily add the page numbers to paginate the result
	$page = 2;
	$searchStore = $class_init->searchStore($search_query,$sort,$price,$safe_search,$page); // calling searchStore

	if($searchStore !== 0)
	{
		print_r($searchStore); // it will show all data inside an array
	}
</pre>

Getting Item Info

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$item_id = 'com.golauncher.go'
	$itemInfo = $class_init->itemInfo($item_id); // calling itemInfo

	if($itemInfo !== 0)
	{
		print_r($itemInfo); // it will show all data inside an array
	}
</pre>

Finding Related Viewed Items

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$item_id = 'com.golauncher.go'
	$relatedViewed = $class_init->relatedViewed($item_id); // calling relatedViewed

	if($relatedViewed !== 0)
	{
		print_r($relatedViewed); // it will show all data inside an array
	}
</pre>

Finding Related Installed

		include_once('api/playStoreApi.php'); // including class file
		$class_init = new PlayStoreApi;	// initiating class
	/* WITHOUT PAGINATION PARAMERTER */
	$item_id = 'com.golauncher.go'
	$relatedInstalled = $class_init->relatedInstalled($item_id); // calling relatedInstalled

	if($relatedInstalled !== 0)
	{
		print_r($relatedInstalled); // it will show all data inside an array
	}
</pre>

google-play-store-api's People

Contributors

thetutlage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.