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.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
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

问题

常见问题

如何使用 Instagram Post Details by URL (V2) API?

向 https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Instagram Post Details by URL (V2) API 的价格是多少?

每次调用 $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 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Instagram API 访问权限。