post_urlstringzorunlu
Post URL
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2Returns post details and media links for a specific Instagram post URL. Designed for faster responses when handling high-volume post lookups.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
data.medias[].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.
| 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.
{
"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
}
| Field | Meaning |
|---|---|
data.caption | Caption text of the post. Long captions may appear shortened. |
data.username / data.full_name | Account handle and display name of the post author. |
data.like_count / data.comment_count | Number of likes and number of comments on the post. |
data.taken_at_timestamp | Time the post was taken, as a Unix timestamp in seconds. |
data.medias[].link | Direct URL of a media file in the post. |
data.medias[].type | Kind of media for that item, for example image. |
status | true when the lookup succeeded. |
attempts | Attempt counter returned as a string, 0 in this response. |
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.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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/"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
post_urlstringzorunluPost URL
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Instagram | $0.001 çağrı başına | JSON |
Instagram | $0.001 çağrı başına | JSON |
Instagram | $0.001 çağrı başına | JSON |
Instagram | $0.001 çağrı başına | JSON |
Instagram | $0.001 çağrı başına | JSON |
Instagram | $0.001 çağrı başına | JSON |
Kılavuzlar:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: post_url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Instagram Post Details by URL (V2), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Instagram API erişimi için ayrıca başvuru yapmanız gerekmez.