Python Integration

Python LinkedIn Video API

The easiest way to publish professional LinkedIn video posts with Python. Scale your content distribution with a single API call.

Personal & Company pages
Custom commentary
Public / connections-only
Scheduled publishing
example.py
import requests

url = "https://api.xenonflare.com/media/videos"
payload = {
    "video_url": "https://cdn.xenonflare.com/v/video.mp4",
    "platforms": ["linkedin"],
    "linkedin": {
        "visibility": "PUBLIC",
        "commentary": "Excited to share this! #b2b #tech"
    }
}
headers = {"X-API-Key": "YOUR_KEY"}
response = requests.post(url, json=payload, headers=headers)

Common Questions

Can I post to a Company Page?

Yes, you can post to both personal profiles and company pages by specifying the account URN.

What video length does LinkedIn support?

LinkedIn supports videos from 3 seconds up to 10 minutes. XenonFlare validates this automatically.