> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transcriptmagic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn

> Fetch transcripts from public LinkedIn posts containing video.

```http theme={null}
POST https://api.transcriptmagic.com/api/linkedin/transcript
```

Public LinkedIn posts that contain a video are supported. The transcript is returned as plain text with no per-line timing.

## Request

```bash cURL theme={null}
curl -X POST https://api.transcriptmagic.com/api/linkedin/transcript \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/posts/artificial-analysis_some-slug-activity-7465082408409870337-4Pm-"}'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.transcriptmagic.com/api/linkedin/transcript",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"url": "https://www.linkedin.com/posts/artificial-analysis_some-slug-activity-7465082408409870337-4Pm-"},
)

data = response.json()
print(data["transcript"])  # plain string, newline-separated
```

```javascript JavaScript theme={null}
const response = await fetch("https://api.transcriptmagic.com/api/linkedin/transcript", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ url: "https://www.linkedin.com/posts/artificial-analysis_some-slug-activity-7465082408409870337-4Pm-" }),
});

const data = await response.json();
console.log(data.transcript); // plain string, newline-separated
```

```go Go theme={null}
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
)

func main() {
	body, _ := json.Marshal(map[string]string{
		"url": "https://www.linkedin.com/posts/artificial-analysis_some-slug-activity-7465082408409870337-4Pm-",
	})

	req, _ := http.NewRequest("POST",
		"https://api.transcriptmagic.com/api/linkedin/transcript",
		bytes.NewBuffer(body))
	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	req.Header.Set("Content-Type", "application/json")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()

	var data struct {
		Transcript string `json:"transcript"`
	}
	json.NewDecoder(resp.Body).Decode(&data)
	fmt.Println(data.Transcript)
}
```

```php PHP theme={null}
<?php
$ch = curl_init('https://api.transcriptmagic.com/api/linkedin/transcript');

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_KEY',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'url' => 'https://www.linkedin.com/posts/artificial-analysis_some-slug-activity-7465082408409870337-4Pm-',
]));

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
echo $data['transcript'];
```

## Response

```json theme={null}
{
  "transcript": "Hey everyone, today I want to walk\nyou through how we built the new product line...",
  "credits": 994
}
```

`transcript` is a plain string with newlines between spoken lines — there is no per-line timing in the LinkedIn response and no `videoUrls` field. LinkedIn is a transcript-only platform.

## Supported URL formats

| Format | Example |
| - | - |
| Public post with video | `https://www.linkedin.com/posts/{author}_{slug}-activity-{id}-{code}` |

Only public post URLs that contain a video are accepted. Member profile, company page, and article URLs without an embedded video are rejected with `400 Invalid URL`.

## FAQ

> [accordion] Do private or connections-only LinkedIn posts work?
>
> No. Only publicly viewable posts can be transcribed. Posts visible to connections only, or to a restricted audience, can't be fetched because the API can't authenticate as a connection.

> [accordion] Does every LinkedIn post work?
>
> Only posts that contain a video. Text-only posts, image posts, and document/carousel posts have nothing to transcribe and are rejected.

> [accordion] Does the response include timestamps?
>
> No. LinkedIn transcripts are returned as plain text with newlines between lines — there is no per-line timing.

> [accordion] What if the video has no transcript?
>
> If the post's video has no available transcript, you'll get `404 No transcript available` and you won't be charged.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.