Chaturbate API

naughtynewell

Regular Member
Joined
Mar 24, 2013
Messages
249
Reaction score
93
I just posted this in the most current Chaturbate method thread, but figured I should start a thread for it too.

I have built a tiny API which returns a list of the top 25 female performers sorted by number of viewers, updated every minute.

The url is: http://18.218.109.201/cb/

Be warned - the wm querystring parameter is set to my affiliate ID, if you don't change this after making a call, I will get your traffic.


Code:
 response.replace(/wm=.*/, 'wm=MYCODE');

Or something.
 
And with this, what do you do?
What I can’t figure with chaturbate method is dmca infringment with image from model
 
Eh, you can do whatever you want with it. There are a million different ways to use an API like this. Why not create a twitter bot that tweets when a certain performer comes online, or when a user reaches a milestone of viewers? Easy.
 
If enough people show interest I can add some more flexibility to it, like being able to query against age, or location.
 
Eh, you can do whatever you want with it. There are a million different ways to use an API like this. Why not create a twitter bot that tweets when a certain performer comes online, or when a user reaches a milestone of viewers? Easy.
Wait....obviusly is a great work
 
Isn't this a php script, where is your journey link? Thanks
 
Can you steal our traffic with this? I don't say you want this, only if it possible; even after we change your aff links with ours?

Thanks for sharing your work
 
Can you steal our traffic with this? I don't say you want this, only if it possible; even after we change your aff links with ours?

Thanks for sharing your work

Hey, nah. Once the aff link is changed, it's out of my hands. The links in the data returned are from chaturbate themselves, so I don't have any control over routing of those URLs. Be awesome if I could though. =D
 
Hey, nah. Once the aff link is changed, it's out of my hands. The links in the data returned are from chaturbate themselves, so I don't have any control over routing of those URLs. Be awesome if I could though. =D

You can do whatever you want when the data is returned. What programming language did you use for this?
 
You can do whatever you want when the data is returned. What programming language did you use for this?
It's just pure bash. =D. I'm a hardcore minimalist programmer. It's some curl, and then jq to parse the response.
 
ahhh lol I don't know how to write bash scripts so I can't help hehe
It's been really fun to learn jq and bash. I'm a full stack dev by day so getting some time to fuck about with command line scripts has been awesome.
 
It's like two lines of script and then a beefy AF nginx config to cache the file and expire it timely to offload some server load.
 
As somewhat of a bump, I did a bunch of work on this today and I'll be releasing a more fully featured api later on this week / maybe next week.

I also have implemented a method of recording sessions off of chaturbate without watermarks which I'm looking to roll in to the new api as temporary download.
 
Uhm, anyone can screen-stream video capture on CB already without watermark.

I thought that might be the case, but I don't know of anyone is currently able to download and store as many streams as you want, at the same time, without a browser?

I'm interested to know if there is currently someone doing this, but I thought that screen-stream meant that you had to keep a browser tab open?
 
Whelp, bit of an update:

I have a new api running on the same server, which you can access:

http://18.218.109.201/api/v1/performer/

Additionally, you are able to add query string params to refine your search:

http://18.218.109.201/api/v1/performer/?gender=f&online=true&sort=num_users:desc

Where gender is one of: 'f', 'm', 's', 'c'

Online is either true or false

Sort is format like username:desc, num_users:asc or <field_to_sort_by>:<direction_to_sort> (desc or asc)

You can also paginate your search results:

http://18.218.109.201/api/v1/performer/?gender=f&offset=20

Means, skip the first 20 results you get and get performers ranked from 20 - 40, the api will only ever return 20 performers at once.

The default sorting of returned data is by num_users which is the number of viewers.
 
This is pretty neat

I just realised that it doesn't return the image url as part of the data... I'll add that now.

EDIT: Done - the field will be empty for a lot of performers as have been offline since I made the change.
 
Last edited:
Back
Top