# How to get a Count of Accounts in a Source?

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201>\
**Category:** SHF Discussion and Questions\
**Tags:** apis, aggregation\
**Created:** [December 16, 2022, 10:07am UTC](https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201 "2022-12-16T10:07:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aricoux](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/aricoux/32/6097_2.png) [@aricoux](https://developer.sailpoint.com/discuss/u/aricoux)\
**Post date:** [December 16, 2022, 10:07am UTC](https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201/1 "2022-12-16T10:07:37Z")

</div>

Hi all,

I know to obtain data from a specific source I should be using

https://{tenant}.api.identitynow.com/v3/accounts?filters=sourceId eq “2c9180867b0780c7017b0c3656ca4f9a”

But how can I obtain a total count of rows within the Source ID itself? Surely there must be a way as aggregation and UI shows the count on the front end partially. Just curious if there is a way to obtain a total rows count of the data?

---

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [December 16, 2022, 6:09pm UTC](https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201/2 "2022-12-16T18:09:07Z")

</div>

Add count as a parameter.

https://{tenant}.api.identitynow.com/v3/accounts?filters=sourceId eq “2c9180867b0780c7017b0c3656ca4f9a”&count=true

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/e/e2a36235bb86dcf1da9ccd0b4849a195e5308884.png)

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/a/a68fcd6c2c94a59554b9553aa6e4e707e421c673.png)

---

<div class="post-metadata">

**Author:** ![aricoux](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/aricoux/32/6097_2.png) [@aricoux](https://developer.sailpoint.com/discuss/u/aricoux)\
**Post date:** [January 6, 2023, 11:57am UTC](https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201/3 "2023-01-06T11:57:18Z")

</div>

> [@ethompson](#):
>
> &count=true

Thanks! I had no idea that the value of the data appeared under the Headers section. I was looking and expecting the data to show in the body.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/how-to-get-a-count-of-accounts-in-a-source/7201/4 "2023-07-19T14:24:00Z")

</div>


