PeraNETWORK
Newbie
- Aug 5, 2021
- 25
- 20
Hello BHW family,
Today, I want to introduce you to the PHP library I developed for https://viewstats.com. Recently, I needed to pull data from Socialblade.com, but I faced several challenges that made this process quite difficult. I was frequently encountering issues with VPN and proxy access while scraping, and finding a suitable API service was also not easy (only a business API was available).
Therefore, I conducted research on ViewStats.com, which operates on a similar structure to that of MrBeast. However, during my investigations, I noticed a problem: while sending my requests normally, the responses I received were in an encrypted format. At first, I thought this was due to "gzip" compression, but it turned out not to be the case.
Upon examining the JavaScript code of ViewStats.com, I realized they were using an encrypt-decrypt mechanism. After deciphering this encryption algorithm, I quickly developed a PHP library and began retrieving all the data in JSON format.
Usage:
Some Endpoints:
Maybe if you have any projects on YouTube, you can use my library to create easy and user-friendly apps. You won’t have to deal with the annoying Google API anymore.
Github: https://github.com/peranetwork/viewstats-api
If you have any questions, feel free to DM me or write in this topic.
Thank you.
Today, I want to introduce you to the PHP library I developed for https://viewstats.com. Recently, I needed to pull data from Socialblade.com, but I faced several challenges that made this process quite difficult. I was frequently encountering issues with VPN and proxy access while scraping, and finding a suitable API service was also not easy (only a business API was available).
Therefore, I conducted research on ViewStats.com, which operates on a similar structure to that of MrBeast. However, during my investigations, I noticed a problem: while sending my requests normally, the responses I received were in an encrypted format. At first, I thought this was due to "gzip" compression, but it turned out not to be the case.
Upon examining the JavaScript code of ViewStats.com, I realized they were using an encrypt-decrypt mechanism. After deciphering this encryption algorithm, I quickly developed a PHP library and began retrieving all the data in JSON format.
Usage:
Some Endpoints:
Maybe if you have any projects on YouTube, you can use my library to create easy and user-friendly apps. You won’t have to deal with the annoying Google API anymore.
Github: https://github.com/peranetwork/viewstats-api
If you have any questions, feel free to DM me or write in this topic.
Thank you.