X (Twitter) profile by URL
brightdata.x.x-profilesX (formerly Twitter) - Profiles
- Price
- $0.0015/resultAl precio del proveedor
- Success rate
- 100 %Last 30 days · 10 calls
- Latency p50
- 3.7 sp95 60 s
- Last verified
- 30 jul 2026Verified working
POSThttps://toolswitch.dev/v1/tools/brightdata.x.x-profiles?format=json&dataset_id=gd_lwxmeb2u1cniijd7t4Preview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
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.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
format | cadena | Opcional | json (default) | ndjson | csv | json |
dataset_id | cadena | Obligatorio | pinned to the documented 'X (formerly Twitter) - Profiles' dataset | gd_lwxmeb2u1cniijd7t4 |
- Parámetros de consulta
formatcadenaOpcionaljson (default) | ndjson | csv
Ejemplo:
jsondataset_idcadenaObligatoriopinned to the documented 'X (formerly Twitter) - Profiles' dataset
Ejemplo:
gd_lwxmeb2u1cniijd7t4
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/brightdata.x.x-profiles?format=json&dataset_id=gd_lwxmeb2u1cniijd7t4' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '[{"url":"https://x.com/X"}]'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/brightdata.x.x-profiles?format=json&dataset_id=gd_lwxmeb2u1cniijd7t4",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("[{\"url\":\"https://x.com/X\"}]"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/brightdata.x.x-profiles?format=json&dataset_id=gd_lwxmeb2u1cniijd7t4", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("[{\"url\":\"https://x.com/X\"}]")),
});
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.0015/result, incluida la tarifa de servicio.