{"id":29136257,"url":"https://github.com/DavideViolante/socialblade-com-api","last_synced_at":"2025-06-30T11:06:12.812Z","repository":{"id":44663398,"uuid":"267045913","full_name":"DavideViolante/socialblade-com-api","owner":"DavideViolante","description":"Unofficial APIs for socialblade.com website.","archived":false,"fork":false,"pushed_at":"2025-01-01T14:20:06.000Z","size":893,"stargazers_count":17,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T22:39:23.115Z","etag":null,"topics":["crawler","scraper","scraping","social","social-media","socialblade"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavideViolante.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-26T13:10:05.000Z","updated_at":"2025-06-15T09:39:58.000Z","dependencies_parsed_at":"2024-01-01T23:20:08.441Z","dependency_job_id":"2b335c12-0298-4214-8470-2fb726981b0c","html_url":"https://github.com/DavideViolante/socialblade-com-api","commit_stats":null,"previous_names":["davideviolante/socialblade-scraper"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/DavideViolante/socialblade-com-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideViolante%2Fsocialblade-com-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideViolante%2Fsocialblade-com-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideViolante%2Fsocialblade-com-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideViolante%2Fsocialblade-com-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavideViolante","download_url":"https://codeload.github.com/DavideViolante/socialblade-com-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavideViolante%2Fsocialblade-com-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654686,"owners_count":23042679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","scraper","scraping","social","social-media","socialblade"],"created_at":"2025-06-30T11:06:11.992Z","updated_at":"2025-06-30T11:06:12.797Z","avatar_url":"https://github.com/DavideViolante.png","language":"JavaScript","funding_links":["https://www.paypal.me/dviolante"],"categories":[],"sub_categories":[],"readme":"# Socialblade.com unofficial APIs\n[![](https://github.com/davideviolante/socialblade-com-api/workflows/Node.js%20CI/badge.svg)](https://github.com/DavideViolante/socialblade-com-api/actions?query=workflow%3A\"Node.js+CI\") [![Maintainability](https://api.codeclimate.com/v1/badges/5cf562601140598e1f8a/maintainability)](https://codeclimate.com/github/DavideViolante/socialblade-com-api/maintainability) [![Donate](https://img.shields.io/badge/paypal-donate-179BD7.svg)](https://www.paypal.me/dviolante)\n\nUnofficial APIs for Socialblade.com website. The `socialblade` function returns the last 30 days data of a username for a particular source. See example below.\n\n### Install\n`npm i socialblade-com-api`\n\n### Params of `socialblade` function\n1. `source`: [one of the followings](https://github.com/DavideViolante/socialblade-com-api/blob/master/functions.js#L4).\n2. `username`: account username on the specified source.\n3. `cookie`: required param if `source` is `instagram`. You need to sign up for a free account to socialblade.com, then get the value of `PHPSESSXX` Cookie from Chrome console (F12) \u003e Application \u003e Cookies.\n\n### Example\n```js\nconst { socialblade } = require('socialblade-com-api')\n\nasync function main () {\n  try {\n    const response1 = await socialblade('twitter', 'barackobama')\n    const response2 = await socialblade('instagram', 'barackobama', '\u003cyour_socialblade_phpsessxx_cookie\u003e')\n  } catch (err) {\n    console.error(err)\n  }\n}\n```\n\n### Example response\n```js\n{\n  table: [\n    {\n      date: '2020/05/26',\n      followersDelta: 5657,\n      followers: 117937431,\n      followingDelta: -7,\n      following: 605960,\n      postsDelta: 0,\n      posts: 15811\n    },\n    ...\n  ],\n  charts: [\n    {\n      id: 'weekly-followers-gained',\n      title: 'Weekly Followers Gained for ...',\n      data: [ { date: '2020/05/26', value: 123 }, ... ]\n    }\n  ]\n}\n```\n\n### Run tests\n- `npm test`\n\n### Run lint\n- `npm run lint`\n\n### Bugs and feedbacks\nPlease open an issue.\n\n### Author\n- [Davide Violante](https://github.com/DavideViolante/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavideViolante%2Fsocialblade-com-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDavideViolante%2Fsocialblade-com-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDavideViolante%2Fsocialblade-com-api/lists"}