# Get Follow count for server site

**URL:** <https://forum.social.plus/t/get-follow-count-for-server-site/355>\
**Category:** Web\
**Created:** [November 23, 2021, 11:50am UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355 "2021-11-23T11:50:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustTod](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@JustTod](https://forum.social.plus/u/JustTod)\
**Post date:** [November 23, 2021, 11:50am UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355/1 "2021-11-23T11:50:08Z")

</div>

I’m using `GET ​/api​/v4​/users​/:userId​/followInfo` from [swagger](https://api-docs.amity.co/#)  
I want to get the follower / following count to process on my nodejs backend which using GCP.

I’m trying to pass our userId to get the data, but always get 404. Could you tell me what I’m doing wrong

 ![2021-11-23 at 18.47](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/2577287d03aa92fd24d7a7c051388eabb5095b95.png)

---

<div class="post-metadata">

**Author:** ![touchaponk](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@touchaponk](https://forum.social.plus/u/touchaponk)\
**Post date:** [November 23, 2021, 12:29pm UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355/2 "2021-11-23T12:29:02Z")

</div>

Hi @JustTod - from looking at your code you’re missing path `/api/v4/user/` in front? 404 could be error because api endpoint is not found

---

<div class="post-metadata">

**Author:** ![JustTod](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@JustTod](https://forum.social.plus/u/JustTod)\
**Post date:** [November 24, 2021, 5:59am UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355/3 "2021-11-24T05:59:16Z")

</div>

I have tried adding endpoint like you said `https://api.us.amity.co/api/v4/users/${ssoid}/followInfo`.

It shows 401 instant, so I try to generate the access token by using Admin account.  
(follow this [article](https://docs.amity.co/console/settings#admin-api-access-token)) I still get 401.

So I tried on [swagger](https://api-docs.amity.co/#/Follow/get_api_v4_users__userId_followInfo) and still get 401.

 ![2021-11-24 at 12.56](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/b856680d14572675303d28dda4037fdd282b3379.png)

could you tell me what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![touchaponk](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@touchaponk](https://forum.social.plus/u/touchaponk)\
**Post date:** [November 24, 2021, 6:06am UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355/4 "2021-11-24T06:06:54Z")

</div>

@JustTod Can you recheck whether you’re calling to the right data center? As far as I understand your system should be in Singapore region which is accessible with `api.amity.co` or `api.sg.amity.co`

---

<div class="post-metadata">

**Author:** ![JustTod](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@JustTod](https://forum.social.plus/u/JustTod)\
**Post date:** [November 24, 2021, 6:41am UTC](https://forum.social.plus/t/get-follow-count-for-server-site/355/5 "2021-11-24T06:41:55Z")

</div>

Junior mistake. 😂

thanks for your help.
