API di Instagram

Instagram Post API

Un singolo post o reel Instagram tramite URL: id, shortcode, tipo, autore, numero di mi piace e URL dei media.

0,38 USD/1k richieste, paghi a richiesta, nessun abbonamento.

nasa on Instagram
instagram.com/p/C8aBcDeFgHi/
nasa·Follow

1,840,000 likes

Add a comment…Post
Cosa ha restituito l'API
{
"id": "3401000000000000000",
"shortcode": "C8aBcDeFgHi",
"type": "XDTGraphVideo",
"owner": "nasa",
"likes": 1840000,
"displayUrl": "https://instagram.com/p/C8aBcDeFgHi/media.jpg",
"videoUrl": "https://instagram.com/p/C8aBcDeFgHi/media.mp4",
"altText": string | null,
... 26 campi in più
}
Disponibilità
99,98%
30d · 575.422 chiamate
Richieste
578.856
30 g · settimanale, ultime 12 sett.
Risposta
1,7s
mediana · 30d

Provalo

Ottieni Instagram Post in una sola richiesta

requireFieldsarray
Facoltativo; se lo ometti l'instradamento resta invariato, e serve la fonte più economica. Indica i campi di output che questa richiesta deve poter restituire, per esempio `plays`, e verrà servita solo da una fonte che li restituisce tutti. I campi che non indichi vengono comunque restituiti ogni volta che la fonte che serve li ha. Può far salire il prezzo: quando la fonte più economica non può restituire un campo indicato, serve una fonte più cara, e ti viene quotato e addebitato il suo prezzo. Un campo indicato può comunque mancare su un post che davvero non lo ha. Indicare una combinazione che nessuna singola fonte restituisce insieme viene rifiutato come input non valido, senza addebito.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 9 campi su 37. Vedi tutti i campi

