Posts of an Instagram account
crawl4ai.instagram.user.postsThe latest posts of one Instagram account, newest first, one row per post: code, URL, caption (first 500 characters), likes, comments, time posted, kind (photo, video, reel, carousel), image, video URL, owner. `username` is the account (@name or an instagram.com URL is fine); `limit` up to 48, 12 per page. Without `session` a public account is read in 1 to 3 s; when Instagram refuses, a slower second source answers (about 100 s, billed per record). With `session` (your `sessionid` and `csrftoken` cookies from the Crawl4AI Session extension, used once, never stored) it is read as you. Columns: code, url, caption, likes, comments, taken_at, kind, image, video_url, owner.
- Price
- $0.0009/successAl precio del proveedor
- Success rate
- 92,9 %Last 30 days · 40.287 calls
- Latency p50
- 3.7 sp95 86 s
- Last verified
- 11 oct 2026Verified working
POSThttps://toolswitch.dev/v1/tools/crawl4ai.instagram.user.postsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
Esta herramienta no tiene parámetros. Consulta la documentación del proveedor ↗ Provider docs
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/crawl4ai.instagram.user.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"username":"nasa"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/crawl4ai.instagram.user.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"username\":\"nasa\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.instagram.user.posts", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"username\":\"nasa\"}")),
});
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 $0.0009/success, incluida la tarifa de servicio.