urlstringwymagane
The Facebook post or video URL.
https://api.sandbase.ai/v1/api/facebook/post-transcriptGet the spoken-word transcript of any public Facebook video post by URL as normalized JSON.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
This API returns the spoken-word transcript of a public Facebook video post or reel. It needs one input, the post or video url. The response also includes the video length and the post ID.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/reel/2166091230582141/"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The Facebook post or video URL. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"durationSeconds": 30.067,
"postId": "1393461115481927",
"transcript": "How far is too far? There's only one way to find out."
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the API found the post and returned data. A lookup that finds nothing returns false. |
data.transcript | The spoken words in the video as plain text. |
data.durationSeconds | The video length in seconds, as a decimal number such as 30.067. |
data.postId | The numeric ID of the post. |
url, for example https://www.facebook.com/reel/2166091230582141/.postId in the response can differ from the number in the reel URL, so store the url you sent if you need to match results back to your input.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/post-transcript" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/reel/2166091230582141/"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
urlstringwymaganeThe Facebook post or video URL.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Facebook Post TranscriptTo API Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.00462 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Przewodniki:Best Facebook API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/facebook/post-transcript z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: url (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Facebook Post Transcript działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Facebook.