Using the API, you can retrieve bandwidth and storage usage information for individual videos or your entire account.
For all of the API calls that follow, you can restrict the results to within a certain date range (the default is no restriction) by POSTing the range. For example:
<events>
<start_date>Mon Jan 1 2006 0:00:00 GMT-0400</start_date>
<end_date>Tue Apr 17 2007 16:44:50 GMT-0400</end_date>
</events>
For statistics on your entire vault, use the following calls. You can restrict the list of videos the logs are applied to by specifying a filter (in the same way as retrieving the list of videos in your vault), or by specifying a list of video ids like so:
<events>
<start_date>Mon Jan 1 2006 0:00:00 GMT-0400</start_date>
<end_date>Tue Apr 17 2007 16:44:50 GMT-0400</end_date>
<video_id>a2ea2f3e-0cdf-4542-b23c-43d207795242</video_id>
<video_id>3ad52521-466a-4772-a521-aba9df79deb1</video_id>
<video_id>0ea1c488-b524-4e17-80ad-86a868a50e9c</video_id>
</events>
/vault/log/uploads.xml
Returns a list of your video uploads.
/vault/log/deletions.xml
Returns a list of videos that have been deleted.
/vault/log/downloads.xml
Returns a list of each time any of your videos have been downloaded.
/vault/log/bandwidth.xml
Returns a list of events that consume bandwidth (i.e. video uploads and downloads).
/vault/log/total_bandwidth.xml
Returns a list of total bandwidth consumed by your videos.
/vault/log/storage.xml
Returns a list of storage "events" (i.e. each time a video profile was created that increased the storage requirements for the video).
/vault/log/total_storage.xml
Returns the total storage usage of your videos in units of "byte-hours".
To convert this value to gigabyte-months — which SesameVault uses to calculate relevant charges — divide it by 773,094,113,280.
/vault/log/storage_snapshot.xml
Returns a snapshot of the number of bytes stored in your account at a given date (POST the date in the date parameter).
/vault/log/bandwidth_cost.xml
Returns the cost of bandwidth for your videos.
/vault/log/billing_changes.xml
Returns a list of changes to your billing (e.g. monthly rate, bandwidth rate, etc).