{
  "found": true,
  "data": {
    "id": "3401000000000000000",
    "shortcode": "C8aBcDeFgHi",
    "type": "XDTGraphVideo",
    "owner": "nasa",
    "likes": 1840000,
    "displayUrl": "https://instagram.com/p/C8aBcDeFgHi/media.jpg",
    "videoUrl": "https://instagram.com/p/C8aBcDeFgHi/media.mp4"
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • urlstring

    https://www.instagram.com/p/C8aBcDeFgHi/

    URL completo del post o reel Instagram, con lo shortcode del media: /p/, /reel/, /reels/ o /tv/. Un URL di profilo come https://www.instagram.com/username non indica alcun post, quindi viene rifiutato invece di addebitare un risultato vuoto - invia l'handle di quell'account a instagram.profile, o i suoi post a instagram.user_posts.

  • hostVideoboolean

    Imposta su true per ottenere anche il video del post su un link MP4 ospitato che si riproduce senza una sessione Instagram. Il file viene scaricato e archiviato per te, e la risposta aggiunge `hostedUrl`, `expiresUtc` e `bytes`. Viene addebitato come extra oltre al prezzo e non cambia mai quale fonte ti serve: ogni fonte lo offre allo stesso prezzo. Un post senza video, o un post che non esiste, viene rifiutato senza addebito invece di fatturare un file che non può esistere. Omettilo e non viene scaricato nulla, non viene archiviato nulla e non viene addebitato nulla in più.

  • requireFieldsarray

    Facoltativo; se lo ometti l'instradamento resta invariato, e serve la fonte più economica. Indica i campi di output che questa richiesta deve poter restituire, per esempio `plays`, e verrà servita solo da una fonte che li restituisce tutti. I campi che non indichi vengono comunque restituiti ogni volta che la fonte che serve li ha. Può far salire il prezzo: quando la fonte più economica non può restituire un campo indicato, serve una fonte più cara, e ti viene quotato e addebitato il suo prezzo. Un campo indicato può comunque mancare su un post che davvero non lo ha. Indicare una combinazione che nessuna singola fonte restituisce insieme viene rifiutato come input non valido, senza addebito.

  • requirePlayCountboolean

    Deprecato; invia invece `requireFields: ["plays"]`, che fa esattamente la stessa cosa. Imposta true per essere servito solo da una fonte che riporta il numero di riproduzioni di un reel. Omettilo e l'instradamento resta invariato, con la fonte più economica che serve, la quale non riporta le riproduzioni, quindi `plays` è assente dalle sue risposte. Può far salire il prezzo: scegliere questa opzione instrada a una fonte che riporta il numero, e ti viene quotato e addebitato il suo prezzo. Resta accettato perché i chiamanti che già lo inviano continuino a funzionare.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

datadata
  • altTextstringpuò richiedere

    Instagram's generated accessibility description of the media. Null when this source does not report it.

  • audioIdstringpuò richiedere

    Instagram audio id of the sound; pass it to instagram.audio_reels as audioId to list other reels using it. Null when the media has no sound or this source does not report it.

  • avatarUrlstring

    Profile picture URL of the posting account.

  • bytesinteger

    Size of the hosted MP4 in bytes. Present only when the request set `hostVideo` to true.

  • captionstring

    Caption text of the post, including its hashtags and @mentions. Empty when the post has no caption. Populated whenever the provider has data for the entity.

  • commentsinteger

    Number of comments on the post.

  • countsHiddenbooleanpuò richiedere

    Whether the author has hidden the like and view counts. Null when this source does not report it.

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • displayNamestring

    Display name of the posting account.

  • displayUrlstring

    https://instagram.com/p/C8aBcDeFgHi/media.jpg

    Populated whenever the provider has data for the entity.

  • durationSecondsnumberpuò richiedere

    Video duration in seconds. Null on a photo, or when this source does not report it.

  • expiresUtcinteger

    When `hostedUrl` stops working, as a UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Present only when the request set `hostVideo` to true.

  • hasAudiobooleanpuò richiedere

    True when the media carries an audio track.

  • hashtagsstring[]

    Hashtags carried in the caption, each including its leading #. Empty when the caption uses none. Populated whenever the provider has data for the entity.

  • hostedUrlstring

    AnyAPI-hosted MP4 of this post's video, playable without an Instagram session. Present only when the request set `hostVideo` to true.

  • idstring

    3401000000000000000

    Populated whenever the provider has data for the entity.

  • likesinteger

    1840000

  • locationIdstringpuò richiedere

    Instagram id of the tagged place, when the post tags one.

  • locationLatnumberpuò richiedere

    Latitude of the tagged location, in decimal degrees. Null when the post tags no place or this source does not report it.

  • locationLngnumberpuò richiedere

    Longitude of the tagged location, in decimal degrees. Null when the post tags no place or this source does not report it.

  • locationNamestring

    Name of the tagged place, when the post tags one.

  • mentionsstring[]

    Accounts mentioned in the caption, each including its leading @, in caption order. Empty when the caption mentions none.

  • ownerstring

    nasa

    Populated whenever the provider has data for the entity.

  • paidPartnershipbooleanpuò richiedere

    True when the post is tagged as a paid partnership. Null when this source does not report it.

  • playsintegerpuò richiedere

    Number of plays of the reel or video. Absent when Instagram does not expose a play count for this media, and on lanes that cannot serve it.

  • productTypestring

    Instagram product type of the media, for example feed, clips or igtv.

  • resharesintegerpuò richiedere

    Number of times the post has been reshared. Null when this source does not report it.

  • shortcodestring

    C8aBcDeFgHi

  • soundAuthorstringpuò richiedere

    Credited author of the sound. Null when the media has no sound or this source does not report it.

  • soundTitlestringpuò richiedere

    Name of the sound. "Original audio" means the creator's own audio rather than a licensed track. Null when the media has no sound or this source does not report it.

  • typestring

    XDTGraphVideo

  • userIdstring

    Instagram user id of the posting account.

  • verifiedboolean

    True when the posting account carries a verified badge.

  • videoUrlstring

    https://instagram.com/p/C8aBcDeFgHi/media.mp4

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.

FAQ

Sull'API Instagram Post

L'API Instagram Post di AnyAPI restituisce dati Instagram come JSON normalizzato da una sola chiamata POST a /v1/run/instagram.post. Un singolo post o reel Instagram tramite URL: id, shortcode, tipo, autore, numero di mi piace e URL dei media. AnyAPI instrada ogni richiesta su 7 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,38 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate Instagram Post tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,7 secondi su 575.422 chiamate misurate.

Costa da 0,38 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Un singolo post o reel Instagram tramite URL: id, shortcode, tipo, autore, numero di mi piace e URL dei media. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate Instagram Post tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,7 secondi su 575.422 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 263 chiamate Instagram Post a 0,00038 USD ciascuna.

AnyAPI interroga la successiva delle sue 7 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/instagram.post con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.
Altro da chiamare

Altri endpoint di Instagram

Profiloda 0,54 USD /1k richiestePost dell'utenteda 0,68 USD /1k richiesteReel dell'utenteda 0,68 USD /1k richiesteCommenti del postda 0,72 USD /1k richiesteRicerca hashtagda 1,20 USD /1k richiesteAccount aboutda 2,20 USD /1k richiesteReel con audioda 1,10 USD /1k richiesteProfilo di baseda 0,80 USD /1k richiesteComment likersda 1,10 USD /1k richiesteRisposte ai commentida 1,10 USD /1k richiesteEmbedda 1,20 USD /1k richiesteFollowerda 1,73 USD /1k richiesteSeguitida 1,73 USD /1k richiesteStatistiche dell'hashtagda 1,10 USD /1k richiestePost recenti dell'hashtagda 1,88 USD /1k richiestePost principali dell'hashtagda 1,88 USD /1k richiesteDettaglio dell'highlightda 1,10 USD /1k richiesteLocation detailsda 1,10 USD /1k richiestePost della localitàda 1,10 USD /1k richiesteTrascrizione del mediada 1,20 USD /1k richiesteChi ha messo mi piace al postda 1,10 USD /1k richiesteContatto del profiloda 0,40 USD /1k richiesteTrascrizione del reelda 5,94 USD /1k minuti di audioRicerca reelda 1,88 USD /1k richiesteRicercada 1,26 USD /1k richiesteSearch audioda 1,10 USD /1k richiesteRicerca followerda 2,20 USD /1k richiesteRicerca seguitida 2,20 USD /1k richiesteRicerca localitàda 1,10 USD /1k richiesteRicerca profilida 1,20 USD /1k richiesteRicerca profili con contattida 6,67 USD /1k profiliProfili similida 1,75 USD /1k richiesteStorie completeda 2,20 USD /1k richiesteStorie in versione leggerada 1,88 USD /1k richiesteStoriada 2,20 USD /1k richiesteSuggested profilesda 2,20 USD /1k richiestePost con tagda 1,88 USD /1k richiesteReel di tendenzada 1,20 USD /1k richiesteHighlight dell'utenteda 1,20 USD /1k richiesteUser reels logged inda 1,73 USD /1k richiesteRepost dell'utenteda 1,10 USD /1k richiesteRicerca reel sul webda 1,20 USD /1k richieste