{"__v":1,"_id":"56941291d8c04d1700e5adc2","category":{"__v":12,"_id":"564df3217c8f372b00b934df","pages":["564e01de8980c32b009e8bca","564e031f5eab6e0d0069ca38","564e057a873c362d005172b2","564e05a15eab6e0d0069ca40","564e07b01494cc2b00acb618","56941291d8c04d1700e5adc2","5696aca1cb14e11700f8aa01","56d46a4f73dcd20b00fb8647","56d46a5b8001e30b00896ebb","56f00bd1d58ed32400df6092","56f01568d58ed32400df60c1","56f0194911415c2900969c10"],"project":"564de2dbfe07a81700b5c3a5","version":"564de2dbfe07a81700b5c3a8","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-19T16:04:49.459Z","from_sync":false,"order":0,"slug":"api","title":"API"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"564de2dbfe07a81700b5c3a5","user":"568c2f46e111c70d002d84b6","version":{"__v":8,"_id":"564de2dbfe07a81700b5c3a8","project":"564de2dbfe07a81700b5c3a5","createdAt":"2015-11-19T14:55:23.838Z","releaseDate":"2015-11-19T14:55:23.837Z","categories":["564de2ddfe07a81700b5c3a9","564df317826645210097a890","564df3217c8f372b00b934df","564e5227c3553e0d003e53ba","5666dac5d784a70d00397bcb","56cd08ddd98d851d00c0c3bd","56e9a50946bfd60e008840a7","5718e37bf8f7de1900683fad"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-11T20:37:37.880Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl 'https://upload.embed.ly/1/video?key=YOUR_API_KEY' -F video_file=:::at:::upload.mp4 -v","language":"curl"},{"code":"import requests\n\n# Create the query\nquery = {\"key\": \"YOUR_API_KEY\"}\n\n# Open the video file\nfiles = {'video_file': open('example_vid.mp4','rb')}\n\n# Make the call.\nr = requests.post('https://upload.embed.ly/1/video', params = query, files = files)\n\n# print the json result.\nprint r.json()","language":"python"}]},"results":{"codes":[{"status":200,"language":"json","code":"{\"url\": \"http://v.embedly.com/1234\",\n \"video_id\": \"1234\",\n \"html\": \"<iframe width=\\\"600\\\" height=\\\"400\\\" scrolling=\\\"no\\\"\n         src=\\\"//cdn.embedly.com/widgets/media.html\n         ?url=http%%3A%2F%2Fv.embedly.com%2F1234&key=xxx&\n         type=text/html&schema=embio\\\"></iframe>\", \"error\": false}","name":""},{"status":400,"language":"json","code":"{\"message\": \"Your API Key:YOUR_API_KEY does not have access to Video Upload.\n             Please contact support@embed.ly\", \"error\": true}","name":""}]},"settings":"569412f63e9d080d00f064fe","auth":"required","params":[{"_id":"569419f646b943190027fdef","ref":"","in":"body","required":true,"desc":"The video file you are uploading.","default":"","type":"string","name":"video_file"}],"url":"/1/video"},"isReference":true,"order":6,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response Attributes\"\n}\n[/block]\n``video_id`` (required)\n    The unique id of the video that is uploaded.\n\n``html`` (required)\n    The HTML to embed the video in your site or app.\n    \n``url`` (required)\n    The url of the video share page.\n   \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Try it out!\"\n}\n[/block]\nYou can try out the video API for free by signing up for an account and activating the tool.  See a tutorial and demo of [the API here](video-upload-button).\n[block:embed]\n{\n  \"html\": \"<iframe class=\\\"embedly-embed\\\" src=\\\"//cdn.embedly.com/widgets/media.html?src=%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Furl%3Dhttp%253A%252F%252Fv.embedly.com%252FIaJcsEMI%26key%3D64e916cf211846cc92c04e787ee81fe4%26type%3Dtext%2Fhtml%26schema%3Dembio&url=http%3A%2F%2Fv.embedly.com%2FIaJcsEMI&image=http%3A%2F%2Fv.embedly.com%2Fproduction%2FIaJcsEMI%2Fthumbnails%2Fthumbnail_5.png&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=embedly\\\" width=\\\"640\\\" height=\\\"360\\\" scrolling=\\\"no\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\",\n  \"url\": \"http://v.embedly.com/IaJcsEMI\",\n  \"title\": null,\n  \"favicon\": \"http://v.embedly.com/static/images/favicon.ico\",\n  \"image\": \"http://v.embedly.com/production/IaJcsEMI/thumbnails/thumbnail_5.png\"\n}\n[/block]","excerpt":"Video is a quick and scalable way to have your own video service for uploading and playing videos on your site.","slug":"video","type":"post","title":"/1/video"}

post/1/video

Video is a quick and scalable way to have your own video service for uploading and playing videos on your site.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

video_file:
required
string
The video file you are uploading.

Examples


Result Format


Documentation

[block:api-header] { "type": "basic", "title": "Response Attributes" } [/block] ``video_id`` (required) The unique id of the video that is uploaded. ``html`` (required) The HTML to embed the video in your site or app. ``url`` (required) The url of the video share page. [block:api-header] { "type": "basic", "title": "Try it out!" } [/block] You can try out the video API for free by signing up for an account and activating the tool. See a tutorial and demo of [the API here](video-upload-button). [block:embed] { "html": "<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Furl%3Dhttp%253A%252F%252Fv.embedly.com%252FIaJcsEMI%26key%3D64e916cf211846cc92c04e787ee81fe4%26type%3Dtext%2Fhtml%26schema%3Dembio&url=http%3A%2F%2Fv.embedly.com%2FIaJcsEMI&image=http%3A%2F%2Fv.embedly.com%2Fproduction%2FIaJcsEMI%2Fthumbnails%2Fthumbnail_5.png&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=embedly\" width=\"640\" height=\"360\" scrolling=\"no\" frameborder=\"0\" allowfullscreen></iframe>", "url": "http://v.embedly.com/IaJcsEMI", "title": null, "favicon": "http://v.embedly.com/static/images/favicon.ico", "image": "http://v.embedly.com/production/IaJcsEMI/thumbnails/thumbnail_5.png" } [/block]