post_urlstringwymagane
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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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/"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
post_urlstringwymaganePost URL
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Instagram | $0.001 za wywołanie | JSON |
Instagram | $0.001 za wywołanie | JSON |
Instagram | $0.001 za wywołanie | JSON |
Instagram | $0.001 za wywołanie | JSON |
Instagram | $0.001 za wywołanie | JSON |
Instagram | $0.001 za wywołanie | JSON |
Przewodniki:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/instagram/v1/post-by-url z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.
Wymagane: post_url (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Instagram Post Details by URL działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Instagram.