Extract Video Metadata API

Extract Video Metadata API provides detailed information about the audio, video and associated files, including codecs, duration, resolution, and technical characteristics of the media content.

About the API:  

The Extract Video Metadata API provides detailed information about media files, focusing on audio, video and file details. It organizes metadata into clear categories, providing valuable insights into the content and technical specifications of video files.

Includes information about the audio codec, such as type (e.g., AAC) and channel layout (such as 5.1). Provides details about the audio format, sampling rate, bit depth and average bit rate, as well as timing accuracy for synchronization and playback.

Provides details about the characteristics of the video file, including name, type, size and permissions, along with creation, modification and access timestamps. It may also include information about the encoder and file format, such as MP4, providing additional context about how the file is managed and processed.

Provides information about the video codec (e.g., H.264) and technical aspects such as average frame rate and chroma bin. Includes details about the resolution, size and aspect ratio of the video, as well as additional information such as field order and whether the video uses B-frames.

The API is crucial for assessing quality, verifying compatibility, and managing multimedia content. It facilitates efficient management and optimization of media assets, supporting content creators, developers and media managers in making informed decisions and effective media management.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Verify Video Quality: Confirm that a video has the proper resolution and bit rate.

    Organize Files: Sort videos by format or size in a media library.

    Enhance Streaming: Adjust streaming quality based on video resolution.

    Adjust Playback: Configure the player to adapt to the size and format of the video.

    Plan Conversions: Select the appropriate format to convert videos based on their codec.

 

Are there any limitations to your plans?

Besides the number of API calls per month, there are no other limitations. 

API Documentation

Endpoints


To use this endpoint, you must enter the URL of a video.



                                                                            
POST https://zylalabs.com/api/4799/extract+video+metadata+api/6001/get+metadata
                                                                            
                                                                        

Get Metadata - Endpoint Features

Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
    "audio": {
        "codec_information": {
            "channel_layout": "stereo",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "codec_name": "aac",
            "codec_tag": "0x6134706d",
            "codec_tag_string": "mp4a",
            "codec_type": "audio"
        },
        "general_audio": {
            "audio_bits_per_sample": 16,
            "audio_channels": 2,
            "audio_format": "mp4a",
            "audio_sample_rate": 44100,
            "average_bitrate": null,
            "avg_bitrate": "495 kbps",
            "balance": 0,
            "bit_depth": 24,
            "buffer_size": null
        },
        "time_base": {
            "time_base": "1/44100"
        }
    },
    "file": {
        "file_information": {
            "encoder": "Google",
            "file_access_date": "2024:07:30 20:32:59+00:00",
            "file_inode_change_date": "2024:07:30 20:32:59+00:00",
            "file_modify_date": "2024:07:30 20:32:59+00:00",
            "file_name": "https://r2---sn-uxaxjvh5gbxoupo5-x1xll.googlevideo.com/videoplayback?expire=1722393097\u0026ei=qU2pZqq3GISxsfIP_77I2A0\u0026ip=209.141.44.95\u0026id=o-ANcW4WSTDi3WdXtIMpftZGSuSwb_PQniaoG2OMIDttQu\u0026itag=18\u0026source=youtube\u0026requiressl=yes\u0026xpc=EgVo2aDSNQ%3D%3D\u0026siu=1\u0026bui=AXc671JTI-fptCpCJSqMahFtKAN2ewQYnZp9Ja-qs6uJy2huruDe-1JVUcrEAXQCWFt9bNe8wA\u0026vprv=1\u0026svpuc=1\u0026mime=video%2Fmp4\u0026ns=SK1rwCAzJo5CLWMDao95cKcQ\u0026rqh=1\u0026cnr=14\u0026ratebypass=yes\u0026dur=234.219\u0026lmt=1717050004024013\u0026c=WEB\u0026sefc=1\u0026txp=4538434\u0026n=AokHN92eAw1YYw\u0026sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Csiu%2Cbui%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt\u0026sig=AJfQdSswRQIhANXOEyDS5fy_jn127uSgzeru7eewcyhmR0KlGczgInJEAiAOnsW-xYqPHzTJGLFb3iUwbWp6zoowkMroFTaHSJXlhg%3D%3D\u0026range=0-\u0026cms_redirect=yes\u0026mh=jO\u0026mip=200.127.43.239\u0026mm=31\u0026mn=sn-uxaxjvh5gbxoupo5-x1xll\u0026ms=au\u0026mt=1722371117\u0026mv=m\u0026mvi=2\u0026pl=24\u0026lsparams=mh,mip,mm,mn,ms,mv,mvi,pl\u0026lsig=AGtxev0wRQIgEwv0ekIWR81B3pOBy_GJ_zFnjwLenn_2lpqUbDeOYwICIQCCq6ydv5D2Pv9kBBdampuakYuLbEHzKPnpIUZdCPubLw%3D%3D",
            "file_permissions": "-rw-r--r--",
            "file_size": "15 MB",
            "file_type": "MP4",
            "file_type_extension": "mp4",
            "graphics_mode": "srcCopy",
            "handler_description": "ISO Media file produced by Google Inc. Created on: 05/29/2024.",
            "handler_type": "Metadata",
            "handler_vendor_id": "Apple"
        },
        "media_information": {
            "matrix_coefficients": null,
            "matrix_structure": "1 0 0 0 1 0 0 0 1",
            "max_bitrate": null,
            "media_create_date": "2024:05:30 04:41:25",
            "media_data_offset": 106293,
            "media_data_size": 14494237,
            "media_header_version": 0,
            "media_language_code": "und",
            "media_modify_date": "2024:05:30 04:41:25",
            "media_time_scale": 44100,
            "megapixels": 0.23,
            "minor_version": "0.0.0",
            "movie_header_version": 0,
            "next_track_id": 3,
            "pixel_aspect_ratio": null,
            "poster_time": "0 s",
            "preferred_rate": 1,
            "preferred_volume": "100.00%",
            "preview_duration": "0 s",
            "preview_time": "0 s",
            "rotation": 0,
            "time_scale": 24000,
            "track_header_version": 0,
            "track_id": 1,
            "track_layer": 0,
            "track_modify_date": "2024:05:30 04:41:25",
            "track_volume": "0.00%",
            "transfer_characteristics": null
        }
    },
    "video": {
        "additional_video_features": {
            "attached_pic": 0,
            "captions": 0,
            "clean_effects": 0,
            "comment": 0,
            "default": 1,
            "dependent": 0,
            "descriptions": 0,
            "dub": 0,
            "forced": 0,
            "hearing_impaired": 0,
            "karaoke": 0,
            "lyrics": 0,
            "metadata": 0
        },
        "codec_information": {
            "avg_frame_rate": "24000/1001",
            "bits_per_sample": null,
            "chroma_location": "left",
            "closed_captions": 0,
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "codec_name": "h264",
            "codec_tag": "0x31637661",
            "codec_tag_string": "avc1",
            "codec_type": "video",
            "compatible_brands": [
                "isom",
                "mp42"
            ],
            "major_brand": "MP4 v2 [ISO 14496-14]",
            "mime_type": "video/mp4",
            "minor_version": "0"
        },
        "color_information": {
            "color_primaries": "bt709",
            "color_range": "tv",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "display_aspect_ratio": "16:9",
            "opcolor": "0 0 0"
        },
        "duration_and_timing": {
            "create_date": "2024:05:30 04:41:25",
            "current_time": "0 s",
            "duration": "234.150583",
            "selection_duration": "0 s",
            "selection_time": "0 s",
            "start_time": "0.000000",
            "track_create_date": "2024:05:30 04:41:25",
            "track_duration": "0:03:54"
        },
        "language_and_handler": {
            "handler_name": "ISO Media file produced by Google Inc. Created on: 05/29/2024.",
            "language": "und",
            "vendor_id": "[0][0][0][0]"
        },
        "resolution_and_size": {
            "coded_height": 360,
            "coded_width": 640,
            "height": 360,
            "size": "640x360",
            "width": 640
        },
        "technical_video_details": {
            "field_order": "progressive",
            "film_grain": 0,
            "has_b_frames": 1,
            "is_avc": "true",
            "level": 30,
            "nal_length_size": "4",
            "nb_frames": "5614",
            "pix_fmt": "yuv420p",
            "refs": 1
        },
        "time_base": {
            "time_base": "1/24000"
        },
        "video_information": {
            "bit_rate": "498842",
            "format_long_name": "QuickTime / MOV",
            "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
            "nb_programs": 0,
            "nb_streams": 2,
            "probe_score": 100
        }
    }
}
                                                                                                                                                                                                                    
                                                                                                    

