1
00:00:00,300 --> 00:00:03,610
ITunes search AP ash affiliate resources.

2
00:00:03,630 --> 00:00:04,250
OK.

3
00:00:04,590 --> 00:00:09,670
So if you want to put this you are on your in your browser and on the search bar.

4
00:00:09,780 --> 00:00:13,690
You can actually put this you are an affiliate that iTunes that Apple dot com.

5
00:00:13,770 --> 00:00:22,010
Just select this link here and click on it and then it's going to actually guide us to this page here.

6
00:00:22,020 --> 00:00:24,230
So this is actually the iTunes Web service.

7
00:00:24,270 --> 00:00:30,480
So if you want to actually get some data from this web service and the format of the data is actually

8
00:00:30,890 --> 00:00:31,790
Jason.

9
00:00:31,870 --> 00:00:37,740
So in order to actually get the Jason data from the Internet for example this iTunes affiliate resources

10
00:00:37,740 --> 00:00:41,990
here this iTunes search API when you actually are right.

11
00:00:42,010 --> 00:00:45,030
First we need to read the documentation.

12
00:00:45,030 --> 00:00:46,260
This is really important.

13
00:00:46,280 --> 00:00:54,510
We can search for a variety of content including apps like books movies podcasts music music videos

14
00:00:54,870 --> 00:00:57,030
audio books and TV shows.

15
00:00:57,150 --> 00:01:04,040
OK so if we can get this data up from the iTunes Web service and we can actually put them on our application

16
00:01:04,410 --> 00:01:10,320
you can also call an I.T. based lock up request to create mappings between your content library and

17
00:01:10,320 --> 00:01:11,930
digital catalogue.

18
00:01:12,420 --> 00:01:18,060
And here as you can see it says a search change to search for content from a field in your website and

19
00:01:18,060 --> 00:01:19,980
display the results in your website.

20
00:01:20,130 --> 00:01:23,990
So in our case we want to actually display the results in our application.

21
00:01:24,060 --> 00:01:24,600
OK.

22
00:01:24,840 --> 00:01:31,590
You must create a search field that passes a fully qualified you Ardell content request to the iTunes

23
00:01:31,590 --> 00:01:32,680
store.

24
00:01:32,700 --> 00:01:39,900
So if you need to actually pass a fully qualified you Arel content request to the iTunes Store parse

25
00:01:39,900 --> 00:01:43,080
the javascript object notation Jason format.

26
00:01:43,080 --> 00:01:47,270
This is very important if you want to actually parse the Jason.

27
00:01:47,600 --> 00:01:53,200
And it says returned from the search and display the results in your website or application.

28
00:01:53,280 --> 00:01:55,510
So it says they're fully qualified.

29
00:01:55,560 --> 00:02:04,530
You all must have the following format husht TTP as Colon slash slash iTunes that Apple dot com slash

30
00:02:04,530 --> 00:02:08,930
search question mark paramita the key value.

31
00:02:08,970 --> 00:02:09,620
OK.

32
00:02:09,900 --> 00:02:16,860
And it is a very primitive value which can be one or more parameter key and value pinners indicating

33
00:02:16,910 --> 00:02:18,900
details of your query.

34
00:02:19,190 --> 00:02:27,010
OK so now let's actually search as you can see here these are the data descriptions and the values that

35
00:02:27,010 --> 00:02:28,680
we can actually get from these.

36
00:02:28,810 --> 00:02:33,240
Jason as you can see here TV shows off software e-book all as you can see here.

37
00:02:33,690 --> 00:02:43,500
And now let's actually scroll down here and let's actually search for Look-Up examples as you can see

38
00:02:43,500 --> 00:02:44,050
here.

39
00:02:44,100 --> 00:02:46,400
This is the Look-Up example section here.

40
00:02:46,650 --> 00:02:53,310
You can also create a look up requests to search for content in this thought based on iTunes IDs you

41
00:02:53,310 --> 00:02:54,580
PCs and other.

42
00:02:54,640 --> 00:02:58,890
And are these values on all music guide.

43
00:02:59,250 --> 00:03:06,180
So as you can see here it says the following are examples of fully qualified models for a specific look

44
00:03:06,180 --> 00:03:07,630
up requests.

45
00:03:08,010 --> 00:03:14,070
So for example as you can see here it says Look up Jack Johnson by iTunes artist Id.

46
00:03:14,310 --> 00:03:22,770
So first we need to put husht TTP s colon slash slash iTunes that Apple dot com slash look up questionmark

47
00:03:22,860 --> 00:03:24,730
ID this idea.

48
00:03:25,170 --> 00:03:30,090
And this is actually for example getting the data by using the artist ID as you can see here.

49
00:03:30,180 --> 00:03:40,050
OK this is the artist Id And we have iTunes Id also we have artist ID so we can actually get the data

50
00:03:40,050 --> 00:03:40,550
of this.

51
00:03:40,620 --> 00:03:47,970
For example Jack Johnson artist by using his artist ID in iTunes store or you can actually designate

52
00:03:47,970 --> 00:03:54,630
this year as you can see here it says Look up multiple artists the AMG artist IDs and all these other

53
00:03:54,630 --> 00:03:55,050
stuff.

54
00:03:55,230 --> 00:04:02,640
All it says look up all albums for Jack Johnson and as you can see here it says husht city as Colon

55
00:04:02,670 --> 00:04:08,720
slash slash iTunes that Apple dot com slash lockups question mark ID.

56
00:04:08,770 --> 00:04:15,510
So if we put the ID and the ampersand as you can see here entity album so we can get the albums of Jack

57
00:04:15,510 --> 00:04:16,080
Johnson.

58
00:04:16,080 --> 00:04:20,260
But using this you are by using this are as you can see here.

59
00:04:20,760 --> 00:04:26,620
And our other stuff here as you can see and here as you can see this is the format of the data that

60
00:04:26,660 --> 00:04:29,360
you actually get from the Internet as you can see here.

61
00:04:29,910 --> 00:04:30,670
OK.

62
00:04:31,020 --> 00:04:35,100
And it says and as you can see here we have these curly braces.

63
00:04:35,250 --> 00:04:41,530
So this is the actually the starting curly brace and this is the end in calibrates right.

64
00:04:41,580 --> 00:04:44,150
So this is actually called adjacent object.

65
00:04:44,370 --> 00:04:45,080
OK.

66
00:04:45,270 --> 00:04:51,690
This tarting calibrates and this ending clearly brace is actually called adjacent object and we can

67
00:04:51,690 --> 00:04:57,450
actually get this just an object and go inside the same object and get all these they tell for example

68
00:04:57,450 --> 00:04:59,390
wrapper type kind.

69
00:04:59,430 --> 00:05:05,410
Arties the collection ID and in our case as you can see here in our application want to for example

70
00:05:05,410 --> 00:05:09,930
get the type artist name collection name track name kind.

71
00:05:09,940 --> 00:05:10,650
Right.

72
00:05:10,960 --> 00:05:14,240
So as you can see here for example we can get the kind.

73
00:05:14,290 --> 00:05:18,010
So this is going to be for example the key and this is going to be the value.

74
00:05:18,010 --> 00:05:18,940
OK.

75
00:05:19,000 --> 00:05:21,110
And for example we want to get the artist name.

76
00:05:21,130 --> 00:05:23,530
So this is the artist name Jack Johnson.

77
00:05:23,530 --> 00:05:29,180
So we referred to this key in order to get this value and all this data as you can see here.

78
00:05:29,560 --> 00:05:37,600
So now as you can see it in a diagram here and here as you can see this is the documentation and I actually

79
00:05:37,600 --> 00:05:42,870
showed you how you can actually use this documentation in order to get the data from the Internet.

80
00:05:43,050 --> 00:05:47,660
OK so now let's act as you can see here it says Search examples.

81
00:05:47,800 --> 00:05:51,540
OK so the example section on it says the Fool.

82
00:05:51,700 --> 00:05:57,460
The following are examples of fully qualified you orders for a specific search requests and here as

83
00:05:57,460 --> 00:06:04,600
you can see it says to search for all Jacques's Johnson audio and video content movies podcasts music

84
00:06:04,600 --> 00:06:08,270
music videos audio books short films and TV shows.

85
00:06:08,410 --> 00:06:11,820
Your you Ardell would look like the following.

86
00:06:12,270 --> 00:06:17,630
Yes iTunes that Apple that com slash search questionmark harem.

87
00:06:17,800 --> 00:06:23,830
And after this term here as you can see we have this equal operator here equal Jack.

88
00:06:23,920 --> 00:06:25,100
Plus Johnson.

89
00:06:25,120 --> 00:06:28,770
So now let's actually select this.

90
00:06:28,940 --> 00:06:36,280
You are here just selected and now actually capitis you all just right clicking on it and select this

91
00:06:36,280 --> 00:06:40,980
copy here click on it and then paste it here as you can see.

92
00:06:41,080 --> 00:06:46,870
So instead of Jack Johnson I just want to get the information get the adjacent data of Michael Jackson

93
00:06:47,170 --> 00:06:58,920
so I can just type in Michael Plus Jackson Jackson and here I need to press the Enter key on my keyboard.

94
00:06:59,000 --> 00:07:03,650
So now it's can actually download itx the file from the Internet.

95
00:07:03,650 --> 00:07:09,830
So let's actually click on this download file here and here is the information of Michael Jackson in

96
00:07:09,830 --> 00:07:16,390
Jason format as you can see here but we can't actually read it here.

