ITunes search AP ash affiliate resources.
OK.
So if you want to put this you are on your in your browser and on the search bar.
You can actually put this you are an affiliate that iTunes that Apple dot com.
Just select this link here and click on it and then it's going to actually guide us to this page here.
So this is actually the iTunes Web service.
So if you want to actually get some data from this web service and the format of the data is actually
Jason.
So in order to actually get the Jason data from the Internet for example this iTunes affiliate resources
here this iTunes search API when you actually are right.
First we need to read the documentation.
This is really important.
We can search for a variety of content including apps like books movies podcasts music music videos
audio books and TV shows.
OK so if we can get this data up from the iTunes Web service and we can actually put them on our application
you can also call an I.T. based lock up request to create mappings between your content library and
digital catalogue.
And here as you can see it says a search change to search for content from a field in your website and
display the results in your website.
So in our case we want to actually display the results in our application.
OK.
You must create a search field that passes a fully qualified you Ardell content request to the iTunes
store.
So if you need to actually pass a fully qualified you Arel content request to the iTunes Store parse
the javascript object notation Jason format.
This is very important if you want to actually parse the Jason.
And it says returned from the search and display the results in your website or application.
So it says they're fully qualified.
You all must have the following format husht TTP as Colon slash slash iTunes that Apple dot com slash
search question mark paramita the key value.
OK.
And it is a very primitive value which can be one or more parameter key and value pinners indicating
details of your query.
OK so now let's actually search as you can see here these are the data descriptions and the values that
we can actually get from these.
Jason as you can see here TV shows off software e-book all as you can see here.
And now let's actually scroll down here and let's actually search for Look-Up examples as you can see
here.
This is the Look-Up example section here.
You can also create a look up requests to search for content in this thought based on iTunes IDs you
PCs and other.
And are these values on all music guide.
So as you can see here it says the following are examples of fully qualified models for a specific look
up requests.
So for example as you can see here it says Look up Jack Johnson by iTunes artist Id.
So first we need to put husht TTP s colon slash slash iTunes that Apple dot com slash look up questionmark
ID this idea.
And this is actually for example getting the data by using the artist ID as you can see here.
OK this is the artist Id And we have iTunes Id also we have artist ID so we can actually get the data
of this.
For example Jack Johnson artist by using his artist ID in iTunes store or you can actually designate
this year as you can see here it says Look up multiple artists the AMG artist IDs and all these other
stuff.
All it says look up all albums for Jack Johnson and as you can see here it says husht city as Colon
slash slash iTunes that Apple dot com slash lockups question mark ID.
So if we put the ID and the ampersand as you can see here entity album so we can get the albums of Jack
Johnson.
But using this you are by using this are as you can see here.
And our other stuff here as you can see and here as you can see this is the format of the data that
you actually get from the Internet as you can see here.
OK.
And it says and as you can see here we have these curly braces.
So this is the actually the starting curly brace and this is the end in calibrates right.
So this is actually called adjacent object.
OK.
This tarting calibrates and this ending clearly brace is actually called adjacent object and we can
actually get this just an object and go inside the same object and get all these they tell for example
wrapper type kind.
Arties the collection ID and in our case as you can see here in our application want to for example
get the type artist name collection name track name kind.
Right.
So as you can see here for example we can get the kind.
So this is going to be for example the key and this is going to be the value.
OK.
And for example we want to get the artist name.
So this is the artist name Jack Johnson.
So we referred to this key in order to get this value and all this data as you can see here.
So now as you can see it in a diagram here and here as you can see this is the documentation and I actually
showed you how you can actually use this documentation in order to get the data from the Internet.
OK so now let's act as you can see here it says Search examples.
OK so the example section on it says the Fool.
The following are examples of fully qualified you orders for a specific search requests and here as
you can see it says to search for all Jacques's Johnson audio and video content movies podcasts music
music videos audio books short films and TV shows.
Your you Ardell would look like the following.
Yes iTunes that Apple that com slash search questionmark harem.
And after this term here as you can see we have this equal operator here equal Jack.
Plus Johnson.
So now let's actually select this.
You are here just selected and now actually capitis you all just right clicking on it and select this
copy here click on it and then paste it here as you can see.
So instead of Jack Johnson I just want to get the information get the adjacent data of Michael Jackson
so I can just type in Michael Plus Jackson Jackson and here I need to press the Enter key on my keyboard.
So now it's can actually download itx the file from the Internet.
So let's actually click on this download file here and here is the information of Michael Jackson in
Jason format as you can see here but we can't actually read it here.
It's really hard to read this data here.
So in order to read this data I just need to select all of these data here.
I just need to hold the command key on my keyboard and then press on the letter A key on my keyboard
and just and I just need to right click on these data here and then copy this data OK and in the Google
just search for Jaison a detail on line as you can see here.
And then you will be guided to this page here.
And then you just need to click on this link here that appears on this screen.
This is going to be the first link.
OK.
Just click on it and now you will be guided to this page here.
So now let's actually I just I'm just going to actually select all of these day Sunday to here and then
press until on my keyboard.
OK.
And here I just need to up for example paste tools Jason data that I actually copied from that the file
here.
So this is the decent data that they actually place that here.
OK.
And here I just need to click on this play button here.
Copy code to the editor.
I just need to click on this pattern here and now these are the results.
On the right pane here as you can see.
So as you can see here we have two objects as you can see here at about at the top it says we have two
objects.
This is actually this means that we have two objects and it says the result is 50 results count is 50.
So we have up 50 result count.
OK.
And here as you can see we have these results which says it is 50 right.
Or just to open these results here.
And as you can see here we have 50 results right.
Numbers zero through 49 and here for example I just need to open this number to zero.
And as you can see here it says wrappers type Strach kind son.
Artist ID for example these are the collection ID track ID artist name Michael Jackson.
Right.
If you search for Michael Jackson the collection name the essential Michael Jackson as you can see here
the trash name protean thing collection insert name the essential Michael Jackson as you can see here
at all these data.
OK.
And for example if you for example want to actually download in order to download the image artwork
you are in as you can see here.
This is actually a preview.
And all this data for example collection price tracker price and all these data.
And this is going to be only the first resort.
OK.
We have other results too.
So for example it's actually look at this seconds result here it says number is number one rapper type
kind.
And again the artist the artist name is Michael Jackson.
And all this data.
OK.
Country USA currency us the primary name pop is simple true.
And all this later.
So now let's actually go to our apprecate Android studio and let's see how we can actually parse this
data from the internet.