Instagram post details by URL
brightdata.x.instagram-postsInstagram - Posts
- Price
- $0.0015/resultAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 201 calls
- Latency p50
- 5.1 sp95 18 s
- Last verified
- 30 juil. 2026Verified working
POSThttps://toolswitch.dev/v1/tools/brightdata.x.instagram-posts?format=json&dataset_id=gd_lk5ns7kz21pck8jpisPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
same generic runner as brightdata.web.scrape.structured with dataset_id fixed to this dataset (see that entry and brightdata.instagram.user.profile in the core file for the pattern). >1 minute falls back to HTTP 202 + snapshot_id — use brightdata.web.scrape.job.start for anything beyond a handful of URLs. Exact required body fields were not individually re-confirmed per dataset here; verify against the dataset's own quickstart page before high-volume use.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
format | chaîne | Facultatif | json (default) | ndjson | csv | json |
dataset_id | chaîne | Obligatoire | pinned to the documented 'Instagram - Posts' dataset | gd_lk5ns7kz21pck8jpis |
- Paramètres de requête
formatchaîneFacultatifjson (default) | ndjson | csv
Exemple :
jsondataset_idchaîneObligatoirepinned to the documented 'Instagram - Posts' dataset
Exemple :
gd_lk5ns7kz21pck8jpis
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X POST 'https://toolswitch.dev/v1/tools/brightdata.x.instagram-posts?format=json&dataset_id=gd_lk5ns7kz21pck8jpis' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '[{"url":"https://www.instagram.com/p/DbTY2uSG3Oj/"}]'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/brightdata.x.instagram-posts?format=json&dataset_id=gd_lk5ns7kz21pck8jpis",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("[{\"url\":\"https://www.instagram.com/p/DbTY2uSG3Oj/\"}]"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/brightdata.x.instagram-posts?format=json&dataset_id=gd_lk5ns7kz21pck8jpis", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("[{\"url\":\"https://www.instagram.com/p/DbTY2uSG3Oj/\"}]")),
});
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 à $0.0015/result, frais de service inclus.