50 API versions
Cams - Chaturbate API V2 parsing via JavaScript
Collapse
X
-
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.

I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
-
I see what u did there to get around adblock. Did you use htaccess? I have gotten this far. I think it's counting.:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com$ [NC]
RewriteRule ^webcams(/.*)?$ https://chaturbate.com$1/?track=&tour=&campaign=WMIDComment
-
Nope.
I could tell you what I am doing but then I would have to kill you. Seriously.
.All cookies cleared!Comment
-
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.

I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Comment
-
Cams doesn't load on Chrome on your sites(milffoxes.com, dudefoxes), at least not for me. They load fine on Mozilla and on Edge!Comment
-
Loads here on chrome
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies hereComment
-
Comment
-
I guess that is a no.
Well, I finished up what I am going to do with Dudefoxes.com and MILFfoxes.com for now.
Put a warning page on them. Mixed some text in there. Still might add an about page to them to get some more text but for the most part they are done.
.All cookies cleared!Comment
-
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies hereComment
-
This is great stuff. I'm going to spend hours fucking around with this because I know nothing and I might accidentally learn something. Thanks for the post.Comment
-
Here is another little piece.
In the return from the API a count of the number of cams on line that meet your criteria is included.
So, if you did not include any gender or tag parameter you would see the total number of cams online at that time.
If you included a gender parameter, you would see the total number of cams for that gender. Same for tags.
So, even if you are limiting your results by using the limit parameter you get to see the total number of cams that are available for that query.
That combined with the limit parameter and the offset parameter allows you to be able to create an effective pagination routine.
The total count is the first element in the xml:
You can get at the count by using the getElementsByTagName() function.Code:<response> <count>9439</count> <results> <resource> <username> ...........
for example:
camcount=xmlDoc.getElementsByTagName("count")[0].childNodes[0].nodeValue;
.All cookies cleared!Comment
-
Comment
-
For pagination:
Once you have the camcount it is easy to do pagination.
The total number of pages is the total cams divided by the number of cams per page.
I am using the number of cams that I am putting on each page as my limit parameter and I have it stored in a var called limit.
So, the number of pages is camcount/limit. However, that might not end up being an integer so to use that as the number of pages I use the ceiling function to round up to the nearest whole number.
maxpages=Math.ceil(camcount/limit);
So I now know how many total pages I have and I can make a pagination widget of some kind so the user can bounce through the pages or go to the page of their choosing.
If I know what page we are on then I can use the offset parameter on the api_url to pull the cams for that page.
We simply multiply the limit times the page number and we have the offset needed to grab that page of cams and we can then tack the offset parameter on to the url:
var offset=limit * pagenum;
api_url += '&offset=' + offset;
Getting the page number we are on is the harder task here.
Javascript does not have a built in function to read the url query string so if we want to use the url to get the next page we have some coding to do in javascript or we can grab the query on the server side in php.
I decided to use a different method. I am using an ajax call to grab the next page of data and then just loading it into the cams div.
In my pagination widget I set the page number variable to the page selected and then have a call to a function called change_page(). That function loads the page and then moves the browser view back to the top of the page. I could have just used load_page() but I wanted the animation effect of moving the page to the top. I might get rid of that because it is a little distracting to me.
In the edit/var section:
var pagenum=0;
In the pagination widget:
onClick="pagenum++;change_page(); (advance the page number by 1 and then change the page to that page number)
function change_page()
{
load_page();
document.getElementById("countdiv").scrollIntoView ({behavior: 'smooth'});
}
Hope that helps someone.
.All cookies cleared!Comment
-
Comment
-
Comment
-
Comment
-
Starting from your code I was able to do this website https://couplecams4k.com/ . Of course, it's still a work in progress and for chat rooms, I am still using version 1 of APIs because my coding skills are limited and I wasn't able to figure out how to make them in V2. Thanks again for sharing the code with us!Comment
-
Cool.Starting from your code I was able to do this website https://couplecams4k.com/ . Of course, it's still a work in progress and for chat rooms, I am still using version 1 of APIs because my coding skills are limited and I wasn't able to figure out how to make them in V2. Thanks again for sharing the code with us!
.All cookies cleared!Comment
-
Amazing
I am not a programmer and find it difficult to try to learn api's. I am trying to replace generic ads with live CB cams like this and finding this was a Godsend. I'm trying to figure out how to adjust the css for the performer names, when I look at it on mobile they all run together. I would be very grateful if anybody could steer me in the right direction on how to adjust this script so it's readable on any screen size, and where to add other fields like user age and number of users in the room. Anybody have any advice for a slow learner? I spend hours just spinning in circles.Comment
-
Try this for mobileI am not a programmer and find it difficult to try to learn api's. I am trying to replace generic ads with live CB cams like this and finding this was a Godsend. I'm trying to figure out how to adjust the css for the performer names, when I look at it on mobile they all run together. I would be very grateful if anybody could steer me in the right direction on how to adjust this script so it's readable on any screen size, and where to add other fields like user age and number of users in the room. Anybody have any advice for a slow learner? I spend hours just spinning in circles.
Code:/* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) { CSS HERE } /* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min-width: 600px) { CSS HERE } /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) { CSS HERE } /* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min-width: 992px) { CSS HERE } /* Extra large devices (large laptops and desktops, 1200px and up) */ @media only screen and (min-width: 1200px) { CSS HERE }XVIDEOS WEBCAMS -/- MADE WITH A CUSTOM WP PLUGIN
Comment
-
Whenever I have AdBlock On, CB disappears to another universe. Even the APIs do not pop up.Comment
-
-
Comment
-
I would be interested aswell. I just noticed the topic u have created for the API V2 version.
Was trying to figure it out a bit, as i do know some programming.
Going to play around with the code u posted. Thanks for sharing.Comment
-
this is badass op how do you add pagination? and open cam page?
TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.comComment
-
Comment
-
I am not talking shit. Do a view source (look under the sheets) on dudefoxes or milffoxes, the code is there. None of it is hidden.
You should know enough coding to figure it out.
Edited in: take a look at post 67 in this thread, I explain the pagination there.
.All cookies cleared!Comment
-
thank you
TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.comComment
-
Comment
-
Just wanted to share my version of the v2 API.
hornyfeed dot com
Any input is appreciated. I am also willing to help people in need.
Thanks.Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
All cookies cleared!Comment
-
That is the domain I have it hosted on. I just used a redirect as I just bought hornyfeed domain yesterday.
EDIT: Trying to point the domain directly to it without a redirect but having some issues.Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
Well, doing that without warning folks looks scammy as fuck, I think.
So, I did not go any further once I hit the redirect.
.All cookies cleared!Comment
-
I can see what you mean, however I bought a domain with IONOS for the first time and their interface is pretty garbage. I have finally figured out how to set the nameservers correctly and it should be working without a redirect. Sorry about that, I usually use namecheap for my domains but couldn't pass up the $1 domain offer
Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
Took a look. Looks pretty good.I can see what you mean, however I bought a domain with IONOS for the first time and their interface is pretty garbage. I have finally figured out how to set the nameservers correctly and it should be working without a redirect. Sorry about that, I usually use namecheap for my domains but couldn't pass up the $1 domain offer
You have some work to do on the mobile. Pagination is too small, enter link on the adult warning is too small.
In your info box you are showing the birthdate. Myself, I would not do that.
.All cookies cleared!Comment
-
Thank you for the tips, I will fix those issues and remove the birthday as well. I thought it looked kind off odd having it displayed anyways.Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment
-
juicysluts.com - My newest touch on the Chaturbate API. Any feedback is appreciated.
Also is there still good money to be made with Chaturbate?Cheap VPS/Shared Hosting: RackNerd
Discord: Clown#5147
Projects: JuicySluts
Website: Clownonymous
Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily
Skills: API/HTML/CSS/JS/PHP/PYTHONComment



Comment