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
- freeAl precio del proveedor
- 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
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
ig_user_id | cadena | Obligatorio | your Page-linked Instagram Business account id discovered by Facebook Page tools; not the Facebook Page id or Instagram Login /me user_id | 17841400000000000 |
| Parámetros de consulta | ||||
fields | cadena | Obligatorio | 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}} |
- Parámetros de ruta
ig_user_idcadenaObligatorioyour Page-linked Instagram Business account id discovered by Facebook Page tools; not the Facebook Page id or Instagram Login /me user_id
Ejemplo:
17841400000000000- Parámetros de consulta
fieldscadenaObligatoriobusiness_discovery expression containing another public Business or Creator username without @ and the fields to return
Ejemplo:
business_discovery.username(instagram){id,username,followers_count,media_count,media.limit(5){id,caption,media_type,permalink,timestamp}}
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.