API para Instagram

API para Instagram: Principais posts da hashtag

Os posts mais bem ranqueados pelo próprio Instagram para uma hashtag, lidos do feed ao vivo da hashtag e não de um índice de busca na web, com contagens de visualizações, curtidas e comentários. Predominam Reels e o ranking é por engajamento, então mostra o que está performando em uma tag agora. Para resultados mais antigos ranqueados por relevância, com filtros de data e tipo de mídia, use instagram.search_hashtag; para o feed cronológico, use instagram.hashtag_recent_posts.

US$ 1,88/mil req., pague por requisição, sem assinatura.

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

#skincare

Follow
TOPRECENT
O que a API retornouposts[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 a mais
}
Disponibilidade
99,95%
30d · 205.692 chamadas
Requisições
212.027
30d · semanal, últimas 12 sem.
Resposta
5,2s
mediana · 30d

Preços e provedores

Preços do endpoint Principais posts da hashtag da API para Instagram: uma API, 2 provedores intercambiáveis

O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.

Você paga
US$ 18,80
US$ 1,88/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 53 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Principais posts da hashtag do Instagram em uma só requisição

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 em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.

Este exemplo mostra 20 de 41 campos. Ver todos os 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"
          }
        ]
      }
    ]
  }
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Uma requisição, um formato de resposta.

Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.

Última verificação em 2026-11-14 · disponibilidade e latência medidas em 30d

Corpo da requisição

JSON, enviado via POST para este endpoint.

  • hashtagstring

    skincare

    Hashtag a buscar, sem o # inicial.

  • cursorstring

    Cursor de paginação do nextCursor de uma resposta 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.

Você envia. Um corpo JSON pequeno. Os valores mostrados são exemplos para você trocar pelos seus.

Resposta

JSON, um valor de exemplo 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.

  • locationIdstringpode ser exigido

    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.

  • locationLatnumberpode ser exigido

    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.

  • locationLngnumberpode ser exigido

    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.

  • locationNamestringpode ser exigido

    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.

  • paidPartnershipbooleanpode ser exigido

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

  • productTypestringpode ser exigido

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

  • resharesintegerpode ser exigido

    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.

  • soundAuthorstringpode ser exigido

    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.

  • soundTitlestringpode ser exigido

    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.

Você recebe. Campos nomeados e tipados, no mesmo formato, seja qual for a fonte que responder.

Dúvidas frequentes

Sobre o endpoint Principais posts da hashtag da API para Instagram

O endpoint Principais posts da hashtag da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.hashtag_top_posts. Os posts mais bem ranqueados pelo próprio Instagram para uma hashtag, lidos do feed ao vivo da hashtag e não de um índice de busca na web, com contagens de visualizações, curtidas e comentários. Predominam Reels e o ranking é por engajamento, então mostra o que está performando em uma tag agora. Para resultados mais antigos ranqueados por relevância, com filtros de data e tipo de mídia, use instagram.search_hashtag; para o feed cronológico, use instagram.hashtag_recent_posts. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,88 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,9% das chamadas ao endpoint Principais posts da hashtag da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 5,2 segundos, em 205.692 chamadas medidas.

Custa a partir de US$ 1,88 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Os posts mais bem ranqueados pelo próprio Instagram para uma hashtag, lidos do feed ao vivo da hashtag e não de um índice de busca na web, com contagens de visualizações, curtidas e comentários. Predominam Reels e o ranking é por engajamento, então mostra o que está performando em uma tag agora. Para resultados mais antigos ranqueados por relevância, com filtros de data e tipo de mídia, use instagram.search_hashtag; para o feed cronológico, use instagram.hashtag_recent_posts. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 99,9% das chamadas ao endpoint Principais posts da hashtag da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 5,2 segundos, em 205.692 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.

Sim. Uma conta nova da AnyAPI começa com US$ 0,10 de saldo grátis, sem cartão, o que cobre 53 chamadas de Principais posts da hashtag do Instagram a US$ 0,00188 cada.

A AnyAPI consulta a próxima das suas 2 fontes na mesma requisição, começando pela mais barata, então a queda de uma fonte não derruba sua chamada.

Envie uma requisição POST para https://api.getanyapi.com/v1/run/instagram.hashtag_top_posts com sua chave da AnyAPI em um cabeçalho "Authorization: Bearer" e a entrada como corpo JSON. A mesma chave e a mesma carteira funcionam em todos os endpoints da AnyAPI.

Não. Você adiciona dólares a um único saldo pré-pago da AnyAPI e cada requisição desconta dele. Não há plano mensal nem mínimo, e o mesmo saldo paga todos os endpoints da AnyAPI.

Sim. Instale @getanyapi/sdk pelo npm para TypeScript ou getanyapi pelo pip para Python. Os dois chamam todos os endpoints da AnyAPI com a mesma chave, e qualquer cliente HTTP também funciona.

Sim. Um agente pode se conectar ao servidor MCP da AnyAPI em https://api.getanyapi.com/mcp, ou criar a própria chave de teste grátis com um único POST sem autenticação para https://api.getanyapi.com/agent/signup e chamar este endpoint por HTTP.
Mais para chamar

Outros endpoints de Instagram

Perfila partir de US$ 0,90 /mil req.Posts do usuárioa partir de US$ 0,80 /mil req.Posta partir de US$ 0,50 /mil req.Reels do usuárioa partir de US$ 0,80 /mil req.Comentários do posta partir de US$ 0,80 /mil req.Busca por hashtaga partir de US$ 1,20 /mil req.Reels com o áudioa partir de US$ 1,10 /mil req.Perfil básicoa partir de US$ 1,00 /mil req.Comment likersa partir de US$ 1,10 /mil req.Respostas a comentáriosa partir de US$ 1,10 /mil req.Embeda partir de US$ 1,20 /mil req.Seguidoresa partir de US$ 1,73 /mil req.Seguindoa partir de US$ 1,73 /mil req.Análise de hashtaga partir de US$ 1,10 /mil req.Posts recentes da hashtaga partir de US$ 1,88 /mil req.Detalhes do destaquea partir de US$ 1,10 /mil req.Location detailsa partir de US$ 1,10 /mil req.Posts de uma localizaçãoa partir de US$ 1,10 /mil req.Transcrição de mídiaa partir de US$ 1,20 /mil req.Quem curtiu o posta partir de US$ 1,10 /mil req.Contato do perfila partir de US$ 1,75 /mil req.Transcrição de Reelsa partir de US$ 5,94 /mil minutos de áudioBusca de Reelsa partir de US$ 1,88 /mil req.Buscara partir de US$ 1,26 /mil req.Buscar seguidoresa partir de US$ 2,20 /mil req.Buscar nas contas seguidasa partir de US$ 2,20 /mil req.Buscar localizaçõesa partir de US$ 1,10 /mil req.Buscar perfisa partir de US$ 1,20 /mil req.Buscar contatos de perfisa partir de US$ 6,67 /mil perfisPerfis semelhantesa partir de US$ 1,75 /mil req.Stories (versão completa)a partir de US$ 2,20 /mil req.Stories (versão resumida)a partir de US$ 1,88 /mil req.Suggested profilesa partir de US$ 2,20 /mil req.Posts marcadosa partir de US$ 1,88 /mil req.Reels em altaa partir de US$ 1,20 /mil req.Destaques do usuárioa partir de US$ 1,20 /mil req.User reels logged ina partir de US$ 1,73 /mil req.Reposts do usuárioa partir de US$ 1,10 /mil req.Busca de Reels na weba partir de US$ 1,20 /mil req.