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

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

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

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

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

Instagram Post Details by URL (V2) API の料金はいくらですか?

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

Instagram Post Details by URL (V2) API はどのパラメータを受け付けますか?

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

Instagram Post Details by URL (V2) API は何を返しますか?

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

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

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