Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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)