Add metadata to videos
Learn how to use FastPix to add custom key-value metadata to videos for improved organization, search, and management.
Learn how to use FastPix to add custom key-value metadata to videos for improved organization, search, and management.
FastPix improves video organization, search, and workflow automation by letting you attach custom key-value metadata to any on-demand video at upload time or update it later through the API. Include a metadata object in the create-media request body, and FastPix stores and returns your custom video attributes with every asset read, without changing playback behavior.
FastPix does not process metadata internally. The field exists to support your workflows, letting you define how content is categorized, linked, or routed downstream.
metadata is a flat JSON object of string-based key-value pairs that FastPix attaches to a media asset. You define the schema, it can include campaign names, categories, user IDs, or workflows. FastPix stores the object and returns it on every read of the asset for you to use as needed.
A mediaId is the unique identifier FastPix assigns to every uploaded asset. You use the mediaId to read, update, or delete the asset and its metadata.
Example:
Adding metadata lets you:
Without metadata, your video is a file with a URL. With metadata, it is a structured asset you can query and act on.
To keep metadata predictable:
You can attach metadata at upload time through the API or through the FastPix dashboard. Use the API path for programmatic ingestion; use the dashboard for one-off uploads.
Include a metadata object in the upload request body. An accessPolicy of public or private controls whether the resulting playbackId streams openly or requires a signed URL.
You can add metadata to your media during the upload process using the FastPix dashboard.
After uploading your video, the Media Settings panel opens. Under Custom settings, add your metadata as key-value pairs in the JSON configuration. For example:
Configure any other settings as needed, then click Continue.
The Metadata panel displays a preview of your video along with auto-populated fields such as media title, duration, and aspect ratio. Optionally, edit the Media title, Creator ID, or Third party ID. When ready, click Start upload all media.
Send a PATCH request to the media endpoint to replace the metadata object on an existing asset.
Example:
API reference
For parameters, request schema, and response codes, see the Update Media by ID API reference.
Full overwrite only include every key you want to retain. Partial updates are not supported; any key omitted from the request is removed from the asset.
Example use cases
How many key-value pairs can I store in metadata?
FastPix accepts up to 10 key-value pairs per asset. Keys must be strings, and values must be strings or numbers. Nested objects and arrays are rejected.
Can I do a partial update to metadata?
No. The PATCH /on-demand/{mediaId} endpoint replaces the full metadata object. Read the current asset, merge the fields you want to change in your application, then send the complete object back.
Is metadata searchable or indexed by FastPix?
FastPix stores metadata and returns it on every asset read, but does not index it server-side for search. Use your own database or search layer to index metadata values if you need query-time filtering across your library.
Does FastPix use metadata to personalize playback or encoding?
No. FastPix treats metadata as opaque storage — it does not alter transcoding, playbackId behavior, or delivery based on its contents. Personalization and routing logic stay in your application.