https://github.com/egoist/follower-count
Get follower count for Instagram, Twitter, TikTok, Youtube accounts
https://github.com/egoist/follower-count
Last synced: 6 days ago
JSON representation
Get follower count for Instagram, Twitter, TikTok, Youtube accounts
- Host: GitHub
- URL: https://github.com/egoist/follower-count
- Owner: egoist
- License: mit
- Created: 2022-03-13T09:31:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T14:49:12.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T23:23:29.790Z (23 days ago)
- Language: TypeScript
- Size: 119 KB
- Stars: 119
- Watchers: 4
- Forks: 7
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - egoist/follower-count - Get follower count for Instagram, Twitter, TikTok, Youtube accounts (TypeScript)
README
**💛 You can help the author become a full-time open-source maintainer by [sponsoring him on GitHub](https://github.com/sponsors/egoist).**
---
# follower-count
[](https://npm.im/follower-count) [](https://npm.im/follower-count)
## Install
```bash
npm i follower-count
```## Example
```ts
// 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
[](https://github.com/sponsors/egoist)
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)