D
D
dind2019-02-07 13:46:06
YouTube
dind, 2019-02-07 13:46:06

Is it possible to upload videos to YouTube using api?

There is such a moment, on the site there is a need to upload a video to the post. But due to hosting restrictions, there is no way to upload them to the server. Is it possible to upload a video via API to one YouTube account (for all users) and give a link to it in response?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Satisfied IT, 2019-02-07
@dind

Can

Uploads a video to YouTube and optionally sets the video's metadata. See an example.
This method supports media upload. Uploaded files must conform to these constraints:
Maximum file size: 128GB
Accepted Media MIME types: video/*, application/octet-stream

A
Alams Stoyne, 2019-02-07
@alams_stoyne

Yes, you can
YouTube API
Google API Client Libraries PHP (Beta)
but I would advise using JS because in the case of PHP it turns out that the video is uploaded to the server and only then to YouTube

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question