For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • ACTIVATE ACCOUNT
    • Create account
  • PRODUCT OS API
    • Overview
  • ERROR CODES
    • Error codes
  • VIDEO ON DEMAND API
    • Overview
      • GETGet list of all media
      • GETGet all clips of a live stream
      • GETGet a media by ID
      • DELDelete a media by ID
      • PATCHUpdate a media by ID
      • POSTAdd audio / subtitle track
      • PUTCancel ongoing upload
      • DELDelete audio / subtitle track
      • PATCHUpdate audio / subtitle track
      • POSTGenerate track subtitle
      • GETGet the summary of a video
      • PATCHUpdate the source access of a media by ID
      • PATCHUpdate the mp4Support of a media by ID
      • GETGet info of media inputs
      • GETGet all unused upload URLs
      • GETGet all clips of a media
  • LIVE STREAM API
    • Overview
  • VIDEO DATA API
    • Overview
LogoLogo
StatusSupportDiscussionsLog inSign Up
VIDEO ON DEMAND APIManage videos

Get a media by ID

GET
https://api.fastpix.com/v1/on-demand/:mediaId
GET
/v1/on-demand/:mediaId
$curl https://api.fastpix.com/v1/on-demand/4fa85f64-5717-4562-b3fc-2c963f66afa6 \
> -u "<username>:<password>"
200Retrieved
1{
2 "success": true,
3 "data": {
4 "thumbnail": "https://images.fastpix.com/837f028b-dcaf-4c23-b368-3748641f74ac/thumbnail.png",
5 "id": "cfeec1a3-6cbd-40df-a425-2ed7f8f72ced",
6 "workspaceId": "6dc2b4e0-0615-42fd-a580-1f4aad932dfe",
7 "metadata": {
8 "key1": "value1"
9 },
10 "mediaQuality": "standard",
11 "maxResolution": "1080p",
12 "sourceResolution": "1080p",
13 "status": "Ready",
14 "mp4Support": "capped_4k",
15 "sourceAccess": false,
16 "playbackIds": [
17 {
18 "id": "837f028b-dcaf-4c23-b368-3748641f74ac",
19 "accessPolicy": "public",
20 "accessRestrictions": {
21 "domains": {
22 "defaultPolicy": "allow",
23 "allow": [],
24 "deny": []
25 },
26 "userAgents": {
27 "defaultPolicy": "allow",
28 "allow": [],
29 "deny": []
30 }
31 }
32 }
33 ],
34 "tracks": [
35 {
36 "id": "f301a2a1-b40d-40fa-b419-4d0cd92a62f8",
37 "type": "video",
38 "width": 1920,
39 "height": 1080,
40 "frameRate": "30/1",
41 "status": "available"
42 }
43 ],
44 "isAudioOnly": false,
45 "subtitleAvailable": true,
46 "duration": "00:00:10",
47 "aspectRatio": "16:9",
48 "createdAt": "2025-01-09T06:44:44.617138Z",
49 "updatedAt": "2025-01-09T06:44:53.742648Z"
50 }
51}
By calling this endpoint, you can retrieve detailed information about a specific media item, including its current `status` and a `playbackId`. This is particularly useful for retrieving specific media details when managing large content libraries. #### How it works 1. Send a GET request to this endpoint. Use the `<mediaId>` you received after uploading the media file. 2. The response includes details about the media: - **status** – Indicates whether the media is still *Processing* or has transitioned to *Ready*. - **playbackId** – A unique identifier that allows you to stream the media once it is *Ready*. You can construct the stream URL as follows: `https://stream.fastpix.com/<playbackId>.m3u8` #### Example If your platform provides users with a dashboard to manage uploaded content, a user might want to check whether a video has finished processing and is ready for playback. You can use the media ID to retrieve the information from FastPix and display it in the user’s dashboard.
Was this page helpful?
Previous

Delete a media by ID

Next
Built with

By calling this endpoint, you can retrieve detailed information about a specific media item, including its current status and a playbackId. This is particularly useful for retrieving specific media details when managing large content libraries.

How it works

  1. Send a GET request to this endpoint. Use the <mediaId> you received after uploading the media file.

  2. The response includes details about the media:

    • status – Indicates whether the media is still Processing or has transitioned to Ready.
    • playbackId – A unique identifier that allows you to stream the media once it is Ready.
      You can construct the stream URL as follows:
      https://stream.fastpix.com/<playbackId>.m3u8

Example

If your platform provides users with a dashboard to manage uploaded content, a user might want to check whether a video has finished processing and is ready for playback. You can use the media ID to retrieve the information from FastPix and display it in the user’s dashboard.

Authentication

AuthorizationBasic

FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.

  • Username: Access Token ID
  • Password: Secret Key

Activate your FastPix account to generate your API credentials. See the guide here

Path parameters

mediaIdstringRequiredformat: "uuid"
The unique identifier assigned to the media when created. The value must be a valid UUID.

Response

Get a video media by id
successboolean
Demonstrates whether the request is successful or not.
dataobject