Reference
Reference for the VtubersTV API.
Our API is based around REST. It is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients. We support cross-origin resource sharing, allowing you to interact securely with our API from a client-side web application (though you should never expose your token in any public website's client-side code). JSON is returned by all API responses, including errors.
Base URL
https://api.vtubers.tv
API Versioning
Some API versions may be deprecated and no longer supported. It is recommended to use the latest version. If you try to use a deprecated version, you will receive a 400
Bad Request response.
We expose different versions of our API. You should specify which version to use by including it in the request path like https://api.vtubers.tv/v{version_number}
. Omitting the version number from the route will return a JSON route with all the versions you can use.
You can find the change log for the newest API version here.
Version | Status |
---|---|
v1 | Available |
Authentication
Authenticating with the API can be in two ways:
- Using a app token found in the developer dashboard. For more information on apps see apps vs users.
- Using a user token. This is obtained by using the OAuth2 flow. For more information on OAuth2 see OAuth2.
For all authentication types, authentication is performed with the Authorization
HTTP header in the format Authorization: TOKEN_TYPE TOKEN
.
Example Bot Token Authorization Header
Example User Token Authorization Header
Encryption
All HTTP-layer services and protocols must use TLS 1.2 or higher. We recommend using the latest version of TLS to ensure the highest level of security.