LinkedIn post video transcript API
The transcript of a post's video when LinkedIn shows one publicly; otherwise AI transcription of the video's audio.
- Cost
- 1 creditAI transcription is billed by the started minute after 2
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/linkedin/post/transcript" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.linkedin.com/feed/update/urn:li:activity:7520503284458147840'import os
import requests
params = {
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7520503284458147840",
}
res = requests.get(
"https://api.socialscrape.io/v1/linkedin/post/transcript",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/linkedin/post/transcript");
url.search = new URLSearchParams({
url: "https://www.linkedin.com/feed/update/urn:li:activity:7520503284458147840",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape LinkedIn post video transcript",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/linkedin/post/transcript",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.linkedin.com/feed/update/urn:li:activity:7520503284458147840"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Post URL (linkedin.com/posts/...). |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_6910d396e73caad5b83c65d1",
"data": {
"object": "transcript",
"platform": "linkedin",
"video_id": "7520503284458147840",
"url": "https://www.linkedin.com/posts/microsoft_activity-7520503284458147840-j1lE",
"language": "en",
"source": "auto_captions",
"duration_seconds": 112,
"text": "Everywhere I go I don't find people saying oh can you please make an AI model more powerful? They ask what can it do for me? What can it do for my company, f...",
"segments": [
{
"start": 0.13,
"end": 3.158,
"text": "Everywhere I go I don't find people saying oh can you"
},
{
"start": 3.158,
"end": 6.02,
"text": "please make an AI model more powerful?"
},
{
"start": 6.02,
"end": 9.886,
"text": "They ask what can it do for me? What can it do for my"
}
],
"available_languages": null,
"extra": {
"captions_format": "srt"
}
},
"cursor": null,
"has_more": null
}Fields
One Transcript in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "transcript" | ||
platform | Platform | yes | |
video_id | string or null | ||
url | string or null | ||
language | string or null | BCP 47, "en" | |
source | "captions" or "auto_captions" or "ai" | yes | |
duration_seconds | number or null | ||
text | string | yes | |
segments | TranscriptSegment[] or null | ||
available_languages | string[] or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry), transcript_unavailable (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.linkedin.post_transcript(...) and the TypeScript client client.linkedin.postTranscript(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.