Get information about a specific File

GET /files/ID

Authorization Header

  • Bearer token: OAuth 2.0 API access token. 

Parameters

  • format : json or xml. This will override Request Accept header.
  • human : true or false, Causes the response to be in a structured, more human-readable form. Useful when calling the API through curl or a browser.

Example

GET /files/ID
curl -X GET -H "Authorization: Bearer um9VmyJKTPGFqpkL_THjGE5rkXqfURDYqQ8MTBVidG3PtwkfABIdx6s_z9WlFl4_j" "https://api.xvid.com/v1/files/559663a7a3bdaa55024c53f7?human=true&show_null=true&limit=2&start=0&type=file"
{
	file: {
		storage: "intern",
		title: "Intro",
		name: "Intro.mp4",
		type: "file",
		subtype: "video",
		job: {
			id: "559663a714eaf3a5905aea17",
			href: "https://api.xvid.com/v1/jobs/559663a714eaf3a5905aea17"
		},
		autograph: true,
		container: "ISO MP4/M4A",
		mime_type: "video/quicktime, variant=(string)iso",
		md5_checksum: "e59c2d39394b5a7cfa585713c517aec6",
		size: 8094037,
		size_on_disk: 64752296,
		application: {
			id: "552cae3514ea10cb4d3ac69e",
			href: "https://api.xvid.com/v1/applications/552cae3514ea10cb4d3ac69e"
		},
		duration: 24576,
		pipeline: {
			id: "552b87a814eab3a29d1b3d90",
			href: "https://api.xvid.com/v1/pipelines/552b87a814eab3a29d1b3d90"
		},
		finished_at: 1435920565774,
		expires_at: null,
		elements: null,
		video_tracks: [{
			video_codec: "H.264 / AVC",
			video_bitrate: 2503,
			width: 1280,
			height: 720,
			framerate: 23.98,
			aspect_ratio: "1:1",
			video_duration: 24576,
 			orientation: "rotate-90"
		}],
		audio_tracks: [{
			audio_codec: "MPEG-4 AAC",
			audio_bitrate: 133,
			audio_width: 16,
			samplingrate: 48000,
			nb_channels: 2,
			audio_duration: 24576
		}],
		subtitle_tracks: null,
		description: null,
		parents: [{
			id: "559663a7a3bdaa55024c53f3",
			type: "folder",
			is_root: false
		}],
		user_data: null,
		uri: "https://api.xvid.com/v1/files/downloads/?file_id=559663a7a3bdaa55024c53f7",
		version: 1,
		user: {
			id: "552b874d14eab3a29d1b3d8d",
			href: "https://api.xvid.com/v1/users/552b874d14eab3a29d1b3d8d"
		},
		created_at: 1435919271681,
		updated_at: 1435920565774,
		id: "559663a7a3bdaa55024c53f7",
		href: "https://api.xvid.com/v1/files/559663a7a3bdaa55024c53f7"
	}
}

 

  • No labels