This guide will help you update your existing code to the new v2 JSON feeds format.
Breaking changes
1. New JSON structure for basic feeds
Basic source feeds now return an object instead of an array. The array of posts that was previously directly returned has been moved to the posts property.
2. Media → Posts
In v1 advanced source feeds (which already returned an object) the array of posts was under the media property. In v2 this has been renamed to posts.
3. dimensions removed
The dimensions property has been removed from post objects. Image dimensions can now be accessed in the new sizes property, described below.
New properties
Metadata
Both basic and advanced feeds now have access to a number of metadata fields. Specifically: username, biography, profilePictureUrl, website, followersCount, and followsCount
Sizes
Post objects now have a sizes property. While the mediaUrl and thumbnailUrl properties contain the raw original images direct from Instagram, the images in sizes have been optimized, resized and converted to webp format.
For video posts, the images in sizes contain a thumbnail image. The video itself can still be accessed at mediaUrl.
The images in sizes are resized to fit the following maximum dimensions (both height and width) while maintaining the original aspect ratio: