Your Instagram account reach and audience metrics
instagram.instagram.account.insightsGet reach, profile views and audience metrics for your Instagram account
- Price
- freeAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 4 224 calls
- Latency p50
- 291 msp95 895 ms
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_valuePreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
needs instagram_manage_insights. `impressions` and `profile_views` are RETIRED on v25 — asking for them fails the whole call; use the metric_type=total_value trio (reach, accounts_engaged, total_interactions) instead, as the test_request does. Demographic breakdowns (follower_demographics) require metric_type=total_value plus a breakdown parameter and are only returned once the account has 100+ followers
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
ig_user_id | chaîne | Obligatoire | 17841400000000000 | |
| Paramètres de requête | ||||
since | chaîne | Facultatif | Unix timestamp; a single call spans at most 30 days and cannot reach back beyond 2 years | 1751328000 |
until | chaîne | Facultatif | ||
metric | chaîne | Obligatoire | comma-separated | reach,accounts_engaged,total_interactions |
period | chaîne | Obligatoire | day | week | days_28 | lifetime | day |
metric_type | chaîne | Facultatif | set to total_value for the newer aggregate metrics (accounts_engaged, total_interactions) | total_value |
- Paramètres de chemin
ig_user_idchaîneObligatoireExemple :
17841400000000000- Paramètres de requête
sincechaîneFacultatifUnix timestamp; a single call spans at most 30 days and cannot reach back beyond 2 years
Exemple :
1751328000untilchaîneFacultatifmetricchaîneObligatoirecomma-separated
Exemple :
reach,accounts_engaged,total_interactionsperiodchaîneObligatoireday | week | days_28 | lifetime
Exemple :
daymetric_typechaîneFacultatifset to total_value for the newer aggregate metrics (accounts_engaged, total_interactions)
Exemple :
total_value
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value",
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.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.