Facebook post details by post URL
brightdata.x.facebook-posts-by-post-urlFacebook - Posts by post URL
- Price
- $0.0015/resultPelo preço do provedor
- Success rate
- 100%Last 30 days · 25 calls
- Latency p50
- 49 sp95 60 s
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/brightdata.x.facebook-posts-by-post-urlPreview- 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 | |
dataset_id | string | Obrigatório | pinned to the documented 'Facebook - Posts by post URL' dataset | gd_lyclm1571iy3mv57zw |
- Parâmetros de consulta
formatstringOpcionaljson (default) | ndjson | csv
dataset_idstringObrigatóriopinned to the documented 'Facebook - Posts by post URL' dataset
Exemplo:
gd_lyclm1571iy3mv57zw
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X POST 'https://toolswitch.dev/v1/tools/brightdata.x.facebook-posts-by-post-url' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/brightdata.x.facebook-posts-by-post-url",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/brightdata.x.facebook-posts-by-post-url", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
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.