Check Instagram media container status
instagram.instagram.media.container.statusCheck whether a staged Instagram container has finished processing
- Price
- freeAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.media.container.statusPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
step 2, skippable only for a plain image. status_code is EXPIRED | ERROR | FINISHED | IN_PROGRESS | PUBLISHED. Video transcoding takes tens of seconds to several minutes — poll at ~30s intervals and give up after ~9 minutes rather than hammering it. ERROR is terminal: build a new container, do not retry the publish
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
ig_container_id | chaîne | Obligatoire | the id returned by instagram.media.container.create | 17890000000000000 |
| Paramètres de requête | ||||
fields | chaîne | Obligatoire | status_code is the one that matters; add `status` for the human-readable failure reason | status_code,status |
- Paramètres de chemin
ig_container_idchaîneObligatoirethe id returned by instagram.media.container.create
Exemple :
17890000000000000- Paramètres de requête
fieldschaîneObligatoirestatus_code is the one that matters; add `status` for the human-readable failure reason
Exemple :
status_code,status
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.media.container.status' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.media.container.status",
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.container.status", {
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.