Socialblade.com unofficial APIs
Unofficial APIs for Socialblade.com website. The socialblade
function returns the last 30 days data of a username for a particular source. See example below.
Install
npm i socialblade-com-api
Params of socialblade
function
urlprefix
: Socialblade website is protected by Cloudflare, I use Scraperapi.com as prefix to bypass the blocks.source
: one of the followings.username
: username on the specified source.
Example
const { socialblade } = require('socialblade-com-api')
async function main () {
const response = await socialblade('http://api.scraperapi.com?api_key=<YOUR_API_KEY>&url=', 'twitter', 'barackobama')
}
Run tests
Run lint
Bugs and feedbacks
Please open an issue.
Author