LurkAPI
Docs · Post

Post

A public photo, carousel, video or reel with its caption and counts.

1 credit per callFresh within 5 minutesMCP tool: instagram_post
GEThttps://api.lurkapi.com/v1/instagram/post

Example responseView as markdown

When to use this

Pass a post URL or shortcode. Return media URLs, caption, author and the counts visible to logged-out visitors. Missing and private posts are unavailable. CDN media URLs can expire.

Parameters

All parameters go in the query string.

ParameterDescription
code
stringoptional
The post's shortcode, e.g. Ddl5eH-u4le. Required unless url is given.
url
stringoptional
An instagram.com/p/, /reel/ or /tv/ URL, or the shortcode. Required unless code is given.
Example
https://www.instagram.com/reel/Ddl5eH-u4le/

Example request

Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.

Language

Example response

A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….

Show the example response (2 KB)
{
  "success": true,
  "credits_remaining": 99,
  "credits_charged": 1,
  "data": {
    "pk": "3991849403537918302",
    "media_type": 2,
    "display_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/809201733_186664…",
    "images": [
      {
        "url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/809201733_186664…",
        "width": 1080,
        "height": 1920
      }
    ],
    "videos": [
      {
        "url": "https://scontent-iad6-1.cdninstagram.com/o1/v/t2/f2/m86/AQNTYMwiQ36mUhGO…",
        "width": null,
        "height": null
      }
    ],
    "code": "Ddl5eH-u4le",
    "url": "https://www.instagram.com/p/Ddl5eH-u4le/",
    "product_type": "clips",
    "caption": "*Just a normal day for @caitlinclark22.\n\nWake up. Eat cereal. Lace up th…",
    "taken_at": 1790085604,
    "like_count": 67594,
    "comment_count": 1062,
    "play_count": null,
    "view_count": null,
    "accessibility_caption": "Video by Nike on September 22, 2026. May be an image of text.",
    "user": {
      "pk": "13460080",
      "username": "nike",
      "full_name": "Nike",
      "profile_pic_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-19/551608484_185671…",
      "is_verified": true
    },
    "coauthor_producers": [
      {
        "pk": "306787899",
        "username": "nikebasketball",
        "full_name": "Nike Basketball",
        "profile_pic_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.2885-19/476165648_5629502…",
        "is_verified": true
      }
    ],
    "is_paid_partnership": null,
    "location": null,
    "carousel_media": []
  }
}

Response fields

Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.

