Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Instagram Post Details by URL (V2)

Documentación de la API
https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2

Returns post details and media links for a specific Instagram post URL. Designed for faster responses when handling high-volume post lookups.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
Post URL
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Instagram Post Details by URL (V2) API

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.

Use cases

  • Download the image or video files from a post by reading the links in data.medias[].
  • Record the like count and comment count of a single post at the time you call.
  • Show the caption and author name of a post in a link preview or a report.
  • Check which posts in a list of URLs hold images and which hold other media types.

Request

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.

Parameters

NameTypeRequiredDescription
post_urlstringYesPost URL

Example response

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
}

Response fields

FieldMeaning
data.captionCaption text of the post. Long captions may appear shortened.
data.username / data.full_nameAccount handle and display name of the post author.
data.like_count / data.comment_countNumber of likes and number of comments on the post.
data.taken_at_timestampTime the post was taken, as a Unix timestamp in seconds.
data.medias[].linkDirect URL of a media file in the post.
data.medias[].typeKind of media for that item, for example image.
statustrue when the lookup succeeded.
attemptsAttempt counter returned as a string, 0 in this response.

Notes

  • Use the full post link, such as 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.
  • Media links are signed CDN URLs with long query strings. Store the file if you need it later.
  • For other lookups by URL, see Instagram Post Details by URL or Instagram Post Details by ID.

Pricing

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Instagram$0.001 por llamadaJSON
Instagram$0.001 por llamadaJSON
Instagram$0.001 por llamadaJSON
Instagram$0.001 por llamadaJSON
Instagram$0.001 por llamadaJSON
Instagram$0.001 por llamadaJSON

Guías:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Instagram Post Details by URL (V2)?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/instagram/v1/post-by-url-v2 con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Instagram Post Details by URL (V2)?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Instagram Post Details by URL (V2)?

Requeridos: post_url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Instagram Post Details by URL (V2)?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Instagram?

No. Instagram Post Details by URL (V2) funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Instagram por separado.