Skip to content

szagriichuk/search-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iTunes Search API for Java. (https://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html)

How to use it:

Firstly you need to create "search" or "lookup" parameters. For instance, for finding all tracks of Johnnie Johnson (https://en.wikipedia.org/wiki/Johnnie_Johnson_(musician)) create next search parameters:

    private SearchParameters createParams() {
        SearchParameters searchParams = new SearchParameters();
        searchParams.addQueryTerm("Johnnie");
        searchParams.addQueryTerm("Johnson");
        searchParams.setMedia(Media.MUSIC);
        return searchParams;
    }

And after it juts call SearchApi.search(createParams()) method. Result will be first 50 (default limit, you can configure it changing searchParams.setLimit(new Limit(200));) records from iTunes search API bound to SearchResults object.

About

iTunes Search API for Java

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages