The Wistia APIs were specifically built for videos in projects. We do not formally support using our APIs for audio files in projects, or audio or video episodes in Channels at this time. For the most reliable experience, we recommend continuing to use these for videos in projects.
When your Wistia account is created, a master token will automatically be generated for you account, which you can find in the API tab of your Account Settings. This master token has full read/write permissions on your account. You can generate additional access tokens with various permissions as well. Keep these tokens secret! do not put them in client-side code or commit them to a github repository.
We will introduce API changes when necessary/possible, and update the version number (i.e. v1) when a breaking change is made.
You must use SSL (https instead of http) to access the API.
Authentication of API requests must be done with an HTTP "Authentication" header.
The supported way to access the API is via Bearer Token:
curl https://api.wistia.com/v1/medias.json -H "Authorization: Bearer YOUR_TOKEN_HERE"
For non-GET requests, all parameters should be passed in the body of the request and URL encoded. For GET requests, parameters must be passed via the query string - that is, appended to the end of the URL after a question mark (?) character.
The request examples retrieve the data in JSON format. If you would like the data in XML format, change the extension of the request from
Some HTTP clients are limited to sending
POST requests (e.g. HTML forms have this limitation). You will notice, however, that many of the API calls only respond to
DELETE requests. In order to trigger these calls from a client that does not support
DELETE, use a POST request and add a
_method parameter with a value of either
The API has a rate limit of 600 requests per minute. If there are more than 600 requests in a minute for a particular account, the service will respond with HTTP
error 429 Service Unavailable and the Retry-After HTTP header will be set with a number of seconds to wait before trying again.
You're only working towards that 600 requests/minute limit when you submit an HTTP request to
api.wistia.com. Simply accessing a media asset (like a
.bin file) does not count.
list methods in the API support paging, sorting, and filtering of results. Filtering will be covered in the individual methods.
You can get your results back in chunks. To set the page size and/or the number of pages that you want to see, use the following query parameters:
|page||Specifies which page of the results you want to see. Defaults to 1 (not 0).|
|per_page||The number of results you want to get back per request. The maximum value of this parameter is 100, which is also the default.|
You can sort your results based on a field you specify. To specify how you want the results to be sorted, append one or both of the following query parameters to the request URL:
|sort_by||The name of the field to sort by. Valid values are |
|sort_direction||Specifies the direction of the sort, defaults to '1'. 1 = ascending, 0 = descending.|
For example, if you want to sort your results in descending order by the date created, your request URL would look like this:
Updated about 2 months ago