Get YouTube
const url = 'https://digize.com/api/v1/youtube';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/youtube \ --header 'x-api-key: <x-api-key>'The YouTube channel library videos go up to, each video’s trip there, and the limits on uploads: today’s count for the platform and whether Google still locks uploads to private.
Needs the ads:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
The Google account YouTube was connected with.
object
The creative library video’s id.
Queued waits for the day’s uploads; uploading and processing are on their way; ready can run in Google’s video ads.
YouTube’s id, once it has the file.
YouTube kept it private though Digize asked for unlisted, until Google audits Digize’s YouTube access. Ads can’t use it.
object
Uploads come back locked to private: Google hasn’t finished its audit of Digize’s YouTube access.
Uploads started today, for every workspace.
When YouTube’s next day starts (midnight Pacific time).
Example
{ "videos": [ { "state": "queued", "privacy": "public" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}