Instagram Posts API
Get a public account's recent posts, newest first: link, date, type (photo, video or carousel), caption, and like, comment and view counts.
Cost: 1 credit per page (free from cache). About 12 posts a page. Naming the account by a username we have to look up adds 1 credit; send the numeric id to skip it (details).
Try itsandbox data · no key needed
Every example on this page follows what you type here.
GET /v1/users/natgeo/posts
Sample data in the live schema. Use private_x, ghost_x or hidden_x to see errors.
Parameters
userpathrequiredNumeric user id (cheapest) or username. A username we have to look up costs 1 extra credit (why). All digits = an id; write
@12345 for an all-digit username.byqueryoptionalOptional.
username or id: says which one user is, instead of guessing from the digits.cursorqueryoptionalpagination.next_cursor from the previous page.freshqueryoptionaltrue skips the cache.Response
counts.views is set for videos and null otherwise. A count Instagram hides comes back as null.
FAQ
How do I get an Instagram account's latest posts with an API?
Call GET /v1/users/{username}/posts. Posts come newest first with URL, date, caption and engagement counts.