97
00:07:16,400 --> 00:07:19,460
It's really hard to read this data here.

98
00:07:19,460 --> 00:07:24,080
So in order to read this data I just need to select all of these data here.

99
00:07:24,080 --> 00:07:29,990
I just need to hold the command key on my keyboard and then press on the letter A key on my keyboard

100
00:07:30,590 --> 00:07:39,080
and just and I just need to right click on these data here and then copy this data OK and in the Google

101
00:07:39,340 --> 00:07:43,750
just search for Jaison a detail on line as you can see here.

102
00:07:44,060 --> 00:07:46,110
And then you will be guided to this page here.

103
00:07:46,310 --> 00:07:50,840
And then you just need to click on this link here that appears on this screen.

104
00:07:50,840 --> 00:07:52,250
This is going to be the first link.

105
00:07:52,280 --> 00:07:52,890
OK.

106
00:07:53,150 --> 00:07:57,020
Just click on it and now you will be guided to this page here.

107
00:07:57,020 --> 00:08:02,270
So now let's actually I just I'm just going to actually select all of these day Sunday to here and then

108
00:08:02,270 --> 00:08:03,990
press until on my keyboard.

109
00:08:04,250 --> 00:08:04,670
OK.

110
00:08:04,730 --> 00:08:12,910
And here I just need to up for example paste tools Jason data that I actually copied from that the file

111
00:08:12,920 --> 00:08:13,680
here.

112
00:08:14,060 --> 00:08:16,300
So this is the decent data that they actually place that here.

113
00:08:16,310 --> 00:08:16,850
OK.

114
00:08:17,150 --> 00:08:20,240
And here I just need to click on this play button here.

115
00:08:20,240 --> 00:08:21,970
Copy code to the editor.

116
00:08:22,010 --> 00:08:26,750
I just need to click on this pattern here and now these are the results.

117
00:08:26,780 --> 00:08:29,420
On the right pane here as you can see.

118
00:08:29,840 --> 00:08:35,090
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

119
00:08:35,090 --> 00:08:35,930
objects.

120
00:08:36,170 --> 00:08:44,100
This is actually this means that we have two objects and it says the result is 50 results count is 50.

121
00:08:44,120 --> 00:08:47,640
So we have up 50 result count.

122
00:08:47,660 --> 00:08:48,280
OK.

123
00:08:48,770 --> 00:08:52,510
And here as you can see we have these results which says it is 50 right.

124
00:08:52,520 --> 00:08:55,220
Or just to open these results here.

125
00:08:55,340 --> 00:08:58,810
And as you can see here we have 50 results right.

126
00:08:58,850 --> 00:09:04,510
Numbers zero through 49 and here for example I just need to open this number to zero.

127
00:09:04,550 --> 00:09:08,450
And as you can see here it says wrappers type Strach kind son.

128
00:09:08,870 --> 00:09:14,360
Artist ID for example these are the collection ID track ID artist name Michael Jackson.

129
00:09:14,360 --> 00:09:14,900
Right.

130
00:09:14,900 --> 00:09:20,480
If you search for Michael Jackson the collection name the essential Michael Jackson as you can see here

131
00:09:20,840 --> 00:09:27,860
the trash name protean thing collection insert name the essential Michael Jackson as you can see here

132
00:09:27,950 --> 00:09:29,300
at all these data.

133
00:09:29,390 --> 00:09:30,030
OK.

134
00:09:30,320 --> 00:09:36,590
And for example if you for example want to actually download in order to download the image artwork

135
00:09:36,590 --> 00:09:38,370
you are in as you can see here.

136
00:09:38,540 --> 00:09:41,050
This is actually a preview.

137
00:09:41,450 --> 00:09:46,880
And all this data for example collection price tracker price and all these data.

138
00:09:47,000 --> 00:09:49,820
And this is going to be only the first resort.

139
00:09:49,820 --> 00:09:50,290
OK.

140
00:09:50,330 --> 00:09:51,970
We have other results too.

141
00:09:52,190 --> 00:09:57,710
So for example it's actually look at this seconds result here it says number is number one rapper type

142
00:09:57,830 --> 00:09:58,610
kind.

143
00:09:58,670 --> 00:10:01,970
And again the artist the artist name is Michael Jackson.

144
00:10:02,030 --> 00:10:03,300
And all this data.

145
00:10:03,710 --> 00:10:04,200
OK.

146
00:10:04,310 --> 00:10:12,920
Country USA currency us the primary name pop is simple true.

147
00:10:13,040 --> 00:10:14,070
And all this later.

148
00:10:14,300 --> 00:10:19,910
So now let's actually go to our apprecate Android studio and let's see how we can actually parse this

149
00:10:19,910 --> 00:10:21,240
data from the internet.

