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 yourclient_id and client_secret:
- Navigate to auth.zencoder.ai and sign in
- Go to Administration → API Keys
- Click Add
- Give API key a desired name
- Copy the API Key, it will only be showed once
zencoder-api-key header of subsequent API requests:
- cURL
- Node.js
- Python
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:
400 Bad Request - Invalid period parameter
400 Bad Request - Invalid period parameter
400 Bad Request - Invalid day parameter format
400 Bad Request - Invalid day parameter format
400 Bad Request - Both period and day parameters provided
400 Bad Request - Both period and day parameters provided
500 Internal Server Error
500 Internal Server Error
Data Object
Data Object
Period Object
Period Object
Summary Object
Summary Object
User Object
User Object
Daily Data Object
Daily Data Object
IDE Usage Object
IDE Usage Object
Language Usage Object
Language Usage Object
- Last 30 Days
- Specific Day
- Last 7 Days (Default)
- cURL
- Node.js
- Python
Troubleshooting
Authentication Failures
Authentication Failures
- Verify your
API Keyis 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
Empty or Missing Data
Empty or Missing Data
- Confirm users in your organization have been active during the requested period
- Verify the date format for
dayparameter isYYYY-MM-DD - Check that the requested date range contains activity
- Ensure users are part of your organization and have authenticated at least once
Invalid Parameter Errors
Invalid Parameter Errors
- For
periodparameter, use only:7d,30d, or90d - For
dayparameter, use format:YYYY-MM-DD - Do not provide both
periodanddayparameters in the same request
Connection or Network Issues
Connection or Network Issues
- Verify you can reach
https://fe.zencoder.aiandhttps://api.zencoder.ai - Check your firewall or proxy settings
- Ensure your network allows HTTPS requests to Zencoder endpoints