GETInsights3 credits

Analyze image (vision)

GET https://api.instagramapi.dev/v1/insights/post/image

Runs an account-safe vision model over a post's image(s) and returns structured tags: subjects, scene, objects, dominant colors, any text in the image, mood, an aesthetic score, brand-safety flags, and suggested alt text. Carousels analyze up to the first few images. Cost: 3 credits.

Build this with an AI agent

Paste this prompt into Claude, Codex, or any coding agent.

Parameters

NameTypeRequiredDescription
poststringyesAn Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically.

Example request

curl "https://api.instagramapi.dev/v1/insights/post/image?post=https%3A%2F%2Fwww.instagram.com%2Fp%2FC1a2b3c4d5e%2F" \
  -H "Authorization: Bearer $INSTAGRAMAPI_KEY"

Try it

Live request · uses 3 credits

Example responses

Switch tabs to see the body shape for success and each error status.

{
  "data": {
    "post": "https://www.instagram.com/p/DZK3iOsRlWX/",
    "caption": "Just Do It.",
    "analysis": {
      "subjects": [
        "athlete",
        "running shoe"
      ],
      "scene": "outdoor track at sunrise",
      "objects": [
        "sneakers",
        "track",
        "starting blocks"
      ],
      "dominant_colors": [
        "orange",
        "black",
        "grey"
      ],
      "text_in_image": "JUST DO IT",
      "mood": "energetic",
      "aesthetic_score": 8.5,
      "brand_safe": true,
      "brand_safety_notes": "No unsafe content.",
      "suggested_alt_text": "A sprinter on a track at sunrise wearing orange Nike shoes."
    }
  },
  "meta": {
    "endpoint": "insights/post/image",
    "request_id": "req_3f8a1c9e",
    "credits_charged": 3,
    "credits_remaining": 4987,
    "ms": 412
  }
}

Response fields

Fields returned under data on a 200 response. Every response also includes a meta object with billing info.

FieldTypeDescription
poststringThe post URL that was analyzed.
captionstringThe post's caption.
analysisobjectThe vision model's structured findings.
analysis.subjectsarray<string>Main subjects detected in the image.
analysis.scenestringDescription of the overall scene.
analysis.objectsarray<string>Notable objects detected in the image.
analysis.dominant_colorsarray<string>The image's dominant colors.
analysis.text_in_imagestringAny text read from the image.
analysis.moodstringOverall mood/feel of the image.
analysis.aesthetic_scorenumberAesthetic quality score (0–10).
analysis.brand_safebooleanWhether the image is safe for brand use.
analysis.brand_safety_notesstringNotes explaining the brand-safety judgment.
analysis.suggested_alt_textstringSuggested alt text describing the image.