Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Instagram Post Details by URL

API-Dokumentation
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url

Returns details and display resources for a single Instagram post. Queries the platform using a target post link.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional
100 kostenlose Aufrufe / TagDie ersten 100 Aufrufe pro Tag kostenlos (organisationsweit geteilt) · Zurücksetzung um 00:00 UTC. Danach Abrechnung pro Aufruf.

Playground

Eingabe
Post URL
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Instagram Post Details by URL API

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.

Use cases

  • Download the image of a post at several sizes from the display_resources list.
  • Read the like count and caption of a known post to track a celebrity or brand announcement.
  • Check whether a post is an ad or paid partnership before you report on it.
  • Identify the account that published a post from its link, including the verified status.

Request

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.

Parameters

NameTypeRequiredDescription
post_urlstringYesPost URL

Example response

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": []
  }
}

Response fields

FieldMeaning
shortcode / idThe short code from the post URL and the numeric post ID.
__typename / is_videoThe post type (here GraphImage) and whether the post is a video.
taken_at_timestampWhen the post was published, as a Unix timestamp in seconds.
edge_media_to_caption.edges[].node.textThe caption text of the post.
edge_media_to_caption.edges[].node.created_atWhen the caption was written, as a Unix timestamp string.
edge_media_preview_like.countThe number of likes on the post.
edge_media_to_parent_comment.countThe number of top-level comments returned for the post.
display_urlThe main image link for the post.
display_resources[].srcImage link for one size of the post image. Pair it with config_width / config_height.
owner.username / owner.full_name / owner.id / owner.is_verifiedThe username, display name and numeric ID of the account that posted, and whether it is verified.
is_ad / is_paid_partnership / comments_disabledFlags that show whether the post is an ad, a paid partnership, or has comments turned off.

Notes

  • Pass the full post link, such as https://www.instagram.com/p/DPwhVB-jo9k/. The shortcode in the response matches the code in the link.
  • In this response the 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.
  • Use Instagram Post Comment List to read the comments, since the comment list in this response is empty.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Instagram$0.001 pro AufrufJSON
Instagram$0.001 pro AufrufJSON
Instagram$0.001 pro AufrufJSON
Instagram$0.001 pro AufrufJSON
Instagram$0.001 pro AufrufJSON
Instagram$0.001 pro AufrufJSON

Anleitungen:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Instagram Post Details by URL API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/instagram/v1/post-by-url mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Instagram Post Details by URL API?

$0.001 pro Aufruf. Jede Organisation erhält 100 kostenlose Aufrufe pro UTC-Tag, gemeinsam über alle berechtigten SandBase APIs einschließlich dieser hier; danach wird jeder Aufruf zu diesem Preis von Ihrem SandBase-Guthaben abgerechnet. Es gibt kein Abo.

Welche Parameter akzeptiert die Instagram Post Details by URL API?

Erforderlich: post_url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Instagram Post Details by URL API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Instagram-Entwicklerkonto oder einen API-Schlüssel?

Nein. Instagram Post Details by URL läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Instagram API beantragen.