Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Instagram Media API

Photos, videos, stories, reels, and carousels

Instagram Media API is one of 9 APIs that Instagram publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Media. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, an API reference, authentication docs, and a changelog.

This API exposes 6 operations across 4 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 21.0.

Requests are made against 2 base URLs: https://graph.facebook.com/v21.0, https://graph.instagram.com/v21.0.

6 operations 4 paths 4 schemas 1 DELETE4 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
21.0
Base URL
https://graph.instagram.com
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Instagram Media API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 7 scopes.

  • oauth2 — OAuth 2.0 authentication via Instagram Login or Facebook Login.

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 1 DELETE, 4 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Media 6

Photos, videos, stories, reels, and carousels

GET
/{user_id}/media
Instagram Get User Media
getUserMedia 5 params → 200
GET
/{user_id}/stories
Instagram Get User Stories
getUserStories 3 params → 200
GET
/{media_id}
Instagram Get Media
getMedia 3 params → 200
POST
/{media_id}
Instagram Update Media
updateMedia 1 param body → 200
DELETE
/{media_id}
Instagram Delete Media
deleteMedia 2 params → 200
GET
/{media_id}/children
Instagram Get Carousel Children
getMediaChildren 3 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Media (14 properties), Paging (3 properties), MediaList (2 properties), SuccessResponse (1 property). Each schema is shown below with its type and property counts.

Media
object
14 properties
Paging
object
3 properties
SuccessResponse
object
1 property
MediaList
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

instagram-media-api-openapi.yml Raw ↑

Other APIs Instagram publishes across the network.

Instagram Messaging API
Instagram oEmbed API
Instagram Comments API
Instagram Hashtags API
Instagram Insights API
Instagram Mentions API
Instagram Publishing API
Instagram Users API