Post Transcript
A post's video's captions as text, with timings.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe post's link (https://www.linkedin.com/posts/…, or a /feed/update/urn:li:… one).
id?stringThe post's id: its activity's number (7531543853288456193), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A video's captions as text.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.linkedin.postTranscript({ id: "7529230174937169921" });Example Response
{ "data": { "postId": "7529230174937169921", "language": "en", "generated": true, "text": "Innovation is always good when it is making my life easier,\nbut should not substitute my judgment, should not\nsubstitute my reason, should not substitute my intelligence,\nwhich is not artificial but is human. That's Cardinal Fabio\nBaggio. As a lifelong missionary, he spent decades working\nalongside migrants and refugees, and he became one of Pope\nFrancis's closest collaborators. That same concern…", "cues": [ { "startSeconds": 0.06, "endSeconds": 4.258, "text": "Innovation is always good when it is making my life easier," }, { "startSeconds": 4.258, "endSeconds": 7.757, "text": "but should not substitute my judgment, should not" }, { "startSeconds": 7.757, "endSeconds": 11.956, "text": "substitute my reason, should not substitute my intelligence," } ] }}