Reporting API documentation - Prime Video Tech Docs

Reporting API documentation

Last updated 2024-08-29

Prime Video Slate reporting APIs enable developers to build clients to retrieve reporting-related information, like available report types and the download URL for those reports. This topic provides information about using those APIs.

Authentication

Slate reporting APIs leverage Login With Amazon (LWA) to authenticate requests. For more information about how to set up LWA, see the LWA documentation.

Requests should include a valid LWA authentication token in the request authorization header. For example:

If the request header doesn’t include the token, or if the token is expired, the APIs will return an unauthorized exception.

Pagination

All Slate API responses are paginated. Pagination parameters are specified through requests parameters.

Request parameterDefault value
Description
limit10
The number of documents returned in a single page (the page size).
offset0
The number of pages to skip (the page number).

All paginated responses contain the following fields.

FieldDescription
total
The total document count in all pages.
nextThe URL to the next page. Null if the last page.

Accounts

This resource returns the list of Slate accounts that the user can access. The set of accounts is accessible in Slate through the accounts list at the top right corner of the window.

Anonymized account dropdown list in Prime Video Slate

The resource is accessible through https://videocentral.amazon.com/apis/v1/accounts. The following code is an example response:

Report groups

This resource returns the groups of reports like Channels and Rent or Buy that the user can access. The groups are available in Slate on the Reporting tab.

The resource is accessible through https://videocentral.amazon.com/apis/v1/accounts/{account_id}. The following code is an example response:

Channels and studios

This resource returns the list of channels or studios available for this account, depending on the given reports group. The list of channels or studios is accessible in Slate through the Channels dropdown on the Reporting tab.

A sample list of report channels in Prime Video Slate, showing several Showtime (US) reports

The resource is accessible through https://videocentral.amazon.com/apis/v1/accounts/{account_id}/{reports_group_id}. The following code is an example response:

Report types

This resource returns the list of report types available for a given channel or studio. The report types are available in the Reporting tab in Slate.

The resource is accessible through https://videocentral.amazon.com/apis/v1/accounts/{account_id}/{reports_group_id}/{channel/studio_id}/reportTypes. The following code is an example response:

Reports

This resource returns the list of reports available for a given report type. The reports are available in the reports dropdown list corresponding to the report type.

Anonymized reports view in Slate, with the reports dropdown that corresponds to report type highlighted

The resource is accessible through https://videocentral.amazon.com/apis/v1/accounts/{account_id}/{reports_group_id}/{channel/studio_id}/reportTypes/{report_type_id}/reports. The following code is an example response:

Additionally, the resource accepts parameters that enable users to search and filter reports for a specific data range. The following table outlines the supported request parameters.

Request parameterDescription
reportDateBeginGteReturns only reports with a begin date on or after the given date.
reportDateBeginLtReturns only reports with a begin date before the the given date.
modifiedDateGteReturns only reports that were generated on or after the given date. This parameter can be used to detect regenerated reports in case of data quality issues.

Can’t find what you’re looking for?

Contact us


Internal Server error! Please try again
Your session has expired

Please sign in to continue

Sign In
edit