API de Instagram

API de Instagram: Publicaciones destacadas de un hashtag

Las publicaciones mejor clasificadas por el propio Instagram para un hashtag, leídas de su feed de hashtag en vivo y no de un índice de búsqueda web, con número de vistas, me gusta y comentarios. Predominan los Reels y el orden es por interacción, así que responde qué está funcionando en una etiqueta ahora mismo. Para resultados más antiguos ordenados por relevancia, con filtros de fecha y tipo de contenido, usa instagram.search_hashtag; para el feed cronológico usa instagram.hashtag_recent_posts.

US$1.88/1k solic., pagas por solicitud, sin suscripción.

#skincare hashtag on Instagram
instagram.com/explore/tags/skincare/
#

#skincare

Follow
TOPRECENT
Lo que devolvió la APIposts[0]
{
"id": "3481029384756211903",
"shortcode": "C8mN4tXo7qP",
"url": "https://www.instagram.com/p/C8mN4tXo7qP/",
"caption": "The five step routine that finally cleared my skin, saved you a trip to the dermatologist #skincare #skincareroutine #glowup",
"username": "glow.by.nadia",
"avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/nadia-coelho-profile.jpg",
"verified": false,
"views": 4820000,
... 19 campos más
}
Disponibilidad
99.95%
30d · 205,692 llamadas
Solicitudes
212,027
30d · semanal, últimas 12 sem.
Respuesta
5.2s
mediana · 30d

Precios y proveedores

Precios del endpoint Publicaciones destacadas de un hashtag de la API de Instagram: una API, 2 proveedores intercambiables

El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.

Pagas
US$18.80
US$1.88/1k solic., solo por lo que usas. Sin plan mensual.
Tus primeras 53 solicitudes son gratis con el saldo inicial de US$0.10.

Pruébalo

Obtén Publicaciones destacadas de un hashtag de Instagram en una sola solicitud

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Abrir en
Respuesta de ejemplo
Las ejecuciones gratis devuelven solo los primeros 3 resultados. Agrega fondos a una clave para obtener la respuesta completa.

Este ejemplo muestra 20 de 41 campos. Ver todos los campos

{
  "found": true,
  "data": {
    "nextCursor": "QVFDMWJhc3NpY0dGellYSjBhbTF2",
    "posts": [
      {
        "id": "3481029384756211903",
        "shortcode": "C8mN4tXo7qP",
        "url": "https://www.instagram.com/p/C8mN4tXo7qP/",
        "caption": "The five step routine that finally cleared my skin, saved you a trip to the dermatologist #skincare #skincareroutine #glowup",
        "username": "glow.by.nadia",
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/nadia-coelho-profile.jpg",
        "verified": false,
        "views": 4820000,
        "likes": 318400,
        "comments": 6215,
        "createdUtc": 1725580800,
        "durationSeconds": 42.5,
        "media": [
          {
            "type": "video",
            "url": "https://scontent.cdninstagram.com/v/t51.2885-15/skincare-routine-cover.jpg",
            "videoUrl": "https://scontent.cdninstagram.com/v/t50.16885-16/skincare-routine.mp4"
          }
        ]
      },
      {
        "id": "3481029384756212014",
        "shortcode": "C8mOaB1s9zR",
        "url": "https://www.instagram.com/p/C8mOaB1s9zR/",
        "caption": "Ingredient breakdown: niacinamide vs vitamin C, which one goes first #skincaretips",
        "username": "derma.notes",
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/derma-notes-profile.jpg",
        "verified": true,
        "likes": 94100,
        "comments": 1802,
        "createdUtc": 1725494400,
        "media": [
          {
            "type": "photo",
            "url": "https://scontent.cdninstagram.com/v/t51.29350-15/ingredient-chart-cover.jpg"
          }
        ]
      },
      {
        "id": "3481029384756212167",
        "shortcode": "C8mPQd7oXyT",
        "url": "https://www.instagram.com/p/C8mPQd7oXyT/",
        "caption": "Sunscreen is not optional, reapply every two hours if you are outside #spf #skincare",
        "username": "sunscreen.diaries",
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/sunscreen-diaries-profile.jpg",
        "verified": false,
        "views": 1230000,
        "likes": 72300,
        "comments": 941,
        "createdUtc": 1725408000,
        "durationSeconds": 18,
        "media": [
          {
            "type": "video",
            "url": "https://scontent.cdninstagram.com/v/t51.2885-15/spf-reminder-cover.jpg",
            "videoUrl": "https://scontent.cdninstagram.com/v/t50.16885-16/spf-reminder.mp4"
          }
        ]
      }
    ]
  }
}

Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.

Referencia

Una solicitud, un formato de respuesta.

Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.

Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d

Cuerpo de la solicitud

JSON, enviado por POST a este endpoint.

  • hashtagstring

    skincare

    Hashtag que obtener, sin el # inicial.

  • cursorstring

    Cursor de paginación del nextCursor de una respuesta anterior.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

Envías. Un cuerpo JSON pequeño. Los valores que se muestran son ejemplos para reemplazar por los tuyos.

Respuesta

JSON, un valor de ejemplo por campo.

datadata
  • nextCursorstring

    QVFDMWJhc3NpY0dGellYSjBhbTF2

    Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue.

each postdata.posts[]

Top-ranked posts for the hashtag, ordered by Instagram's engagement model rather than by time. Populated whenever the provider has data for the entity.

  • audioIdstring

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

  • avatarUrlstring

    https://scontent.cdninstagram.com/v/t51.2885-19/nadia-coelho-profile.jpg

    Profile picture URL of the posting account. Populated whenever the provider has data for the entity.

  • captionstring

    The five step routine that finally cleared my skin, saved you a trip to the dermatologist #skincare #skincareroutine #glowup

    Post caption text, including its hashtags. Populated whenever the provider has data for the entity.

  • commentsinteger

    6215

    Comment count.

  • createdUtcnumber

    1725580800

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

  • durationSecondsnumber

    42.5

    Video duration in seconds. Absent on photo posts.

  • hashtagsstring[]

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

  • idstring

    3481029384756211903

    Instagram media id. Populated whenever the provider has data for the entity.

  • likesinteger

    318400

    Like count. Absent when the account hides it.

  • locationIdstringse puede exigir

    Instagram location id the post is tagged at. Null when the post is not tagged at a location or this source does not report it.

  • locationLatnumberse puede exigir

    Latitude of the tagged location, in decimal degrees. Null when the post is not tagged at a location or this source does not report it.

  • locationLngnumberse puede exigir

    Longitude of the tagged location, in decimal degrees. Null when the post is not tagged at a location or this source does not report it.

  • locationNamestringse puede exigir

    Name of the location the post is tagged at. Null when the post is not tagged at a location or this source does not report it.

  • mentionsstring[]

    Accounts @mentioned in the caption, each including its leading @. Populated whenever the provider has data for the entity.

  • paidPartnershipbooleanse puede exigir

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

  • productTypestringse puede exigir

    Instagram's own surface label for the post, such as feed, clips or carousel_container. Null when this source does not report it.

  • resharesintegerse puede exigir

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

  • shortcodestring

    C8mN4tXo7qP

    Short code in the post permalink. Populated whenever the provider has data for the entity.

  • soundAuthorstringse puede exigir

    Credited artist of a licensed track, or the username of the account whose original audio it is. Null when the post has no sound or this source does not report it.

  • soundTitlestringse puede exigir

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

  • urlstring

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

    Canonical permalink to the post. Populated whenever the provider has data for the entity.

  • usernamestring

    glow.by.nadia

    Username of the account that posted. Populated whenever the provider has data for the entity.

  • verifiedboolean

    false

    True when the posting account is verified.

  • viewsinteger

    4820000

    Play count. Present on video posts.

each coauthordata.posts[].coauthors[]

Accounts listed as coauthors of the post. Null when this source does not report it.

  • avatarUrlstring

    Coauthor's profile picture URL, as Instagram's CDN serves it.

  • userIdstring

    Instagram's numeric account id, as a string.

  • usernamestring

    Instagram username without the leading @.

each mediadata.posts[].media[]

Photo and video attachments on the post.

  • typestring

    video

    One of photo or video.

  • urlstring

    https://scontent.cdninstagram.com/v/t51.2885-15/skincare-routine-cover.jpg

    Image URL. For a video this is the cover frame.

  • videoUrlstring

    https://scontent.cdninstagram.com/v/t50.16885-16/skincare-routine.mp4

    Playable video file URL. Present only for video items.

each taggedUserdata.posts[].taggedUsers[]

Accounts tagged in the media. Null when this source does not report it.

  • displayNamestring

    Account display name.

  • userIdstring

    Instagram's numeric account id, as a string.

  • usernamestring

    Instagram username without the leading @.

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.

Recibes. Campos con nombre y tipo, con el mismo formato sin importar qué fuente responda.

Preguntas frecuentes

Acerca del endpoint Publicaciones destacadas de un hashtag de la API de Instagram

El endpoint Publicaciones destacadas de un hashtag de AnyAPI para Instagram devuelve datos de Instagram como JSON normalizado con una sola llamada POST a /v1/run/instagram.hashtag_top_posts. Las publicaciones mejor clasificadas por el propio Instagram para un hashtag, leídas de su feed de hashtag en vivo y no de un índice de búsqueda web, con número de vistas, me gusta y comentarios. Predominan los Reels y el orden es por interacción, así que responde qué está funcionando en una etiqueta ahora mismo. Para resultados más antiguos ordenados por relevancia, con filtros de fecha y tipo de contenido, usa instagram.search_hashtag; para el feed cronológico usa instagram.hashtag_recent_posts. AnyAPI enruta cada solicitud entre 2 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$1.88 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 99.9% de las llamadas al endpoint Publicaciones destacadas de un hashtag de la API de Instagram a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 5.2 segundos en 205.692 llamadas medidas.

Cuesta desde US$1.88 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. Agregas fondos a una billetera en dólares y cada llamada descuenta de ella. Algunas solicitudes fallidas pagadas con la billetera generan cargos de procesamiento que trasladamos al costo, sin margen; la respuesta de error muestra el monto cobrado.

Las publicaciones mejor clasificadas por el propio Instagram para un hashtag, leídas de su feed de hashtag en vivo y no de un índice de búsqueda web, con número de vistas, me gusta y comentarios. Predominan los Reels y el orden es por interacción, así que responde qué está funcionando en una etiqueta ahora mismo. Para resultados más antiguos ordenados por relevancia, con filtros de fecha y tipo de contenido, usa instagram.search_hashtag; para el feed cronológico usa instagram.hashtag_recent_posts. La respuesta es JSON normalizado con el mismo envoltorio que devuelve cada endpoint de AnyAPI, así que procesar un segundo endpoint es solo cambiar la URL.

En los últimos 30 días, el 99.9% de las llamadas al endpoint Publicaciones destacadas de un hashtag de la API de Instagram a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 5.2 segundos en 205.692 llamadas medidas. Estas son mediciones propias de AnyAPI sobre el tráfico que pasa por el gateway, recalculadas continuamente, no un objetivo de nivel de servicio publicado.

Sí. Una cuenta nueva de AnyAPI empieza con US$0.10 de saldo gratis, sin tarjeta, que alcanza para 53 llamadas a Publicaciones destacadas de un hashtag de Instagram a US$0.00188 cada una.

AnyAPI consulta la siguiente de sus 2 fuentes en la misma solicitud, empezando por la más barata, así que la caída de una fuente no hace fallar tu llamada.

Envía una solicitud POST a https://api.getanyapi.com/v1/run/instagram.hashtag_top_posts con tu clave de AnyAPI en un encabezado "Authorization: Bearer" y la entrada como cuerpo JSON. La misma clave y la misma billetera sirven para todos los endpoints de AnyAPI.

No. Agregas dólares a un solo saldo prepagado de AnyAPI y cada solicitud descuenta de él. No hay plan mensual ni mínimo, y el mismo saldo paga todos los endpoints de AnyAPI.

Sí. Instala @getanyapi/sdk desde npm para TypeScript o getanyapi desde pip para Python. Ambos llaman a todos los endpoints de AnyAPI con la misma clave, y también sirve cualquier cliente HTTP.

Sí. Un agente puede conectarse al servidor MCP de AnyAPI en https://api.getanyapi.com/mcp, o crear su propia clave de prueba gratis con un solo POST sin autenticar a https://api.getanyapi.com/agent/signup y llamar a este endpoint por HTTP.
Más para llamar

Otros endpoints de Instagram

Perfildesde US$0.90 /1k solic.Publicaciones del usuariodesde US$0.80 /1k solic.Publicacióndesde US$0.50 /1k solic.Reels del usuariodesde US$0.80 /1k solic.Comentarios de la publicacióndesde US$0.80 /1k solic.Búsqueda por hashtagdesde US$1.20 /1k solic.Reels con un audiodesde US$1.10 /1k solic.Perfil básicodesde US$1.00 /1k solic.Comment likersdesde US$1.10 /1k solic.Respuestas a comentariosdesde US$1.10 /1k solic.Código de insercióndesde US$1.20 /1k solic.Seguidoresdesde US$1.73 /1k solic.Seguidosdesde US$1.73 /1k solic.Analítica de hashtagdesde US$1.10 /1k solic.Publicaciones recientes de un hashtagdesde US$1.88 /1k solic.Detalle de historia destacadadesde US$1.10 /1k solic.Location detailsdesde US$1.10 /1k solic.Publicaciones de una ubicacióndesde US$1.10 /1k solic.Transcripción de contenidodesde US$1.20 /1k solic.Cuentas que dieron me gustadesde US$1.10 /1k solic.Contacto del perfildesde US$1.75 /1k solic.Transcripción de reeldesde US$5.94 /1k minutos de audioBúsqueda de Reelsdesde US$1.88 /1k solic.Buscardesde US$1.26 /1k solic.Buscar seguidoresdesde US$2.20 /1k solic.Buscar seguidosdesde US$2.20 /1k solic.Buscar ubicacionesdesde US$1.10 /1k solic.Buscar perfilesdesde US$1.20 /1k solic.Buscar perfiles con contactodesde US$6.67 /1k perfilesPerfiles similaresdesde US$1.75 /1k solic.Historias (completo)desde US$2.20 /1k solic.Historias (resumido)desde US$1.88 /1k solic.Suggested profilesdesde US$2.20 /1k solic.Publicaciones etiquetadasdesde US$1.88 /1k solic.Reels en tendenciadesde US$1.20 /1k solic.Historias destacadasdesde US$1.20 /1k solic.User reels logged indesde US$1.73 /1k solic.Publicaciones compartidasdesde US$1.10 /1k solic.Búsqueda de Reels en la webdesde US$1.20 /1k solic.