Home » API Reference » Inputs » Get Input Details

permalink Get Input Details

GET https://app.zencoder.com/api/v2/inputs/1234.json?api_key=asdf1234

GET https://app.zencoder.com/api/v2/inputs/1234.xml?api_key=asdf1234

GET https://app.zencoder.com/api/v2/inputs/1234.js?api_key=asdf1234&callback=asdf


API Version

Available in API version 2 or greater


Required

Optional


More Information

Response will look like:

    {
      "audio_bitrate_in_kbps": 96,
      "audio_codec": "aac",
      "audio_sample_rate": 48000,
      "channels": "2",
      "duration_in_ms": 24892,
      "file_size_in_bytes": 1862748,
      "format": "mpeg4",
      "frame_rate": 29.98,
      "height": 352,
      "id": 6816,
      "job_id": 6816,
      "privacy": false,
      "state": "finished",
      "total_bitrate_in_kbps": 594,
      "url": "s3://example/file.mp4",
      "video_bitrate_in_kbps": 498,
      "video_codec": "h264",
      "width": 624,
      "md5_checksum": "7f106918e02a69466afa0ee014174143"
    }
  
    
      96
      aac
      48000
      2
      24892
      1862748
      mpeg4
      29.98
      352
      6816
      6816
      false
      finished
      594
      s3://example/file.mp4
      498
      h264
      624
      7f106918e02a69466afa0ee014174143
    
  

If you're getting a 404 Not Found response, make sure that you're using the input ID, not the job or output ID, and make sure your API key is correct. A 404 means that we didn't find an input file with the specified ID for the account linked to the provided API key.

JSONP Requests

For AJAX and other public requests, Read Only API Keys can access this information using JSONP by requesting the URL with a .js extension. The response will use the input callback unless one is specified using the callback in the querystring.

    input(
      {
        "audio_bitrate_in_kbps": 96,
        "audio_codec": "aac",
        "audio_sample_rate": 48000,
        "channels": "2",
        "duration_in_ms": 24892,
        "file_size_in_bytes": 1862748,
        "format": "mpeg4",
        "frame_rate": 29.98,
        "height": 352,
        "id": 6816,
        "job_id": 6816,
        "privacy": false,
        "state": "finished",
        "total_bitrate_in_kbps": 594,
        "url": "s3://example/file.mp4",
        "video_bitrate_in_kbps": 498,
        "video_codec": "h264",
        "width": 624
      }
    )