Skip to main content
GET
Get daily views

Authorizations

Authorization
string
header
required

An API key from Sonder → Settings → API keys, like sonder_live_….

Query Parameters

start_date
string<date>

First day, YYYY-MM-DD (UTC). Defaults to 6 days before end_date.

end_date
string<date>

Last day, YYYY-MM-DD (UTC). Defaults to today. At most 90 days after start_date.

breakdown
enum<string>
default:daily

Only daily today.

Available options:
daily
group_by
enum<string>
default:video

video for one row per video, book to add up each book’s videos.

Available options:
video,
book
book_id
string<uuid>

Only this book’s videos.

Response

Daily views.

success
boolean
required
start_date
string<date>
required
end_date
string<date>
required
breakdown
string
required
Allowed value: "daily"
timezone
string
required
Allowed value: "UTC"
group_by
enum<string>
required
Available options:
video,
book
data
object
required