Reach, saves and engagement for one Instagram post
instagram.instagram.media.insightsGet reach, saves and engagement for a single one of your Instagram posts
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.media.insights?metric=reach%2Csaved%2Clikes%2Ccomments%2CsharesPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
needs instagram_manage_insights. Asking for a metric the media type does not support fails the whole call, so branch on media_type from instagram.user.posts first
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
ig_media_id | string | Obrigatório | 17900000000000000 | |
| Parâmetros de consulta | ||||
metric | string | Obrigatório | supported names depend on media_type — reach/saved/likes/comments/shares apply broadly; video and reel media add views and watch-time metrics | reach,saved,likes,comments,shares,total_interactions |
- Parâmetros de caminho
ig_media_idstringObrigatórioExemplo:
17900000000000000- Parâmetros de consulta
metricstringObrigatóriosupported names depend on media_type — reach/saved/likes/comments/shares apply broadly; video and reel media add views and watch-time metrics
Exemplo:
reach,saved,likes,comments,shares,total_interactions
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.media.insights?metric=reach%2Csaved%2Clikes%2Ccomments%2Cshares' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.media.insights?metric=reach%2Csaved%2Clikes%2Ccomments%2Cshares",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/instagram.instagram.media.insights?metric=reach%2Csaved%2Clikes%2Ccomments%2Cshares", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.