PHP Classes

PHP iTunes Search API: Fetch data about podcast and apps from iTunes

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 161 All time: 8,954 This week: 524Up
Version License PHP version Categories
fetch-apple-itunes-d 1.0.0BSD License5XML, PHP 5, Searching, Web services
Description 

Author

This class can fetch data about podcast and apps from iTunes.

It can send HTTP requests to iTunes Web server to retrieve several types of RSS feeds with the results for searching podcasts, apps and other types of media hosted by iTunes.

Currently in can search for iPhone apps, app reviews, audio books, ebooks, movies, music, podcasts and TV shows.

Innovation Award
PHP Programming Innovation award nominee
March 2017
Number 5


Prize: One subscription to the PDF edition of the PHP Architect magazine
iTunes is a popular store for purchasing media and apps for Apple devices.

This package can send queries to iTunes APIs to retrieve and parse RSS feeds with the details of several types of media and apps sold by iTunes.

Manuel Lemos
Picture of Yasir Siddiqui
  Performance   Level  
Name: Yasir Siddiqui is available for providing paid consulting. Contact Yasir Siddiqui .
Classes: 14 packages by
Country: Pakistan Pakistan
Age: 40
All time rank: 3133 in Pakistan Pakistan
Week rank: 49 Up1 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 8x

Winner: 1x

Example

<?php
require_once 'Class.itunes.php';

$itunesobj = new iTunes_Connect();

//$data = $itunesobj->searchiTunes("jack johnson",NULL,NULL,NULL,NULL,5);
//echo "<pre>";
//print_r($data);
//echo "</pre>";


// Two characters country code
// http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

/*
$data = $itunesobj->getAppDetails("400274934","US"); //// slanka 505461492
echo "<pre>";
print_r($data);
echo "</pre>";
*/

// Two characters country code
// http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
/*
$data = $itunesobj->getAppReviews("505461492"); //// slanka 505461492
echo "<pre>";
print_r($data);
echo "</pre>";
*/

/* $data = $itunesobj->getMacApps("us",TOP_MAC_APPS_FREE,MAC_BUSINESS,2);
echo "<pre>";
print_r($data);
echo "</pre>"; */


/* $data = $itunesobj->getMovies("us",TOP_MOVIES,MOVIES_COMEDY,5);
echo "<pre>";
print_r($data);
echo "</pre>"; */

/* $data = $itunesobj->getMusic("us",MUSIC_TOP_SONGS,MUSIC_TYPE_DANCE,3);
echo "<pre>";
print_r($data);
echo "</pre>"; */

/* $data = $itunesobj->getMusicVideos("us",TOP_MUSIC_VIDEOS,MUSIC_VIDEOS_LATIN,2);
echo "<pre>";
print_r($data);
echo "</pre>"; */

/* $data = $itunesobj->getPodCasts("us",TOP_PODCASTS,PODCASTS_ARTS,3);
echo "<pre>";
print_r($data);
echo "</pre>"; */

 
$data = $itunesobj->getTvShows("us",TOP_TV_SEASONS,TV_SHOWS_COMEDY,3);
 echo
"<pre>";
print_r($data);
echo
"</pre>";






Details

Fetch-Apple-iTunes-Data

This class can fetch veriety of data information from Apple iTunes store. It gets data by consuming iTunes rss feeds. With this class you can search for the following information

? Search itunes store against any keyword and any media type

? Get complete details for any iPhone/iPad App

? Get customers reviews for any iPhone/iPad App

? Get information about audio books in any category

? Get information about ebooks in any category having different rankings e.g. Top Paid books ect

? Get list of iPhone/iPad Apps in any category having different ranking e.g. Top Free Apps, Top Paid Apps

? Get list of MAC Apps in any category having different ranking e.g. Top Free Apps, Top Paid Apps

? Get the list of Movies in any category having different rankings like Top Movies

? Get the list of audio songs in any category having different rankings like Top Songs

? Get the list of video songs in any category having different rankings like Top video Songs

? Get the list of podcasts in any category having different rankings

? Get the list of Tv Shows in any category having different rankings like Top Seasons


  Files folder image Files (3)  
File Role Description
Plain text file Class.itunes.php Class Class source
Accessible without login Plain text file Example.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:161
This week:0
All time:8,954
This week:524Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:514