Skip to Content

Post Transcript

A post's video's captions as text, with timings.

GET
/v1/linkedin/post/transcript

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The post's link (https://www.linkedin.com/posts/…, or a /feed/update/urn:li:… one).

id?string

The post's id: its activity's number (7531543853288456193), instead of url.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

A video's captions as text.

Example Request
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,"      }    ]  }}