Professional Documents
Culture Documents
Authorization
Events API access is controlled by tokens. You can create multiple access
tokens and delete them to remove access.
Make sure to select Events API scope to gain access to this API.
After deleting a token, please wait up to one minute for API access to get
revoked.
Warning
With these credentials, participating third party services can connect
features and services for your room, such as toy controls. Please only provide
your access token to services that you trust, as it does grant access to tip
information and private messages.
How to use it
Connect to the longpoll JSON event feed}
Longpoll JSON event feed¶
Steps:
timeout: The server will wait at most this long before returning results. If
a timeout is not set, the nextUrl will default to a 10 second timeout
o example: https://eventsapi.chaturbate.com/
events/:username/:token/?timeout=0
o default: 10
o min: 0
o max: 90
Example code
Note
The rate limit for the API is 2000 requests per minute.
Example Response
The response is a json encoded string that needs to be deserialized.
"events": [
"method": "chatMessage",
"id": "1625274862454-0",
"object": {...}
],
"nextUrl":
"https://eventsapi.chaturbate.com/events/testuser/*******************
*****/?i=1625274862454-0&timeout=10",
Objects
broadcaster
type: string
name of the broadcaster
media
type: object
message
type: object
subject
type: string
tip
type: object
user
type: object