0 is the top result. For use cases, pricing context, and copy-paste examples, see the Perplexity media API page on the product site.

Videos in Perplexity
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
The AI Assistant is here to help — ask it anything instead of browsing through the pages.
Schema for videos and images returned by the Perplexity endpoint when media is relevant to the query, including thumbnails, source URLs, and captions.
0 is the top result. For use cases, pricing context, and copy-paste examples, see the Perplexity media API page on the product site.

Videos in Perplexity
{
"prompt": "how to change a bicycle tire",
"country": "US"
}
| Field | Type | Description |
|---|---|---|
result.videos | array | Video content found in response |
result.images | array | Image content found in response |
| Field | Type | Description |
|---|---|---|
title | string | Media title |
url | string | Media URL |
thumbnail | string | Thumbnail URL |
medium | string | Media type (“video”, “image”) |
source | string | Source platform (“youtube”, “stock_photo”, etc.) |
image_width | number | Original image width |
image_height | number | Original image height |
thumbnail_width | number | Thumbnail width |
thumbnail_height | number | Thumbnail height |
{
"success": true,
"result": {
"text": "Changing a bicycle tire is straightforward once you know the steps...",
"videos": [
{
"title": "How to Change a Bike Tire",
"url": "https://www.youtube.com/watch?v=example",
"thumbnail": "https://i.ytimg.com/vi/example/hqdefault.jpg",
"medium": "video",
"source": "youtube",
"thumbnail_width": 480,
"thumbnail_height": 360
}
],
"images": [
{
"title": "Bicycle tire replacement",
"url": "https://example.com/tire.jpg",
"thumbnail": "https://example.com/tire-thumb.jpg",
"medium": "image",
"source": "stock_photo",
"image_width": 1920,
"image_height": 1080,
"thumbnail_width": 320,
"thumbnail_height": 180
}
]
}
}
Was this page helpful?