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

Instagram Shortcode Extractor

API दस्तावेज़
https://api.sandbase.ai/v1/api/instagram/v3/extract-shortcode

Extracts and returns the unique shortcode identifier from an Instagram post, reel, or TV URL. Requires the full target post URL as input.

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

प्लेग्राउंड

इनपुट
Full Instagram post URL
आउटपुटतैयार

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

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

API README

Instagram Shortcode Extractor API

Extract the shortcode from an Instagram post, reel or TV link. Instagram links take the forms instagram.com/p/<shortcode>/, instagram.com/reel/<shortcode>/ and instagram.com/tv/<shortcode>/, often with tracking query strings such as ?igsh=.

Use cases

  • Normalize links pasted by users before calling post APIs.
  • Deduplicate the same post shared with different tracking parameters.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/extract-shortcode" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.instagram.com/p/DUajw4YkorV/"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesFull Instagram post URL

Example response

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

{
  "shortcode": "DUajw4YkorV",
  "url": "https://www.instagram.com/p/DUajw4YkorV/"
}

Response fields

FieldMeaning
shortcodeThe 11-character post shortcode.
urlThe link you sent.

Notes

  • The shortcode is the media ID in base 64; convert it with Shortcode to Media ID.
  • This only parses the link; it does not check that the post exists.

Pricing

$0.002 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

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

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

प्रश्न

FAQ

Instagram Shortcode Extractor API का उपयोग कैसे करें?

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

Instagram Shortcode Extractor API की लागत कितनी है?

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

Instagram Shortcode Extractor API कौन-से parameters स्वीकार करती है?

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

Instagram Shortcode Extractor API क्या लौटाती है?

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

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

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