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 - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

functions.js

@@ -11,3 +11,7 @@

function generateUrl (urlPrefix, source, username) {
const userUrl = source === 'facebook' ? 'page' : 'user'
const userUrlCriteria = {
facebook: 'page',
youtube: 'channel'
}
const userUrl = userUrlCriteria[source] || 'user'
const urlSuffix = source === 'facebook' ? '' : '/monthly'

@@ -14,0 +18,0 @@ return `${urlPrefix}https://socialblade.com/${source}/${userUrl}/${username}${urlSuffix}`

2

package.json
{
"name": "socialblade-com-api",
"version": "2.1.1",
"version": "2.1.2",
"description": "Unofficial APIs for Socialblade.com website.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ # Socialblade.com unofficial APIs

1. `urlprefix`: Socialblade website is protected by Cloudflare, I use Scraperapi.com as prefix to bypass the blocks.
2. `source`: [one of the followings](https://github.com/DavideViolante/socialblade-com-api/blob/master/functions.js#L1-L1).
2. `source`: [one of the followings](https://github.com/DavideViolante/socialblade-com-api/blob/master/functions.js#L4).
3. `username`: username on the specified source.

@@ -14,0 +14,0 @@

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