Platform APIs

Instagram API

Public profiles, post grids, reels, captions and engagement counts without a logged-in session.

GET /instagram/profile?url=...3 credits per profile
auth: x-api-keycontent-type: application/jsonenvelope: data + meta

Parameters

NameTypeRequiredDescription
urlstringyesPublic Instagram profile URL or handle.
posts_limitnumbernoRecent posts to include, 1 to 36. Defaults to 0.
include_reelsbooleannoInclude the public reels tab. Adds 1 credit.
request.sh
curl -s "https://api.cleanfetch.dev/v1/instagram/profile?url=https://www.instagram.com/nasa" \
  -H "x-api-key: cf_live_your_key_here"
response.json
200 OK / application/json
{
  "data": {
    "platform": "instagram",
    "profile": {
      "username": "nasa",
      "fullName": "NASA",
      "biography": "Exploring the universe and our home planet.",
      "followers": 98000000,
      "following": 78,
      "posts": 4200,
      "verified": true,
      "profilePicUrl": "https://..."
    }
  },
  "meta": {
    "requestId": "req_cf_01j9k944q4t",
    "lookupStatus": "found",
    "creditsCharged": 3,
    "latencyMs": 1120,
    "cached": false
  }
}

Endpoints

Use /v1/instagram/profile, /v1/instagram/posts, /v1/instagram/reels and /v1/instagram/post for a single media record. The directory lists all 52 Instagram endpoints.

Credits

A profile costs 3 credits. Private profiles return not_found rather than an empty success. The free tier allows 3 Instagram lookups a day, and a cache hit costs zero.

Media URLs

Image and video URLs are public CDN links and can expire. Mirror media you need to keep. The API returns dimensions, caption, timestamp, like and comment counts where the public page exposes them.

ready