1
00:00:00,440 --> 00:00:06,380
In this lecture, I would like to show you how can you find the metadata of an Instagram account?

2
00:00:07,100 --> 00:00:13,640
Now, the metadata might sometimes contain some useful information, such as if an Instagram account

3
00:00:13,640 --> 00:00:16,190
is linked to a Facebook profile or not.

4
00:00:16,220 --> 00:00:21,230
The user ID and some other information that you can see in the screenshot.

5
00:00:21,650 --> 00:00:28,400
Now to do this, we need to change our browser user agent and a user agent is basically when you go

6
00:00:28,400 --> 00:00:34,160
to a website, your browser will send information about your browser and your operating system, such

7
00:00:34,160 --> 00:00:39,950
as which operating system you are running on, which browser you are using, which version, etc. so

8
00:00:39,950 --> 00:00:46,760
we need to change this information to an Android device because we will be using an Instagram API,

9
00:00:46,760 --> 00:00:51,470
and the only way to access this page is by changing our user agent.

10
00:00:51,560 --> 00:00:57,740
So the first thing we need is to add the user agent, switcher and manager add on to our Firefox or

11
00:00:57,740 --> 00:01:04,640
Chrome, and after you add it to your browser, the next thing you need is the user ID of the Instagram

12
00:01:04,680 --> 00:01:07,800
account and we already have Rishi Kobra user ID.

13
00:01:08,610 --> 00:01:12,330
Next you need to be logged in to your Instagram account.

14
00:01:12,570 --> 00:01:15,870
And lastly, you need to change your user agent.

15
00:01:15,870 --> 00:01:17,610
So here is the add on.

16
00:01:17,610 --> 00:01:19,170
I'm going to click on it.

17
00:01:19,200 --> 00:01:21,360
And then I'm going to click on here.

18
00:01:21,360 --> 00:01:23,880
And then select Instagram.

19
00:01:25,470 --> 00:01:29,430
And then I'm going to select windows and change it to Android.

20
00:01:29,430 --> 00:01:33,570
So we want to access the API using an Android device.

21
00:01:33,570 --> 00:01:38,820
And if we read the user agent, every website we visit is going to think that we are windows.

22
00:01:38,820 --> 00:01:47,100
But if we select a user agent now, every website will think that we are running or using Mozilla 5.0

23
00:01:47,100 --> 00:01:56,910
and Android device and a Samsung, etc. so then I'm going to say apply and then if I refresh the page,

24
00:01:56,910 --> 00:02:02,250
you will see that the view is going to be changed a little bit, like here for example.

25
00:02:02,940 --> 00:02:05,640
And the last thing we need is this URL.

26
00:02:05,880 --> 00:02:12,730
So this URL will allow us to access an and Instagram API, and all we have to do is just to replace

27
00:02:12,730 --> 00:02:19,780
this number with the user ID, and I've already replaced the number that was here with the user ID of

28
00:02:19,780 --> 00:02:20,950
Rishi Khabra.

29
00:02:21,040 --> 00:02:24,310
You'll find this link in the resources of this lecture.

30
00:02:24,640 --> 00:02:30,430
And then I'm going to copy this link and open a new tab and then hit enter.

31
00:02:31,690 --> 00:02:37,930
And as you can see here are the information that we were able to find about this Instagram account about

32
00:02:37,930 --> 00:02:38,920
Rishi Khabra.

33
00:02:38,950 --> 00:02:45,790
We can see his full name, his user ID, his username and some other information.

34
00:02:45,790 --> 00:02:54,340
For example, if he had any biography, if there was any external links, if he had any page ID, etc.

35
00:02:54,370 --> 00:02:57,850
we can also see the people that were suggested.

36
00:02:57,850 --> 00:03:03,700
So I always like to minimize this because these are not important.

37
00:03:03,850 --> 00:03:09,430
And we can also see his follower count following count and read all of this information.

38
00:03:09,460 --> 00:03:16,180
Now, the coolest thing about this is that when we tried to save Rishi Khabra profile picture, we were

39
00:03:16,180 --> 00:03:20,020
only able to get the 320 by 320 pixels.

40
00:03:20,050 --> 00:03:27,280
But if you were able to access the URL or the API, then you will find an HD version of his profile

41
00:03:27,280 --> 00:03:27,970
picture.

42
00:03:28,000 --> 00:03:36,520
So I'm going to open this and you can see that this is 512 by 512, which is mentioned in here.

43
00:03:36,520 --> 00:03:39,820
And this is the one that we were able to save before.

44
00:03:39,820 --> 00:03:46,990
But if we have the metadata of his profile, we will be able to see a high resolution of his profile

45
00:03:46,990 --> 00:03:47,770
picture.

46
00:03:48,250 --> 00:03:53,080
Now, I have realized that he uploaded a 512 by 512 picture.

47
00:03:53,080 --> 00:03:58,840
And I've tried this with other accounts and we're able to get even higher resolution.

48
00:03:59,230 --> 00:04:05,260
Now, what I always like to do is just to make a copy of this JSON file by clicking on save, and then

49
00:04:05,260 --> 00:04:08,110
I can save it in Rishi Khabra folder.

50
00:04:08,860 --> 00:04:14,680
So in this video you have learned how you can extract the metadata of any Instagram account by changing

51
00:04:14,680 --> 00:04:16,840
your browser user agent.