API para Instagram

API para Instagram: Posts de uma localização

Liste posts públicos do Instagram marcados em uma localização, por ranking ou mais recentes, com paginação por cursor.

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

Brooklyn Bridge Park • Instagram photos and videos
instagram.com/explore/locations/103912118089363/

Brooklyn Bridge Park

TOPRECENT
O que a API retornouposts[0]
{
"id": "3495710238412098765",
"shortcode": "C9zQ1kRoXaB",
"url": "https://www.instagram.com/p/C9zQ1kRoXaB/",
"author": "marcus.eats.nyc",
"authorVerified": false,
"avatarUrl": "https://cdninstagram.com/marcus-profile.jpg",
"caption": "Sunday brunch with a view of the water, best table in the city",
"likes": 812,
... 27 campos a mais
}
Disponibilidade
94,21%
30d · 2.986 chamadas
Requisições
2.987
30d · semanal, últimas 12 sem.
Resposta
4,6s
mediana · 30d

Preços e provedores

Preços do endpoint Posts de uma localização 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$ 11,00
US$ 1,10/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 90 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Posts de uma localização 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 `carouselCount`, 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 34 de 46 campos. Ver todos os campos

{
  "found": true,
  "data": {
    "nextCursor": "QVFDcXlkbG9jYXRpb25GZWVkQ3Vyc29y",
    "posts": [
      {
        "id": "3495710238412098765",
        "shortcode": "C9zQ1kRoXaB",
        "url": "https://www.instagram.com/p/C9zQ1kRoXaB/",
        "author": "marcus.eats.nyc",
        "authorVerified": false,
        "avatarUrl": "https://cdninstagram.com/marcus-profile.jpg",
        "caption": "Sunday brunch with a view of the water, best table in the city",
        "likes": 812,
        "comments": 24,
        "createdUtc": 1727654400,
        "image": "https://cdninstagram.com/bk-bridge-park.jpg",
        "mediaType": "photo",
        "locationName": "Brooklyn Bridge Park"
      },
      {
        "id": "3495710238412098912",
        "shortcode": "C9zQ2mVoYcD",
        "url": "https://www.instagram.com/p/C9zQ2mVoYcD/",
        "author": "the.wandering.lens",
        "authorId": "60293841284",
        "authorVerified": true,
        "authorPrivate": false,
        "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/wandering-lens-profile.jpg",
        "caption": "Golden hour never disappoints at this spot",
        "captionEdited": false,
        "likes": 5340,
        "comments": 112,
        "createdUtc": 1727568000,
        "image": "https://scontent.cdninstagram.com/v/t51.29350-15/brooklyn-bridge-park-golden-hour.jpg",
        "videoUrl": "https://scontent.cdninstagram.com/v/t50.16885-16/brooklyn-bridge-park-golden-hour.mp4",
        "mediaType": "video",
        "productType": "clips",
        "width": 1080,
        "height": 1920,
        "hasAudio": true,
        "paidPartnership": false,
        "countsHidden": false,
        "locationId": "103912118089363",
        "locationName": "Brooklyn Bridge Park",
        "locationLat": 40.7024,
        "locationLng": -73.9967,
        "coauthors": [
          {
            "username": "nyc.skylines",
            "userId": "60293841390",
            "avatarUrl": "https://scontent.cdninstagram.com/v/t51.2885-19/nyc-skylines-profile.jpg"
          }
        ]
      }
    ]
  }
}

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.

  • locationIdstring

    103912118089363

    O ID de localização do Instagram, como retornado por instagram.search_locations.

  • 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 `carouselCount`, 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.

  • sortenum

    recent

    Ordena os posts pelo ranking de destaque do Instagram ou pelos mais recentes primeiro. O padrão é por ranking.

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

    QVFDcXlkbG9jYXRpb25GZWVkQ3Vyc29y

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

each postdata.posts[]

Public posts tagged at the location. Populated whenever the provider has data for the entity.

  • altTextstring

    Instagram's generated accessibility description of the media.

  • audioIdstring

    Instagram audio id of the sound; pass it to instagram.audio_reels as audioId to list reels that use it. Absent when the post has no sound.

  • authorstring

    marcus.eats.nyc

    Username of the account that posted it, without the leading @. Populated whenever the provider has data for the entity.

  • authorIdstring

    The author's numeric Instagram account id, as a string.

  • authorPrivateboolean

    Whether the author's account is private.

  • authorVerifiedboolean

    false

    Whether the author carries Instagram's verified badge.

  • avatarUrlstring

    https://cdninstagram.com/marcus-profile.jpg

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

  • captionstring

    Sunday brunch with a view of the water, best table in the city

    Post caption text.

  • captionEditedbooleanpode ser exigido

    Whether the caption has been edited since posting.

  • carouselCountintegerpode ser exigido

    Number of slides, present on carousel posts only.

  • commentsinteger

    24

    Number of comments on the post.

  • countsHiddenboolean

    Whether the author has hidden the like and view counts.

  • createdUtcnumber

    1727654400

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

  • hasAudiobooleanpode ser exigido

    Whether the video carries an audio track.

  • hashtagsstring[]

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

  • heightinteger

    Media height in pixels.

  • idstring

    3495710238412098765

    The post's numeric Instagram media ID, as a string. Populated whenever the provider has data for the entity.

  • imagestring

    https://cdninstagram.com/bk-bridge-park.jpg

    Post image or video thumbnail URL, as Instagram's CDN serves it. Populated whenever the provider has data for the entity.

  • likesinteger

    812

    Number of likes on the post.

  • locationIdstring

    Instagram location id the post is tagged at.

  • locationLatnumber

    Latitude of the tagged location, in decimal degrees.

  • locationLngnumber

    Longitude of the tagged location, in decimal degrees.

  • locationNamestring

    Brooklyn Bridge Park

    Name of the location the post is tagged at.

  • mediaTypestring

    photo

    What the post is: photo, video or carousel.

  • mentionsstring[]

    Accounts @mentioned in the caption, each including its leading @.

  • paidPartnershipboolean

    Whether the post is tagged as a paid partnership.

  • productTypestring

    Instagram's own surface label for the post, such as feed, clips or carousel_container.

  • shortcodestring

    C9zQ1kRoXaB

    The post's short code, the segment Instagram puts in its URL.

  • soundAuthorstring

    Credited artist of a licensed track, or the username of the account whose original audio it is. Absent when the post has no sound.

  • soundTitlestring

    Name of the sound. "Original audio" means the creator's own audio rather than a licensed track. Absent when the post has no sound.

  • urlstring

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

    Canonical URL of the post. Populated whenever the provider has data for the entity.

  • videoUrlstring

    Direct video file URL, present on video posts and reels only.

  • widthinteger

    Media width in pixels.

each coauthordata.posts[].coauthors[]

Accounts listed as coauthors of the post.

  • 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 taggedUserdata.posts[].taggedUsers[]

Accounts tagged in the media.

  • 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 Posts de uma localização da API para Instagram

O endpoint Posts de uma localização da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.location_posts. Liste posts públicos do Instagram marcados em uma localização, por ranking ou mais recentes, com paginação por cursor. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,10 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 94,2% das chamadas ao endpoint Posts de uma localização da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,6 segundos, em 2.986 chamadas medidas.

Custa a partir de US$ 1,10 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.

Liste posts públicos do Instagram marcados em uma localização, por ranking ou mais recentes, com paginação por cursor. 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, 94,2% das chamadas ao endpoint Posts de uma localização da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,6 segundos, em 2.986 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 90 chamadas de Posts de uma localização do Instagram a US$ 0,0011 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.location_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.Principais posts 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.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.