X (Twitter) profile by URL
brightdata.x.x-profilesX (formerly Twitter) - Profiles
- Price
- $0.0015/resultPelo preço do provedor
- Success rate
- 100%Last 30 days · 10 calls
- Latency p50
- 3.7 sp95 60 s
- Last verified
- 30 de jul. de 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
format | string | Opcional | json (default) | ndjson | csv | json |
dataset_id | string | Obrigatório | pinned to the documented 'X (formerly Twitter) - Profiles' dataset | gd_lwxmeb2u1cniijd7t4 |
- Parâmetros de consulta
formatstringOpcionaljson (default) | ndjson | csv
Exemplo:
jsondataset_idstringObrigatóriopinned to the documented 'X (formerly Twitter) - Profiles' dataset
Exemplo:
gd_lwxmeb2u1cniijd7t4
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.0015/result, incluindo a taxa de serviço.