GET/instagram/post

Get Instagram Post Data

Fetch detailed metadata for a single Instagram post or reel by URL. Returns like count, comment count, caption, video views, and author info.

Quick Start

cURL
curl "https://api.creatorcrawl.com/v1/instagram/post?url=https://www.instagram.com/p/ABC123xyz/" \
  -H "x-api-key: YOUR_API_KEY"

Parameters

NameTypeRequiredDescription
urlstringRequiredFull Instagram post or reel URL

Response

JSON Response
{
  "data": {
    "xdt_shortcode_media": {
      "id": "3456789012345",
      "shortcode": "ABC123xyz",
      "owner": {
        "username": "creator_account"
      },
      "edge_media_to_caption": {
        "edges": [
          {
            "node": {
              "text": "Check this out!"
            }
          }
        ]
      },
      "edge_media_preview_like": {
        "count": 12400
      },
      "edge_media_to_comment": {
        "count": 342
      },
      "video_view_count": 890000
    }
  }
}

Every request costs 1 credit. Response data is live -- never cached.

Use Cases

Post analytics

Pull real-time stats for any Instagram post to track performance over time.

Content curation

Fetch post metadata to power recommendation engines or content feeds.

Viral detection

Monitor Instagram posts for engagement spikes to catch trending content early.

Code Examples

Python
import requests

resp = requests.get(
    "https://api.creatorcrawl.com/v1/instagram/post",
    params={"url": "https://www.instagram.com/p/ABC123xyz/"},
    headers={"x-api-key": "YOUR_API_KEY"},
)
media = resp.json()["data"]["xdt_shortcode_media"]
print(f"{media['edge_media_preview_like']['count']} likes, {media['edge_media_to_comment']['count']} comments")
JavaScript
const resp = await fetch(
  "https://api.creatorcrawl.com/v1/instagram/post?url=https://www.instagram.com/p/ABC123xyz/",
  { headers: { "x-api-key": "YOUR_API_KEY" } }
)
const media = (await resp.json()).data.xdt_shortcode_media
console.log(`${media.edge_media_preview_like.count} likes, ${media.edge_media_to_comment.count} comments`)

Related Endpoints

Explore More

Takes 60 seconds

Your agents are one config file away from six platforms.

250 free API calls. No card. Add the MCP server to Claude, Cursor, Windsurf, or Zed, or hit the REST API from any language.