Get a media by ID
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
-
Send a GET request to this endpoint. Use the
<mediaId>you received after uploading the media file. -
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
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