Check Instagram media container status
instagram.instagram.media.container.statusCheck whether a staged Instagram container has finished processing
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- 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
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ig_container_id | 文字列 | 必須 | the id returned by instagram.media.container.create | 17890000000000000 |
| クエリパラメータ | ||||
fields | 文字列 | 必須 | status_code is the one that matters; add `status` for the human-readable failure reason | status_code,status |
- パスパラメータ
ig_container_id文字列必須the id returned by instagram.media.container.create
例:
17890000000000000- クエリパラメータ
fields文字列必須status_code is the one that matters; add `status` for the human-readable failure reason
例:
status_code,status
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。