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

socialblade

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socialblade

Library for Social Blade's Official API in JavaScript (TypeScript)

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
714
increased by13.33%
Maintainers
1
Weekly downloads
 
Created
Source

Social Blade API in JavaScript

Build Status Personal Discord Social Blade Discord


Information and Disclaimer

Just because I work for Social Blade does not mean this is an official library. Though it is used in Social Blade official products.

This library supports most of the api.socialblade.com endpoints that are being exposed by either the official Social Blade Browser Extensions, Apps, or Website.

Social Blade's API is a private API used for Social Blade official tools and for companies with express written permission. Use of the Social Blade API without express permission is prohibited by the active Terms of Service and may result in being blocked from the Social Blade website and all of it's data.


Install

npm install --save socialblade

Usage

Import the library into your project and construct a new client which will be used to access the API.
Use either the third-party Auth function or first-party AuthAsUser function to set the client as "active".

TypeScript
import { SocialBladeClient } from 'socialblade';

const socialblade: SocialBladeClient = new SocialBladeClient();
// Third-Party Auth
socialblade.Auth("Third-Party API Key").then((data: IDeveloper) => {
	console.log(data)
});

// First-Party Auth
socialblade.AuthAsUser("User Email", "User Access Token").then((data: IUser) => {
	console.log(data)
});
ES6+
const SocialBladeClient = require("socialblade").SocialBladeClient;

const socialblade = new SocialBladeClient();
// Third-Party Auth
socialblade.Auth("Third-Party API Key").then(console.log)

// First-Party Auth
socialblade.AuthAsUser("User Email", "User Access Token").then(console.log)

Examples

Get YouTube Channel Stats — [ Third-Party Auth, First-Party Auth ]

More examples coming soon. Library still early development

Troubleshooting

If you have official access to the Social Blade API via express permission from the company then feel free to contact me via Twitter or email me for any help.

Keywords

FAQs

Package last updated on 25 Sep 2018

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