Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/follower-count
Get follower count for Instagram, Twitter, TikTok, Youtube accounts
https://github.com/egoist/follower-count
Last synced: 3 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T14:49:12.000Z (over 2 years ago)
- Last Synced: 2024-10-23T07:51:48.975Z (12 days ago)
- Language: TypeScript
- Size: 119 KB
- Stars: 118
- 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
[![npm version](https://badgen.net/npm/v/follower-count)](https://npm.im/follower-count) [![npm downloads](https://badgen.net/npm/dm/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
[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)