Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Instagram Post Details by URL (V2)

API दस्तावेज़
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2

Returns post details and media links for a specific Instagram post URL. Designed for faster responses when handling high-volume post lookups.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Post URL
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Instagram Post Details by URL (V2) API

Returns details for one Instagram post: the caption, like and comment counts, the author, the post time, and direct links to the media files. It needs the full post URL in post_url.

Use cases

  • Download the image or video files from a post by reading the links in data.medias[].
  • Record the like count and comment count of a single post at the time you call.
  • Show the caption and author name of a post in a link preview or a report.
  • Check which posts in a list of URLs hold images and which hold other media types.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
post_urlstringYesPost URL

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "attempts": "0",
  "data": {
    "caption": "I’ll never forget how excited I was in 2006 when my first album sold 40,000 copi…",
    "comment_count": 0,
    "full_name": "Taylor Swift",
    "like_count": 3861627,
    "medias": [
      {
        "link": "https://instagram.fvcp2-1.fna.fbcdn.net/v/t51.82787-15/562815025_186013987930549…",
        "type": "image"
      }
    ],
    "taken_at_timestamp": 1760377223,
    "username": "taylorswift"
  },
  "status": true
}

Response fields

FieldMeaning
data.captionCaption text of the post. Long captions may appear shortened.
data.username / data.full_nameAccount handle and display name of the post author.
data.like_count / data.comment_countNumber of likes and number of comments on the post.
data.taken_at_timestampTime the post was taken, as a Unix timestamp in seconds.
data.medias[].linkDirect URL of a media file in the post.
data.medias[].typeKind of media for that item, for example image.
statustrue when the lookup succeeded.
attemptsAttempt counter returned as a string, 0 in this response.

Notes

  • Use the full post link, such as https://www.instagram.com/p/DPwhVB-jo9k/, as post_url.
  • data.medias is a list, so a post with several items can return several links.
  • Media links are signed CDN URLs with long query strings. Store the file if you need it later.
  • For other lookups by URL, see Instagram Post Details by URL or Instagram Post Details by ID.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Instagram$0.001 प्रति कॉलJSON
Instagram$0.001 प्रति कॉलJSON
Instagram$0.001 प्रति कॉलJSON
Instagram$0.001 प्रति कॉलJSON
Instagram$0.001 प्रति कॉलJSON
Instagram$0.001 प्रति कॉलJSON

गाइड्स:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

प्रश्न

FAQ

Instagram Post Details by URL (V2) API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Instagram Post Details by URL (V2) API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Instagram Post Details by URL (V2) API कौन-से parameters स्वीकार करती है?

आवश्यक: post_url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Instagram Post Details by URL (V2) API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Instagram developer account या API key चाहिए?

नहीं। Instagram Post Details by URL (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Instagram API access के लिए आवेदन करने की आवश्यकता नहीं है।