{
  "name": "Instagram API publishing errors: what to do with each one",
  "version": "2026-11-26",
  "license": "CC BY 4.0 - APIWings (https://apiwings.com/blog/instagram-api-post)",
  "source": "https://developers.facebook.com/documentation/instagram-platform/instagram-graph-api/reference/error-codes",
  "note": "Messages are shortened from Meta's error-code table. 'action' is our own advice: fix_media, new_container, wait_and_retry, try_tomorrow, reconnect or stop_and_alert.",
  "errors": [
    { "subcode": 2207003, "code": -2, "meaning": "Instagram took too long to download the media", "action": "wait_and_retry" },
    { "subcode": 2207020, "code": -2, "meaning": "The media has expired; upload it again", "action": "new_container" },
    { "subcode": 2207001, "code": -1, "meaning": "Instagram server error", "action": "wait_and_retry" },
    { "subcode": 2207032, "code": -1, "meaning": "Creating the media failed", "action": "new_container" },
    { "subcode": 2207053, "code": -1, "meaning": "Unknown upload error, mostly on video", "action": "new_container" },
    { "subcode": 2207027, "code": 9007, "meaning": "The media is not ready for publishing yet", "action": "wait_and_retry", "hint": "Check status_code and publish only when it is FINISHED." },
    { "subcode": 2207008, "code": 24, "meaning": "The container does not exist or has expired", "action": "new_container", "hint": "Meta suggests 1-2 retries after 30 seconds to 2 minutes first." },
    { "subcode": 2207006, "code": 24, "meaning": "The media cannot be found (permission missing or token expired)", "action": "reconnect" },
    { "subcode": 2207052, "code": 9004, "meaning": "The media could not be fetched from the URL", "action": "fix_media", "hint": "The URL must be public and reachable by Meta when you create the container." },
    { "subcode": 2207004, "code": 36000, "meaning": "The image is too large to download (8 MB maximum)", "action": "fix_media" },
    { "subcode": 2207005, "code": 36001, "meaning": "The image format is not supported (JPEG only)", "action": "fix_media" },
    { "subcode": 2207009, "code": 36003, "meaning": "The image aspect ratio is outside 4:5 to 1.91:1", "action": "fix_media" },
    { "subcode": 2207010, "code": 36004, "meaning": "The caption is too long (2,200 characters, 30 hashtags, 20 @tags)", "action": "fix_media" },
    { "subcode": 2207026, "code": 352, "meaning": "The video format is not supported (MOV or MP4)", "action": "fix_media" },
    { "subcode": 2207057, "code": 1, "meaning": "The thumbnail offset is outside the video duration", "action": "fix_media" },
    { "subcode": 2207023, "code": 100, "meaning": "Unknown media type", "action": "fix_media" },
    { "subcode": 2207028, "code": 100, "meaning": "The carousel has too few or too many items (message says 2 to 10)", "action": "fix_media" },
    { "subcode": 2207042, "code": 9, "meaning": "The account reached its daily publishing limit", "action": "try_tomorrow", "hint": "Read content_publishing_limit to see when the moving 24-hour window frees a slot." },
    { "subcode": 2207051, "code": 4, "meaning": "Activity restricted as possible spam", "action": "stop_and_alert", "hint": "Do not retry in a loop; slow down and let a person review the account." },
    { "subcode": 2207050, "code": 25, "meaning": "The Instagram account is restricted, inactive or checkpointed", "action": "stop_and_alert", "hint": "The account owner must sign in to Instagram and resolve it." }
  ],
  "rate_limit_codes": {
    "80002": "Instagram Business Use Case rate limit (calls per 24 hours = 4,800 x impressions). Wait; the X-Business-Use-Case-Usage header gives estimated_time_to_regain_access in minutes.",
    "4": "Application request limit (general Graph API table).",
    "17": "User request limit (general Graph API table).",
    "32": "Page request limit (general Graph API table).",
    "613": "Custom rate limit (general Graph API table)."
  }
}
