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 Insights API

Account and media level analytics

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

Tagged areas include Insights. 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 2 operations across 2 paths, and defines 1 schema. 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.

2 operations 2 paths 1 schemas 2 GET

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 Insights 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 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Insights 2

Account and media level analytics

GET
/{user_id}/insights
Instagram Get User Insights
getUserInsights 6 params → 200
GET
/{media_id}/insights
Instagram Get Media Insights
getMediaInsights 3 params → 200

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is InsightsResponse (1 property). Each schema is shown below with its type and property counts.

InsightsResponse
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

instagram-insights-api-openapi.yml Raw ↑

Other APIs Instagram publishes across the network.

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