Get Metadata - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/4799/extract+video+metadata+api/6001/get+metadata' --header 'Authorization: Bearer YOUR_API_KEY' 
--data-raw '{
    "video_url":"https://r2---sn-uxaxjvh5gbxoupo5-x1xll.googlevideo.com/videoplayback?expire=1722393097&ei=qU2pZqq3GISxsfIP_77I2A0&ip=209.141.44.95&id=o-ANcW4WSTDi3WdXtIMpftZGSuSwb_PQniaoG2OMIDttQu&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&siu=1&bui=AXc671JTI-fptCpCJSqMahFtKAN2ewQYnZp9Ja-qs6uJy2huruDe-1JVUcrEAXQCWFt9bNe8wA&vprv=1&svpuc=1&mime=video%2Fmp4&ns=SK1rwCAzJo5CLWMDao95cKcQ&rqh=1&cnr=14&ratebypass=yes&dur=234.219&lmt=1717050004024013&c=WEB&sefc=1&txp=4538434&n=AokHN92eAw1YYw&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Csiu%2Cbui%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIhANXOEyDS5fy_jn127uSgzeru7eewcyhmR0KlGczgInJEAiAOnsW-xYqPHzTJGLFb3iUwbWp6zoowkMroFTaHSJXlhg%3D%3D&range=0-&cms_redirect=yes&mh=jO&mip=200.127.43.239&mm=31&mn=sn-uxaxjvh5gbxoupo5-x1xll&ms=au&mt=1722371117&mv=m&mvi=2&pl=24&lsparams=mh,mip,mm,mn,ms,mv,mvi,pl&lsig=AGtxev0wRQIgEwv0ekIWR81B3pOBy_GJ_zFnjwLenn_2lpqUbDeOYwICIQCCq6ydv5D2Pv9kBBdampuakYuLbEHzKPnpIUZdCPubLw%3D%3D"
}'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Extract Video Metadata API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

To use this API, users must indicate the URL of an audio file.

There are different plans to suit all tastes, including a free trial for a small number of requests, but your rate is limited to avoid abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

The Extract Video Metadata API provides detailed information about audio, video and files, including codecs, resolutions, bit rates, and technical characteristics, facilitating the management, optimization and analysis of multimedia files.

The Extract Video Metadata API provides detailed information about media files.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
4,108ms

Category:


Related APIs