post_urlstring必須
Post URL
https://api.sandbase.ai/v1/api/instagram/v1/post-by-urlReturns details and display resources for a single Instagram post. Queries the platform using a target post link.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns details for a single Instagram post, including the owner, caption, like count, image sizes and posting time. It needs the full post link in post_url.
display_resources list.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/post-by-url" \
-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.
| Name | Type | Required | Description |
|---|---|---|---|
post_url | string | Yes | Post URL |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"__typename": "GraphImage",
"accessibility_caption": null,
"attempts": "0",
"can_see_insights_as_brand": false,
"caption_is_edited": false,
"coauthor_producers": [],
"commenting_disabled_for_viewer": true,
"comments_disabled": false,
"dimensions": {
"height": 1080,
"width": 1080
},
"display_resources": [
{
"config_height": 640,
"config_width": 480,
"src": "https://instagram.fbcn8-1.fna.fbcdn.net/v/t39.30808-6/735018292_1867233894105495…"
}
],
"display_url": "https://instagram.fbcn8-1.fna.fbcdn.net/v/t51.82787-15/562815025_186013987930549…",
"edge_media_preview_comment": {
"count": 0,
"edges": []
}
}
| Field | Meaning |
|---|---|
shortcode / id | The short code from the post URL and the numeric post ID. |
__typename / is_video | The post type (here GraphImage) and whether the post is a video. |
taken_at_timestamp | When the post was published, as a Unix timestamp in seconds. |
edge_media_to_caption.edges[].node.text | The caption text of the post. |
edge_media_to_caption.edges[].node.created_at | When the caption was written, as a Unix timestamp string. |
edge_media_preview_like.count | The number of likes on the post. |
edge_media_to_parent_comment.count | The number of top-level comments returned for the post. |
display_url | The main image link for the post. |
display_resources[].src | Image link for one size of the post image. Pair it with config_width / config_height. |
owner.username / owner.full_name / owner.id / owner.is_verified | The username, display name and numeric ID of the account that posted, and whether it is verified. |
is_ad / is_paid_partnership / comments_disabled | Flags that show whether the post is an ad, a paid partnership, or has comments turned off. |
https://www.instagram.com/p/DPwhVB-jo9k/. The shortcode in the response matches the code in the link.owner.edge_followed_by.count and owner.edge_owner_to_timeline_media.count values are 0. Call Instagram User Info by Username for the profile details of owner.username.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/post-by-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
post_urlstring必須Post URL
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| 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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/instagram/v1/post-by-url に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: post_url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Instagram Post Details by URL は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Instagram の API アクセスを別途申請する必要はありません。