List account reports
curl --request GET \
--url https://api.videobase.com/v1/account/reports \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.videobase.com/v1/account/reports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/account/reports"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"list": [
{
"day": "2023-12-25",
"views": 123,
"downloads": 123,
"profitViews": 123,
"profitTotal": 123
}
]
}{
"message": "File not found",
"status": 500
}Account
List account reports
Returns daily view, download, and profit totals.
The current backend converts the computed start date to the first day of its month. The from parameter is accepted but currently fails backend validation and falls back to that computed start date.
GET
/
v1
/
account
/
reports
List account reports
curl --request GET \
--url https://api.videobase.com/v1/account/reports \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.videobase.com/v1/account/reports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/account/reports"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"list": [
{
"day": "2023-12-25",
"views": 123,
"downloads": 123,
"profitViews": 123,
"profitTotal": 123
}
]
}{
"message": "File not found",
"status": 500
}Authorizations
ApiKeyHeaderApiKeyQuery
Recommended. Your 16-character Videobase API key.
Query Parameters
Number of days used to choose the start month. The report starts on day one of that month. Defaults to 7.
Required range:
x >= 1Intended start date in YYYY-MM-DD format. Currently ignored because of backend validation behavior.
Inclusive end date in YYYY-MM-DD format. Defaults to the current server date.
Response
Daily account reports.
Show child attributes
Show child attributes