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
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

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 はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/instagram/v3/extract-shortcode に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Instagram Shortcode Extractor API の料金はいくらですか?

1回あたり $0.002、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Instagram Shortcode Extractor API はどのパラメータを受け付けますか?

必須: url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Instagram Shortcode Extractor API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Instagram の開発者アカウントまたは API key は必要ですか?

いいえ。Instagram Shortcode Extractor は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Instagram の API アクセスを別途申請する必要はありません。