Show all 53 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
dataobjectThe requested post.
data.pkstringNumeric media id, represented as a string.
data.media_typenumberInstagram media type: 1 photo, 2 video, 8 carousel.
data.display_urlstringnullablePreview image URL; CDN links can expire; null when not returned.
data.imagesobject[]Available image sizes; empty when none are returned.
data.images[].urlstringDirect image URL; CDN links can expire.
data.images[].widthnumbernullableImage width in pixels; null when not shown or returned. A null count is not zero.
data.images[].heightnumbernullableImage height in pixels; null when not shown or returned. A null count is not zero.
data.videosobject[]Available MP4 versions; empty for photos or when video URLs are unavailable.
data.videos[].urlstringDirect MP4 URL; CDN links can expire.
data.videos[].widthnumbernullableVideo width in pixels; null when not shown or returned. A null count is not zero.
data.videos[].heightnumbernullableVideo height in pixels; null when not shown or returned. A null count is not zero.
data.codestringThe post's case-sensitive shortcode.
data.urlstringCanonical Instagram post URL.
data.product_typestringnullableInstagram product type, e.g. clips for a reel or feed for a feed post; null when not returned.
data.captionstringnullablePost caption as plain text, preserving line breaks; an empty string is an explicitly empty caption; null when not returned.
data.taken_atnumbernullablePublished at, Unix seconds; null when not shown or returned. A null count is not zero.
data.like_countnumbernullableLike count; null when not shown or returned. A null count is not zero.
data.comment_countnumbernullableComment count; null when not shown or returned. A null count is not zero.
data.play_countnumbernullablePlay count; usually omitted on logged-out post and timeline queries; null when not shown or returned. A null count is not zero.
data.view_countnumbernullableView count; usually omitted on logged-out post and timeline queries; null when not shown or returned. A null count is not zero.
data.accessibility_captionstringnullableInstagram's accessibility description; null when not returned.
data.userobjectPost author.
data.user.pkstringThe account's numeric Instagram id, represented as a string.
data.user.usernamestringInstagram username, without @.
data.user.full_namestringnullableDisplay name; null when not returned.
data.user.profile_pic_urlstringnullableProfile image URL; CDN links can expire; null when not returned.
data.user.is_verifiedbooleannullableWhether Instagram shows a verified badge; null when not returned.
data.coauthor_producersobject[]Coauthors returned by Instagram; empty when none are returned.
data.coauthor_producers[].pkstringThe account's numeric Instagram id, represented as a string.
data.coauthor_producers[].usernamestringInstagram username, without @.
data.coauthor_producers[].full_namestringnullableDisplay name; null when not returned.
data.coauthor_producers[].profile_pic_urlstringnullableProfile image URL; CDN links can expire; null when not returned.
data.coauthor_producers[].is_verifiedbooleannullableWhether Instagram shows a verified badge; null when not returned.
data.is_paid_partnershipbooleannullableWhether Instagram marks the post as a paid partnership; null when not returned.
data.locationobjectnullableTagged location; null when none is returned.
data.location.pkstringnullableNumeric location id; null when not returned.
data.location.namestringnullableLocation name; null when not returned.
data.carousel_mediaobject[]Carousel items in order; empty for single-media posts.
data.carousel_media[].pkstringNumeric media id, represented as a string.
data.carousel_media[].media_typenumberInstagram media type: 1 photo, 2 video, 8 carousel.
data.carousel_media[].display_urlstringnullablePreview image URL; CDN links can expire; null when not returned.
data.carousel_media[].imagesobject[]Available image sizes; empty when none are returned.
data.carousel_media[].images[].urlstringDirect image URL; CDN links can expire.
data.carousel_media[].images[].widthnumbernullableImage width in pixels; null when not shown or returned. A null count is not zero.
data.carousel_media[].images[].heightnumbernullableImage height in pixels; null when not shown or returned. A null count is not zero.
data.carousel_media[].videosobject[]Available MP4 versions; empty for photos or when video URLs are unavailable.
data.carousel_media[].videos[].urlstringDirect MP4 URL; CDN links can expire.
data.carousel_media[].videos[].widthnumbernullableVideo width in pixels; null when not shown or returned. A null count is not zero.
data.carousel_media[].videos[].heightnumbernullableVideo height in pixels; null when not shown or returned. A null count is not zero.

Caching and freshness

Responses are cached for up to 5 minutes, so a repeat call within that window can return the same data. It still costs 1 credit.

Errors

Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.

StatusCodeMeaning
401missing_api_keyNo API key. Send it in the x-api-key header.
401invalid_api_keyThe key is unknown or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack or wait for tomorrow's top-up.
403not_publicThe platform confirmed this account or content isn't available to logged-out visitors. Use a publicly visible target.
404not_foundThe endpoint, or the thing you asked for (ad, post, subreddit), doesn't exist. Charged when the platform was checked.
405method_not_allowedEndpoints take GET with query params.
429rate_limitedToo many calls at once. Wait for the retry-after seconds, then retry.
500internal_errorSomething broke on our side. Retry; 5xx errors are free.
502upstream_errorThe platform didn't give a usable answer. Retry; 5xx errors are free.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds; 5xx errors are free.
504upstream_timeoutThe platform took over 30 seconds to answer. Retry; timeouts are free.

Use it in Claude

Once LurkAPI is connected to Claude, this endpoint is the instagram_post tool. Ask in plain English, for example:

Ask Claude
Use LurkAPI's instagram_post with url "https://www.instagram.com/reel/Ddl5eH-u4le/" and summarize what you find.

Claude calls instagram_post with arguments like these, and each call costs 1 credit:

Tool arguments
{
  "url": "https://www.instagram.com/reel/Ddl5eH-u4le/"
}

Tool results skip nulls and empty lists to save tokens.