Get follower count for Instagram, Twitter, TikTok, Youtube accounts

Overview

πŸ’› You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


follower-count

npm version npm downloads

Install

npm i follower-count

Example

// Instagram:
import { getFollowerCount } from "follower-count"
await getFollowerCount({
  type: "instagram",
  username: "cristiano",
  auth: {
    username: "username",
    password: "password",
  },
})

// Twitter:
import { getBrowserContext, destroyBrowser } from "follower-count"
await getFollowerCount({
  type: "twitter",
  username: "cristiano",
})
await destroyBrowser()

Notes:

  • instagram requires authentication, you can create a dummy account for this

Documentation

https://paka.dev/npm/follower-count

Sponsors

sponsors

License

MIT Β© EGOIST

Comments
Releases(v0.5.0)
  • v0.5.0(May 13, 2022)

  • v0.4.2(Apr 24, 2022)

  • v0.4.1(Apr 16, 2022)

  • v0.4.0(Apr 16, 2022)

    Breaking:

    • instagram: exposing original axios error, you can check if the error is an axios error by:

      import { isAxiosError } from "follower-count"
      
      try {
        await getFollowerCount()
      } catch (error) {
        if (isAxiosError(error)) {
          console.log(error.response.status)
        }
      }
      
    Source code(tar.gz)
    Source code(zip)
  • v0.3.0(Apr 15, 2022)

    Breaking:

    • instagram: handle user not found error, new api:

      // Prev:
      getFollowerCount({
        type: "instagram",
        username: "cristiano",
        auth: {
          username,
          password,
        },
      })
      
      // Now:
      getFollowerCount({
        type: "instagram",
        username: "cristiano",
        sessionId: getIgSessionId(username, password),
      })
      
    Source code(tar.gz)
    Source code(zip)
  • v0.2.3(Apr 12, 2022)

    • twitter: Now you don't need headless chrome to fetch the follower count, it uses the twitter follow button api if a browserContext is not provided.
    Source code(tar.gz)
    Source code(zip)
  • v0.2.2(Apr 12, 2022)

  • v0.2.1(Mar 23, 2022)

  • v0.2.0(Mar 17, 2022)

    • twitter: allow to pass a playwright browser context instead of chromium executable path.

      // before:
      await getFollowerCount({
        type: "twitter",
        username: "cristiano",
        chromiumPath: "/path/to/chromium",
      })
      
      // after:
      import { getBrowserContext, destroyBrowser } from "follower-count"
      await getFollowerCount({
        type: "twitter",
        username: "cristiano",
        browserContext: getBrowserContext({ chromiumPath: "/path/to/chromium" }),
      })
      await destroyBrowser()
      
    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Mar 16, 2022)

    • twitter: Allow to pass a custom path to Chromium executable, by default it looks for the Chrome/Chromium executable on your system, but if you're using this on AWS lambda or Google Cloud Functions, you can use this with chrome-aws-lambda.
    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Mar 16, 2022)

Owner
EGOIST
CEO of mom's basement.
EGOIST
Telegram BOT For TikTok/Douyin downloader (TikTok video downloader without watermark)

TikDo Telegram BOT This is BOT Telegram downloader TikTok/Douyin. Download videos without watermark by pasting share link in send message. How to depl

0xC0FFEE 7 Dec 1, 2022
Instagram.css - Complete set of Instagram filters in pure CSS

Instagram.css Instagram.css - Pure CSS Instagram filters. You can add all these Instagram-like filters to your photos with using CSS only. Thanks to t

Yan Zhu 4k Dec 30, 2022
Vanilla JavaScript Instagram Feed without access token. Not using the Instagram API

⚠️ This repository has been archived ⚠️ The focus of this repository was to provide an easy and ready to use plugin to display an Instagram Feed but s

Javier Sanahuja 316 Nov 22, 2022
Lavanstax project - Makes it easy and fun to use Δ°nstagram. Also first userbot for Δ°nstagram

Lavanstax Lavanstax project - Makes it easy and fun to use Δ°nstagram. Also first userbot for Δ°nstagram | Δ°nstagram | Telegram Channel | Telegram Group

Berathan Yedibela 19 Oct 15, 2022
Github follower notifier via telegram bot

⚑ GitHub Follower Notifier ?? ⚑ Vars: ?? FEED: Go Here to get yours. DATABASE: Go HERE to create one. After creating Instance: Go to your Instance Go

Gautam Kumar 14 Nov 25, 2021
Grupprojekt fΓΆr kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet fΓΆr kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide FΓΆr information om hur utv

Svante Jonsson IT-HΓΆgskolan 3 May 18, 2022
Hemsida fΓΆr personer i Sverige som kan och vill erbjuda boende till mΓ€nniskor pΓ₯ flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo fΓΆr kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
🌈 GitHub following, followers, only-following, only-follower tracker 🌈

github-following-tracker GitHub following, followers, only-following, only-follower tracker ?? Just enter your GitHub name and track your followings!

Youngkwon Kim 10 Jun 15, 2022
A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js

Twitter Broadcasts Search A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js. Live

Mohammad Mousad 2 Oct 6, 2022
A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

Instagram Without APIs Instagram Scraping in August 2022, no credentials required This is a Node.js library, are you looking for the same in PHP? go t

Francesco Orsi 28 Dec 29, 2022
A simple yet feature-rich counter that allows you to count the views of your Github README files and profile page

View Counter Purpose This is a simple yet feature-rich counter that allows you to count the views of your github README files and profile page. Featur

Toby Hagan 4 Nov 10, 2022
🧐 Precisely count words

Count Words Precisely count words. Usage The API is the same on all this platforms βœ”οΈ Deno ?? import { countWords } from "https://deno.land/x/count_wo

Eliaz Bobadilla 4 Jun 24, 2022
A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning.

jquery-character-counter A simple and useful jquery plugin that allows you to create a Text Area Character Count Effect with limited warning. #Demo Us

Abdoulie Kassama 0 Dec 28, 2020
Tool to automate making Reddit accounts, written in Node.

redgen Tool to automate making Reddit accounts, written in Node. installation & configuration NOTE: This program requires that you have a 2Captcha acc

aria 3 Sep 1, 2022
A discord bot that generates Discord Nitro, Hulu accounts, Origin, spotify and VPNs!

Discord-Account-Generator-Bot A discord bot that generates Discord Nitro, Hulu accounts, Origin, spotify and VPNs! Tutorial Basically download the fil

#Fluroescent 20 Oct 4, 2022
AdsPower supports Local API, which has functions like reading and writing account configuration information, opening and closing browsers, searching for accounts.

AdsPower supports Local API, which has functions like reading and writing account configuration information, opening and closing browsers, searching for accounts. Besides, it can cooperate with Selenium and Puppeteer to execute browser operations automatically.

AdsPower Official 20 Dec 1, 2022
ReconCLI for YNAB - a CLI for quickly reconciling YNAB accounts

ReconCLI for YNAB ReconCLI for YNAB - a CLI for quickly reconciling YNAB accounts Features Quickly reconcile your YNAB accounts from a terminal Clear

Olex S. 5 Dec 16, 2022