Skip to main content

Overview

The Zencoder Analytics API enables programmatic access to your organization’s usage data, allowing you to integrate Zencoder metrics into your existing business intelligence tools, custom dashboards, and reporting systems. This REST API provides the same data available in the Analytics Dashboard in a machine-readable format.
API access is available for users on Pro Plus plans and above. Requires Owner or Manager role permissions within your organization.

Getting Your API Credentials

Before making API requests, you’ll need to generate a personal access token to obtain your client_id and client_secret:
  1. Navigate to auth.zencoder.ai and sign in
  2. Go to Administration → API Keys
  3. Click Add
  4. Give API key a desired name
  5. Copy the API Key, it will only be showed once
Important: After generation, immediately copy and securely store API Key. The API Key will only be displayed once and cannot be retrieved later. Store it in a secure location such as a password manager or secrets management system.
Include the obtained API Key in the zencoder-api-key header of subsequent API requests:
Example Requests

Usage Data Endpoint

Query String Parameters Note: You must provide either period OR day, but not both. If neither is provided, defaults to period=7d. Example Requests Get usage data for the last 30 days:
Get usage data for a specific day:
Response Success Response (200 OK):
Error Responses:
Response Fields
Example Requests

Troubleshooting

  • Verify your API Key is correct
  • Ensure your subscription is Core or higher
  • Check that your account has Owner or Manager permissions
  • Confirm you generated an API Key in Settings
  • Confirm users in your organization have been active during the requested period
  • Verify the date format for day parameter is YYYY-MM-DD
  • Check that the requested date range contains activity
  • Ensure users are part of your organization and have authenticated at least once
  • For period parameter, use only: 7d, 30d, or 90d
  • For day parameter, use format: YYYY-MM-DD
  • Do not provide both period and day parameters in the same request
  • Verify you can reach https://fe.zencoder.ai and https://api.zencoder.ai
  • Check your firewall or proxy settings
  • Ensure your network allows HTTPS requests to Zencoder endpoints