Batch video engagement deltas
curl --request POST \
--url https://api.creatoraudit.com/v2/videos/deltas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"windows": [
1,
7,
14,
30
]
}
'import requests
url = "https://api.creatoraudit.com/v2/videos/deltas"
payload = {
"video_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"windows": [1, 7, 14, 30]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'], windows: [1, 7, 14, 30]})
};
fetch('https://api.creatoraudit.com/v2/videos/deltas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}Videos
Batch video engagement deltas
View-count deltas for many videos over several look-back windows.
For each requested video, returns the view-count change over each
windows entry (e.g. views gained in the last 1/7/14/30 days), keyed as
"<n>d". Read-only and side-effect-free. Video ids your organization
does not track are omitted from data and listed under
meta.not_found (so a zero delta is never confused with a foreign id).
Response shape:
{ "data": { "<video_id>": { "1d": 1234, "7d": 5678, "30d": 9012 } },
"meta": { "windows": [1, 7, 14, 30], "video_count": <n>,
"not_found": ["<unknown_video_id>"] } }
Uses POST so large video_ids batches travel in the body.
POST
/
videos
/
deltas
Batch video engagement deltas
curl --request POST \
--url https://api.creatoraudit.com/v2/videos/deltas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"windows": [
1,
7,
14,
30
]
}
'import requests
url = "https://api.creatoraudit.com/v2/videos/deltas"
payload = {
"video_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"windows": [1, 7, 14, 30]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'], windows: [1, 7, 14, 30]})
};
fetch('https://api.creatoraudit.com/v2/videos/deltas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "BAD_REQUEST",
"instance": "<string>",
"errors": [
{}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response