GET
/
media
/
meta
curl --request GET \
  --url https://api.ayrshare.com/api/media/meta \
  --header 'Authorization: Bearer <token>'
{
    "codec": "h264",
    "duration": 28.24, // In seconds
    "filename": "https://img.ayrshare.com/random/landscape16.mp4",
    "format": "QuickTime / MOV",
    "height": 1080,
    "size": 16275959, // In bytes
    "type": "video",
    "width": 1920
}
Available on Premium, Business, Enterprise plans.

Retrieve the metadata on a media file URL to check format, dimensions, and other details.

Header Parameters

Authorization
string
required
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Query Parameters

url
string
required

Encoded URI of the externally accessible media file URL.

{
    "codec": "h264",
    "duration": 28.24, // In seconds
    "filename": "https://img.ayrshare.com/random/landscape16.mp4",
    "format": "QuickTime / MOV",
    "height": 1080,
    "size": 16275959, // In bytes
    "type": "video",
    "width": 1920
}