简体   繁体   中英

Instagram API attributes

Im new to using the Instagram API, I was just wondering does any know any of the attributed tags that would be used to display comments, or to display location of an image. Below you can see that I'm able to retrieve the link, a low resolution image, profile_picture and the like count. Can anyone provide any others that I could use to get as much information as possible about an image.

$(".pics").append("<div class='paul'><a target='_blank' href='" + data.data[i].link +
        "'><img src='" + data.data[i].images.low_resolution.url +"'></img></a>" + "<img class='sam' src='" + data.data[i].user.profile_picture + "'></img><div class='like'>"+ data.data[i].likes.count + " likes</div></div>");

Go here and check the response of a media API call and check the data: http://instagram.com/developer/endpoints/media/

Here are some other data you can get for a photo:

Location:

data.data[i].location.latitude
data.data[i].location.longitude

Comments:

data.data[i].comments.data[j].text

Caption on Photo:

data.data[i].caption

Users in photo

data.data[i]. users_in_photo

...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM