follower-count
Install
npm i follower-count
Example
// Twitter:
import { getBrowserContext, destroyBrowser } from "follower-count"
await getFollowerCount({
type: "twitter",
username: "cristiano",
})
await destroyBrowser()
// Instagram:
import { getFollowerCount, getIgSessionIg } from "follower-count"
await getFollowerCount({
type: "instagram",
username: "cristiano",
sessionId: await getIgSessionIg("DUMMY_USER", "DUMMY_PASSWORD"),
})
Notes:
instagram
requires authentication, you can create a dummy account for this
Documentation
https://paka.dev/npm/follower-count
Sponsors
License
MIT Β© EGOIST