Skip to content

Get YouTube

GET
/api/v1/youtube
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.

Done

Media typeapplication/json
object
connected
required
boolean
account
required

The Google account YouTube was connected with.

string | null
channel
required
Any of:
object
id
required
string
title
required
string
handle
required
string | null
thumbnail
required
string | null
chosenBy
required
string | null
chosenAt
required
Any of:
string format: date-time
videos
required
Array<object>
object
assetId
required

The creative library video’s id.

string
name
required
string
state
required

Queued waits for the day’s uploads; uploading and processing are on their way; ready can run in Google’s video ads.

string
Allowed values: queued uploading processing ready failed
videoId
required

YouTube’s id, once it has the file.

string | null
privacy
required
Any of:
string
Allowed values: public unlisted private
locked
required

YouTube kept it private though Digize asked for unlisted, until Google audits Digize’s YouTube access. Ads can’t use it.

boolean
channelTitle
required
string | null
bytes
required
number
bytesSent
required
number
queuedUntil
required
Any of:
string format: date-time
error
required
string | null
running
required
boolean
requestedBy
required
string
requestedAt
required
string format: date-time
uploadedAt
required
Any of:
string format: date-time
readyAt
required
Any of:
string format: date-time
limits
required
object
locked
required

Uploads come back locked to private: Google hasn’t finished its audit of Digize’s YouTube access.

boolean
used
required

Uploads started today, for every workspace.

number
limit
required
number
resetAt
required

When YouTube’s next day starts (midnight Pacific time).

string format: date-time

Example

{
"videos": [
{
"state": "queued",
"privacy": "public"
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}