-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstagram.raml
3369 lines (3320 loc) · 160 KB
/
instagram.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#%RAML 1.0
---
title: Instagram API
version: v1
baseUri: https://api.instagram.com/{version}
securitySchemes:
- oauth_2_0:
description: |
Instagram’s API uses the OAuth 2.0 protocol for simple, but effective
authentication and authorization. The one thing to keep in mind is that
all requests to the API must be made over SSL (https:// not http://)
type: OAuth 2.0
describedBy:
queryParameters:
access_token:
description: |
Used to send a valid OAuth 2 access token. Do not use together with
the "Authorization" header
type: string
settings:
authorizationUri: https://api.instagram.com/oauth/authorize
accessTokenUri: https://api.instagram.com/oauth/access_token
authorizationGrants: [ code, token ]
scopes:
- basic
- comments
- relationships
- likes
securedBy: [ oauth_2_0 ]
mediaType: application/json
traits:
- limitableById:
queryParameters:
min_id:
description: Return media later than this min_id.
type: integer
max_id:
description: Return media earlier than this max_id.
type: integer
- limitableByTime:
queryParameters:
max_timestamp:
description: Return media before this UNIX timestamp.
type: integer
min_timestamp:
description: Return media after this UNIX timestamp.
type: integer
resourceTypes:
- base:
get?:
queryParameters:
callback:
description: |
Callback function name. All output will be wrapper under this function name.
type: string
example: callbackFunction
required: false
count:
description: Number of items you would like to receive.
type: integer
example: 1
required: false
responses:
503:
description: |
Server Unavailable. Check Your Rate Limits.
post?:
responses:
503:
description: |
Server Unavailable. Check Your Rate Limits.
delete?:
responses:
503:
description: |
Server Unavailable. Check Your Rate Limits.
documentation:
- title: Authentication
content: |
Instagram’s API uses the [OAuth 2.0 protocol](http://tools.ietf.org/html/draft-ietf-oauth-v2-12) for simple, but effective authentication and authorization. OAuth 2.0 is much easier to use than previous schemes; developers can start using the Instagram API almost immediately. The one thing to keep in mind is that all requests to the API must be made over SSL (https:// not http://)
## Do you need to authenticate?
For the most part, Instagram’s API only requires the use of a _client_id). A client_id simply associates your server, script, or program with a specific application. However, some requests require authentication - specifically requests made on behalf of a user. Authenticated requests require an _access_token_. These tokens are unique to a user and should be stored securely. Access tokens may expire at any time in the future.
Note that in many situations, you may not need to authenticate users at all. For instance, you may request popular photos without authenticating (i.e. you do not need to provide an access_token; just use your client ID with your request). We only require authentication in cases where your application is making requests on behalf of a user (commenting, liking, browsing a user’s feed, etc.).
## Receiving an access_token
In order to receive an access_token, you must do the following:
- Direct the user to our authorization url.
* If the user is not logged in, they will be asked to log in.
* The user will be asked if they’d like to give your application access to his/her Instagram data.
- The server will redirect the user in one of two ways that you choose:
* *Server-side* flow (reccommended):Redirect the user to a URI of your choice. Take the provided
code parameter and exchange it for an access_token by POSTing the code to our access_token url.
* *Implicit flow*: Instead of handling a code, we include the access_token as a fragment (#) in the URL. This method allows applications without any server component to receive an access_token with ease.
## Server-side (Explicit) Flow
Using the server-side flow is quite easy. Simply follow these steps:
### Step One: Direct your user to our authorization URL
```
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
```
*Note:* You may provide an optional *scope* parameter to request additional permissions outside of the “basic” permissions scope. [Learn more about scope](http://instagram.com/developer/authentication/#scope).
*Note*: You may provide an optional *state* parameter to carry through any server-specific state you need to, for example, protect against CSRF issues.
At this point, we present the user with a login screen and then a confirmation screen where they approve your app’s access to his/her Instagram data.
### Step Two: Receive the redirect from Instagram
Once a user successfully authenticates and authorizes your application, we will redirect the user to your redirect_uri with a code parameter that you’ll use in step three.
```
http://your-redirect-uri?code=CODE
```
Note that your redirect URI's host and path MUST match exactly (including trailing slashes) to your registered redirect_uri. You may also include additional query parameters in the supplied redirect_uri, if you need to vary your behavior dynamically. Examples:
|REGISTERED REDIRECT URI |REDIRECT URI SENT TO /AUTHORIZE |VALID?|
|----------------------------------|-----------------------------------------------|------|
|http://yourcallback.com/ |http://yourcallback.com/ |yes |
|http://yourcallback.com/ |http://yourcallback.com/?this=that |yes |
|http://yourcallback.com/?this=that|http://yourcallback.com/ |no |
|http://yourcallback.com/?this=that|http://yourcallback.com/?this=that&another=true|yes |
|http://yourcallback.com/?this=that|http://yourcallback.com/?another=true&this=that|no |
|http://yourcallback.com/callback |http://yourcallback.com/ |no |
|http://yourcallback.com/callback |http://yourcallback.com/callback/?type=mobile |yes |
If your request for approval is denied by the user, then we will redirect the user to your *redirect_uri* with the following parameters:
* *error*: access_denied
* *error_reason*: user_denied
* *error_description*: The user denied your request
```
http://your-redirect-uri?error=access_denied&error_reason=user_denied&error_description=The+user+denied+your+request
```
It is your responsibility to fail gracefully in this situation and display a corresponding error message to your user.
### Step Three: Request the access_token
In the previous step, you’ll have received a code which you’ll have to exchange in order to receive an access_token for the user. In order to make this exchange, you simply have to POST this code, along with some app identification parameters to our access_token endpoint. Here are the required parameters:
* *client_id*: your client id
* *client_secret*: your client secret
* *grant_type*: authorization_code is currently the only supported value
redirect_uri: the redirect_uri you used in the authorization request. Note: this has to be the same value as in the authorization request.
* *code*: the exact code you received during the authorization step.
For example, you could request an access_token like so:
```
curl \-F 'client_id=CLIENT-ID' \
-F 'client_secret=CLIENT-SECRET' \
-F 'grant_type=authorization_code' \
-F 'redirect_uri=YOUR-REDIRECT-URI' \
-F 'code=CODE' \https://api.instagram.com/oauth/access_token
```
If successful, this call will return a neatly packaged OAuth Token that you can use to make authenticated calls to the API. We also include the user who just authenticated for your convenience:
```json
{
"access_token": "fb2e77d.47a0479900504cb3ab4a1f626d174d2d",
"user": {
"id": "1574083",
"username": "snoopdogg",
"full_name": "Snoop Dogg",
"profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1574083_75sq_1295469061.jpg"
}
}
```
Note that we do not include an expiry time. Our access_tokens have no explicit expiry, though your app should handle the case that either the user revokes access or we expire the token after some period of time. In this case, your response’s meta will contain an “error_type=OAuthAccessTokenError”. In other words: do do not assume your access_token is valid forever.
## Client-Side (Implicit) Authentication
If you’re building an app that does not have a server component (a purely javascript app, for instance), you’ll notice that it’s impossible to complete step three above to receive your access_token without also having to ship your client secret. You should never ship your client secret onto devices you don’t control. Then how do you get an access_token? Well the smart folks in charge of the OAuth 2.0 spec anticipated this problem and created the Implicit Authentication Flow.
### Step One: Direct your user to our authorization URL
```
https://instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token
```
At this point, we present the user with a login screen and then a confirmation screen where they approve your app’s access to their Instagram data. Note that unlike the explicit flow the response type here is “token”.
### Step Two: Receive the access_token via the URL fragment
Once the user has authenticated and then authorized your application, we’ll redirect them to your redirect_uri with the access_token in the url fragment. It’ll look like so:
```
http://your-redirect-uri#access_token=ACCESS-TOKEN
```
Simply grab the access_token off the URL fragment and you’re good to go. If the user chooses not to authorize your application, you’ll receive the same error response as in the explicit flow
## Scope (Permissions)
The OAuth 2.0 spec allows you to specify the scope of the access you’re requesting from the user. Currently, all apps have basic read access by default. If all you want to do is access data then you do not need to specify a scope (the “basic” scope will be granted automatically).
However, if you plan on asking for extended access such as liking, commenting, or managing friendships, you’ll have to specify these scopes in your authorization request. Here are the scopes we currently support:
* basic - to read any and all data related to a user (e.g. following/followed-by lists, photos, etc.) (granted by default)
* comments - to create or delete comments on a user’s behalf
* relationships - to follow and unfollow users on a user’s behalf
* likes - to like and unlike items on a user’s behalf
You should only request the scope you need at the time of authorization. If in the future you require additional scope, you may forward the user to the authorization URL with that additional scope to be granted. If you attempt to perform a request with an access token that isn’t authorized for that scope, you will receive an OAuthPermissionsException error return.
If you’d like to request multiple scopes at once, simply separate the scopes by a space. In the url, this equates to an escaped space (“+”). So if you’re requesting the likes and comments permission, the parameter will look like this:
```
scope=likes+comments
```
Note that an empty scope parameter (scope=) is invalid; you must either omit the scope, or specify a non-empty scope list.
# Media
/media:
/{mediaId}:
uriParameters:
mediaId:
type: integer
type: base
get:
# TODO can be different outcomes, so need to define a couple of examples and
# a couple of schemas instead of given one for 'image'.
description: |
Get information about a media object. The returned type key will allow you
to differentiate between image and video media.
Note: if you authenticate with an OAuth Token, you will receive the
user_has_liked key which quickly tells you whether the current user has liked
this media item.
responses:
200:
body:
schema: |
{ "": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"data": {
"type": "array",
"users_in_photo": [
{
"properties": {
"user": {
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"profile_picture": {
"type": "string"
}
},
"type": "object"
},
"position": {
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}
],
"filter": {
"type": "string"
},
"tags": [
{
"type": "string"
}
],
"comments": {
"properties": {
"data": [
{
"properties": {
"created_time": {
"type": "string"
},
"text": {
"type": "string"
},
"from": {
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"profile_picture": {
"type": "string"
}
},
"type": "object"
},
"id": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array",
"count": {
"type": "integer"
}
},
"type": "object"
},
"caption": {
"type": "string"
},
"likes": {
"properties": {
"count": {
"type": "integer"
},
"data": [
{
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"profile_picture": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
},
"type": "object"
},
"link": {
"type": "string"
},
"user": {
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"profile_picture": {
"type": "string"
},
"bio": {
"type": "string"
},
"website": {
"type": "string"
},
"id": {
"type": "string"
}
},
"type": "object"
},
"created_time": {
"type": "string"
},
"images": {
"properties": {
"low_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"thumbnail": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"standard_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"id": {
"type": "string"
},
"location": {
"type": "string"
}
}
}
}
example: |
{
"data": {
"type": "image",
"users_in_photo": [{
"user": {
"username": "kevin",
"full_name": "Kevin S",
"id": "3",
"profile_picture": "..."
},
"position": {
"x": 0.315,
"y": 0.9111
}
}],
"filter": "Walden",
"tags": [],
"comments": {
"data": [{
"created_time": "1279332030",
"text": "Love the sign here",
"from": {
"username": "mikeyk",
"full_name": "Mikey Krieger",
"id": "4",
"profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1242695_75sq_1293915800.jpg"
},
"id": "8"
}],
"count": 2
},
"caption": null,
"likes": {
"count": 1,
"data": [{
"username": "mikeyk",
"full_name": "Mikeyk",
"id": "4",
"profile_picture": "..."
}]
},
"link": "http://instagr.am/p/D/",
"user": {
"username": "kevin",
"full_name": "Kevin S",
"profile_picture": "...",
"bio": "...",
"website": "...",
"id": "3"
},
"created_time": "1279340983",
"images": {
"low_resolution": {
"url": "http://distillery.s3.amazonaws.com/media/2010/07/16/4de37e03aa4b4372843a7eb33fa41cad_6.jpg",
"width": 306,
"height": 306
},
"thumbnail": {
"url": "http://distillery.s3.amazonaws.com/media/2010/07/16/4de37e03aa4b4372843a7eb33fa41cad_5.jpg",
"width": 150,
"height": 150
},
"standard_resolution": {
"url": "http://distillery.s3.amazonaws.com/media/2010/07/16/4de37e03aa4b4372843a7eb33fa41cad_7.jpg",
"width": 612,
"height": 612
}
},
"id": "3",
"location": null
}
}
/comments:
securedBy: [ oauth_2_0: { scopes: [ comments ] } ]
type: base
get:
description: Get a full list of comments on a media.
responses:
200:
body:
schema: |
{
"": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"meta": {
"properties": {
"code": {
"type": "integer"
}
},
"type": "object"
},
"data": [
{
"properties": {
"created_time": {
"type": "string"
},
"text": {
"type": "string"
},
"from": {
"properties": {
"username": {
"type": "string"
},
"profile_picture": {
"type": "string"
},
"id": {
"type": "string"
},
"full_name": {
"type": "string"
}
},
"type": "object"
},
"id": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
}
}
example: |
{
"meta": {
"code": 200
},
"data": [
{
"created_time": "1280780324",
"text": "Really amazing photo!",
"from": {
"username": "snoopdogg",
"profile_picture": "http://images.instagram.com/profiles/profile_16_75sq_1305612434.jpg",
"id": "1574083",
"full_name": "Snoop Dogg"
},
"id": "420"
},
...
]
}
post:
description: Create a comment on a media. Please email apidevelopers[at]instagram.com for access.
body:
application/x-www-form-urlencoded:
formParameters:
text:
description: Text to post as a comment on the media as specified in {mediaId}.
type: string
required: true
responses:
200:
body:
schema: |
{
"": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"meta": {
"properties": {
"code": {
"type": "integer"
}
},
"type": "object"
},
"data": [
{
"properties": {
"created_time": {
"type": "string"
},
"text": {
"type": "string"
},
"from": {
"properties": {
"username": {
"type": "string"
},
"profile_picture": {
"type": "string"
},
"id": {
"type": "string"
},
"full_name": {
"type": "string"
}
},
"type": "object"
},
"id": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
}
}
example: |
{
"meta": {
"code": 200
},
"data": [
{
"created_time": "1280780324",
"text": "Really amazing photo!",
"from": {
"username": "snoopdogg",
"profile_picture": "http://images.instagram.com/profiles/profile_16_75sq_1305612434.jpg",
"id": "1574083",
"full_name": "Snoop Dogg"
},
"id": "420"
},
...
]
}
/{commentId}:
type: base
uriParameters:
commentId:
type: integer
description: Idenifier of the comment
delete:
description: |
Remove a comment either on the authenticated user's media or authored by the authenticated user.
responses:
200:
description: Comment removed.
/likes:
securedBy: [ oauth_2_0: { scopes: [ likes ] } ]
type: base
get:
description: |
Get a list of users who have liked this media.
Required scope: likes.
responses:
200:
body:
schema: |
{
"": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"data": [
{
"properties": {
"username": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"type": {
"type": "string"
},
"id": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
}
}
example: |
{
"data": [{
"username": "jack",
"first_name": "Jack",
"last_name": "Dorsey",
"type": "user",
"id": "66"
},
{
"username": "sammyjack",
"first_name": "Sammy",
"last_name": "Jack",
"type": "user",
"id": "29648"
}]
}
post:
description: Set a like on this media by the currently authenticated user.
responses:
201:
description: |
Successfully liked a media object
delete:
description: Remove a like on this media by the currently authenticated user.
responses:
204:
description: |
Like removed succesfully
/search:
type: base
get:
is: [ limitableByTime ]
description: |
Search for media in a given area. The default time span is set to 5 days.
The time span must not exceed 7 days. Defaults time stamps cover the
last 5 days.
# TODO oneOf
queryParameters:
lat:
description: Latitude of the center search coordinate. If used, lng is required.
type: number
lng:
description: Longitude of the center search coordinate. If used, lat is required.
type: number
distance:
description: Default is 1km (distance=1000), max distance is 5km.
responses:
200:
body:
schema: |
{
"": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"data": [
{
"oneOf": [
{
"properties": {
"distance": {
"type": "number"
},
"type": "array",
"users_in_photo": [
{
"type": "string"
}
],
"filter": {
"type": "string"
},
"tags": [
{
"type": "string"
}
],
"comments": {
"properties": {
"data": [
{
"properties": {
"created_time": {
"type": "string"
},
"text": {
"type": "string"
},
"from": {
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"profile_picture": {
"type": "string"
}
},
"type": "object"
},
"id": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array",
"count": {
"type": "integer"
}
},
"type": "object"
},
"caption": {
"type": "string"
},
"likes": {
"properties": {
"count": {
"type": "integer"
},
"data": [
{
"properties": {
"username": {
"type": "string"
},
"full_name": {
"type": "string"
},
"id": {
"type": "string"
},
"profile_picture": {
"type": "string"
}
},
"type": "object"
}
],
"type": "array"
},
"type": "object"
},
"link": {
"type": "string"
},
"user": {
"properties": {
"username": {
"type": "string"
},
"profile_picture": {
"type": "string"
},
"id": {
"type": "string"
}
},
"type": "object"
},
"created_time": {
"type": "string"
},
"images": {
"properties": {
"low_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"thumbnail": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"standard_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"id": {
"type": "string"
},
"location": {
"type": "string"
}
},
"type": "object"
},
{
"properties": {
"distance": {
"type": "number"
},
"type": "object",
"videos": {
"low_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"standard_resolution": {
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"type": "object"
},
"users_in_photo": {
"type": "string"
},