Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socialblade-com-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socialblade-com-api

Unofficial APIs for Socialblade.com website.

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

Socialblade.com unofficial APIs

Maintainability Donate

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

  1. urlprefix: Socialblade website is protected by Cloudflare, I use Scraperapi.com as prefix to bypass the blocks.
  2. source: one of the followings.
  3. 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')
}

Example response

{
  table: [
    {
      date: '2020/05/26',
      followersDelta: 5657,
      followers: 117937431,
      followingDelta: -7,
      following: 605960,
      postsDelta: 0,
      posts: 15811
    },
    ...
  ],
  charts: [
    {
      id: 'weekly-followers-gained',
      title: 'Weekly Followers Gained for ...',
      data: [ { date: '2020/05/26', value: 123 }, ... ]
    }
  ]
}

Run tests

  • npm test

Run lint

  • npm run lint

Bugs and feedbacks

Please open an issue.

Author

Keywords

FAQs

Package last updated on 06 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc