API para Instagram: Reposts do usuário
Liste os posts que uma conta pública do Instagram repostou no feed, com paginação por cursor.
Rede de provedores
Provedores ordenados por tráfego
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",
"authorName": "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": [
{
"displayName": "Alex Rivera",
"userId": "a1b2c3d4",
"username": "alex_rivera",
"verified": true
}
],
"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",
"reshares": 13,
"shortcode": "a1b2c3d4",
"taggedUsers": [
{
"displayName": "Alex Rivera",
"userId": "a1b2c3d4",
"username": "alex_rivera"
}
],
"url": "https://example.com/page",
"videoDurationSeconds": 12.5,
"videoUrl": "https://example.com/page",
"views": 12500,
"width": 1024
}
]
},
"found": true,
"reason": "not_found"
}interface InstagramUserRepostsResponse {
data: {
nextCursor: string | null;
posts: {
altText?: string;
author: string;
authorId?: string;
authorName?: string;
authorPrivate?: boolean;
authorVerified?: boolean;
avatarUrl?: string;
caption: string;
captionEdited?: boolean;
carouselCount?: number;
coauthors?: {
displayName?: string;
userId?: string;
username: string;
verified?: boolean;
}[];
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;
reshares?: number;
shortcode?: string;
taggedUsers?: {
displayName?: string;
userId?: string;
username: string;
}[];
url: string;
videoDurationSeconds?: number;
videoUrl?: string;
views?: number;
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.user_reposts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"787132"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| userId | string | "787132"O ID numérico da conta no Instagram, como retornado por instagram.profile. |
| cursor | string | Cursor de paginação do nextCursor de uma resposta anterior. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of reposts, or null when there are no more. Pass it back as cursor to continue. |
| data.posts | object[] | Posts the account has reposted to its feed, newest first. 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[].authorName | string | The author's display name. |
| 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[].displayName | string | Account display name. |
| 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[].coauthors[].verified | boolean | Whether the account carries Instagram's verified badge. |
| 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[].reshares | integer | Number of times the post has been reshared, when Instagram reports it. |
| 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[].videoDurationSeconds | number | Video length in seconds, present on video posts and reels only. |
| data.posts[].videoUrl | string | Direct video file URL, present on video posts and reels only. |
| data.posts[].views | integer | Play count, 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,0011 |
| Preço /mil req. | USD | US$ 1,10 |
Dúvidas frequentes
Sobre o endpoint Reposts do usuário da API para Instagram
O endpoint Reposts do usuário da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.user_reposts. Liste os posts que uma conta pública do Instagram repostou no feed, 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, 80,0% das chamadas ao endpoint Reposts do usuário da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 4,3 segundos, em 5 chamadas medidas.