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; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Instagram Post Details by URLЭтот 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/instagram/v1/post-by-url, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.
Обязательные: post_url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Instagram Post Details by URL работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Instagram.