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.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"posts": [
{
"altText": "A short example description of this item.",
"author": "Alex Rivera",
"authorId": "Alex Rivera",
"authorPrivate": false,
"authorVerified": true,
"avatarUrl": "https://example.com/image.jpg",
"caption": "A short example description of this item.",
"captionEdited": true,
"carouselCount": 12500,
"coauthors": [
{
"avatarUrl": "https://example.com/image.jpg",
"userId": "a1b2c3d4",
"username": "alex_rivera"
}
],
"comments": 12500,
"countsHidden": false,
"createdUtc": 12.5,
"hasAudio": true,
"height": 42,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"likes": 12500,
"locationId": "a1b2c3d4",
"locationLat": 12.5,
"locationLng": -122.4194,
"locationName": "Example title",
"mediaType": "general",
"paidPartnership": true,
"productType": "general",
"shortcode": "a1b2c3d4",
"taggedUsers": [
{
"displayName": "Alex Rivera",
"userId": "a1b2c3d4",
"username": "alex_rivera"
}
],
"url": "https://example.com/page",
"videoUrl": "https://example.com/page",
"width": 1024
}
]
},
"found": true,
"reason": "not_found"
}interface InstagramLocationPostsResponse {
data: {
nextCursor: string | null;
posts: {
altText?: string;
author: string;
authorId?: string;
authorPrivate?: boolean;
authorVerified?: boolean;
avatarUrl?: string;
caption: string;
captionEdited?: boolean;
carouselCount?: number;
coauthors?: {
avatarUrl?: string;
userId?: string;
username: string;
}[];
comments: number;
countsHidden?: boolean;
createdUtc: number;
hasAudio?: boolean;
height?: number;
id: string;
image?: string;
likes: number;
locationId?: string;
locationLat?: number;
locationLng?: number;
locationName?: string;
mediaType?: string;
paidPartnership?: boolean;
productType?: string;
shortcode?: string;
taggedUsers?: {
displayName?: string;
userId?: string;
username: string;
}[];
url: string;
videoUrl?: string;
width?: number;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/instagram.location_posts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"locationId":"103912118089363","sort":"recent"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| locationId | string | "103912118089363"O ID de localização do Instagram, como retornado por instagram.search_locations. |
| cursor | string | Cursor de paginação do nextCursor de uma resposta anterior. |
| sort | enum | "recent"Ordena os posts pelo ranking de destaque do Instagram ou pelos mais recentes primeiro. O padrão é por ranking. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of posts, or null when there are no more. Pass it back as cursor to continue. |
| data.posts | object[] | Public posts tagged at the location. Populated whenever the provider has data for the entity. |
| data.posts[].altText | string | Instagram's generated accessibility description of the media. |
| data.posts[].author | string | Username of the account that posted it, without the leading @. Populated whenever the provider has data for the entity. |
| data.posts[].authorId | string | The author's numeric Instagram account id, as a string. |
| data.posts[].authorPrivate | boolean | Whether the author's account is private. |
| data.posts[].authorVerified | boolean | Whether the author carries Instagram's verified badge. |
| data.posts[].avatarUrl | string | Author's profile picture URL, as Instagram's CDN serves it. |
| data.posts[].caption | string | Post caption text. |
| data.posts[].captionEdited | boolean | Whether the caption has been edited since posting. |
| data.posts[].carouselCount | integer | Number of slides, present on carousel posts only. |
| data.posts[].coauthors | object[] | Accounts listed as coauthors of the post. |
| data.posts[].coauthors[].avatarUrl | string | Coauthor's profile picture URL, as Instagram's CDN serves it. |
| data.posts[].coauthors[].userId | string | Instagram's numeric account id, as a string. |
| data.posts[].coauthors[].username | string | Instagram username without the leading @. |
| data.posts[].comments | integer | Number of comments on the post. |
| data.posts[].countsHidden | boolean | Whether the author has hidden the like and view counts. |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.posts[].hasAudio | boolean | Whether the video carries an audio track. |
| data.posts[].height | integer | Media height in pixels. |
| data.posts[].id | string | The post's numeric Instagram media ID, as a string. Populated whenever the provider has data for the entity. |
| data.posts[].image | string | Post image or video thumbnail URL, as Instagram's CDN serves it. Populated whenever the provider has data for the entity. |
| data.posts[].likes | integer | Number of likes on the post. |
| data.posts[].locationId | string | Instagram location id the post is tagged at. |
| data.posts[].locationLat | number | Latitude of the tagged location, in decimal degrees. |
| data.posts[].locationLng | number | Longitude of the tagged location, in decimal degrees. |
| data.posts[].locationName | string | Name of the location the post is tagged at. |
| data.posts[].mediaType | string | What the post is: photo, video or carousel. |
| data.posts[].paidPartnership | boolean | Whether the post is tagged as a paid partnership. |
| data.posts[].productType | string | Instagram's own surface label for the post, such as feed, clips or carousel_container. |
| data.posts[].shortcode | string | The post's short code, the segment Instagram puts in its URL. |
| data.posts[].taggedUsers | object[] | Accounts tagged in the media. |
| data.posts[].taggedUsers[].displayName | string | Account display name. |
| data.posts[].taggedUsers[].userId | string | Instagram's numeric account id, as a string. |
| data.posts[].taggedUsers[].username | string | Instagram username without the leading @. |
| data.posts[].url | string | Canonical URL of the post. Populated whenever the provider has data for the entity. |
| data.posts[].videoUrl | string | Direct video file URL, present on video posts and reels only. |
| data.posts[].width | integer | Media width in pixels. |
| found | boolean | |
| 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. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
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 retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Posts de uma localização da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,3 segundos, em 15 chamadas medidas.