Your Instagram posts — captions, likes, comments
instagram.instagram.user.postsList your Instagram posts with captions, permalinks and like/comment counts
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.user.posts?limit=2&fields=id%2Ccaption%2Cmedia_type%2Cpermalink%2Ctimestamp%2Clike_count%2Ccomments_countPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
media_type is IMAGE | VIDEO | CAROUSEL_ALBUM; a carousel's frames come from the children{media_url} sub-field. Stories are a different edge (/stories) and expire after 24h
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
ig_user_id | 文字列 | 必須 | 17841400000000000 | |
| クエリパラメータ | ||||
limit | 整数 | 任意 | default 25 | 25 |
since | 文字列 | 任意 | Unix timestamp | |
until | 文字列 | 任意 | ||
fields | 文字列 | 必須 | id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,like_count,comments_count | |
- パスパラメータ
ig_user_id文字列必須例:
17841400000000000- クエリパラメータ
limit整数任意default 25
例:
25since文字列任意Unix timestamp
until文字列任意fields文字列必須例:
id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,like_count,comments_count
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.user.posts?limit=2&fields=id%2Ccaption%2Cmedia_type%2Cpermalink%2Ctimestamp%2Clike_count%2Ccomments_count' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.user.posts?limit=2&fields=id%2Ccaption%2Cmedia_type%2Cpermalink%2Ctimestamp%2Clike_count%2Ccomments_count",
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.user.posts?limit=2&fields=id%2Ccaption%2Cmedia_type%2Cpermalink%2Ctimestamp%2Clike_count%2Ccomments_count", {
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 です。サービス料を含みます。