Instagram Getting recent media from a tag

Getting recent media from a tag

Given that you already have an instance of InstagramService, you can get a list of the most recent media from a given tag like:

// Make the call to the API
InstagramRecentMediaResponse response = service.Tags.GetRecentMedia("skybruddk");

// Iterate through the media
foreach (InstagramMedia media in response.Body.Data) {

    // Write the image URL to the console
    Console.WriteLine(media.Standard);

}

The example above will give you the 20 most recent media of that tag.