Another Instagram account's public stats by username
instagram.x.user-business-discoveryRead ANOTHER public professional account's followers, media count and recent posts
- Price
- freeAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 34 calls
- Latency p50
- 198 msp95 1.2 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/instagram.x.user-business-discoveryPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
ig_user_id | chaîne | Obligatoire | your Page-linked Instagram Business account id discovered by Facebook Page tools; not the Facebook Page id or Instagram Login /me user_id | 17841400000000000 |
| Paramètres de requête | ||||
fields | chaîne | Obligatoire | business_discovery expression containing another public Business or Creator username without @ and the fields to return | business_discovery.username(instagram){id,username,followers_count,media_count,media.limit(5){id,caption,media_type,permalink,timestamp}} |
- Paramètres de chemin
ig_user_idchaîneObligatoireyour Page-linked Instagram Business account id discovered by Facebook Page tools; not the Facebook Page id or Instagram Login /me user_id
Exemple :
17841400000000000- Paramètres de requête
fieldschaîneObligatoirebusiness_discovery expression containing another public Business or Creator username without @ and the fields to return
Exemple :
business_discovery.username(instagram){id,username,followers_count,media_count,media.limit(5){id,caption,media_type,permalink,timestamp}}
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.x.user-business-discovery' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.x.user-business-discovery",
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.x.user-business-discovery", {
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.