"Instagram" (Service Connection)
Connecting & Authenticating
Requests
User Data
"UserData" — data about the authenticated user's account
Followers
"Followers" — usernames of the user's followers
"FollowerIDs" — user IDs of the user's followers
"Followings" — usernames of people the user is following
"FollowingIDs" — user IDs of people the user is following
"FollowingCount" ▪ "FollowerCount"
User Media
"LatestMedia" — import the user's most recent published media
"LatestPhotos" — import a list of the user's most recent published photos
"LatestVideos" — link to the user's most recent videos
"Liked" — photos the user has liked
"CaptionedLatestPhotos" — import a list of the user's most recent published photos with captions
| "Elements" | "Data" | data elements to return | |
| MaxItems | 20 | number of results to return | |
| "MediaResolution" | "Standard" | media resolution |
"LatestMediaIDs" — import the user's most recent published media IDs
"LikedIDs" — IDs of photos the user has liked
| MaxItems | 20 | number of results to return | |
| "MediaResolution" | "Standard" | media resolution |
Media Data
"Caption" — caption of the post
"CommentCount" — number of comments
"CreationDate" ▪ "Link" ▪ "Location"
| "MediaID" | (required) | media ID |
Tags
"TaggedMedia" — import media with the specified tag
| "Tag" | (required) | hashtag | |
| "Elements" | "Data" | data elements to return | |
| MaxItems | 20 | number of results to return | |
| "MediaResolution" | "Standard" | media resolution |
"TaggedMediaURLs" — link to media with the specified tag
| "Tag" | (required) | hashtag | |
| MaxItems | 20 | number of results to return | |
| "MediaResolution" | "Standard" | media resolution |
"TaggedMediaIDs" — media IDs associated with a tag
| "Tag" | (required) | hashtag | |
| MaxItems | 20 | number of results to return |
Search
"UserSearch" — search for users
"TagSearch" — search for hashtags
| "Query" | (required) | query string |
"MediaSearch" — search media by location
| "Location" | (required) | location of media (GeoPosition, GeoDisk, or Entity) | |
| "Elements" | Data | data elements to return | |
| "Distance" | 1000 | search distance in meters | |
| MaxItems | 20 | number of results to return | |
| "MediaResolution" | "Standard" | media resolution |
Parameter Details
| "Images" | return a list of images | |
| "Data" | return a dataset with a limited set of fields | |
| "FullData" | return a dataset with all available fields | |
| "LinkedThumbnails" | return a list of hyperlinked thumbnails | |
| "LinkedVideos" | return a list of hyperlinked videos |
| "Low" | return low-resolution media | |
| "Standard" | return standard-resolution media |
Examples
Basic Examples (1)
Create a new connection by launching an authentication dialog:
instagram = ServiceConnect["Instagram"]instagram["UserSearch", {"Query" -> "Barack Obama"}]instagram["LatestMedia", MaxItems -> 5, "Elements" -> "LinkedThumbnails"]instagram["FollowerIDs"]instagram["TaggedMedia", "Tag" -> "newhorizonsspacecraft", MaxItems -> 5, "Elements" -> "Images", "MediaResolution" -> "Low"]Search for recent media taken near a given location:
instagram["MediaSearch", "Location" -> ["mount fuji"], MaxItems -> 3, "Distance" -> "2km", "Elements" -> "Images"]