# Product/count deprecated

**URL:** <https://forums.ordoro.com/t/product-count-deprecated/588>\
**Category:** Bug Reports\
**Tags:** breaking\_change\
**Created:** [July 23, 2020, 3:31pm UTC](https://forums.ordoro.com/t/product-count-deprecated/588 "2020-07-23T15:31:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [July 23, 2020, 3:31pm UTC](https://forums.ordoro.com/t/product-count-deprecated/588/1 "2020-07-23T15:31:40Z")

</div>

Hello,

The documentation  
`https://ordoro.docs.apiary.io/#reference/product/productcounts/get`  
shows the product count api.  
However, when I try it, I get:  
{  
“error\_message”: “‘NoneType’ object has no attribute ‘rule’”,  
“param”: null  
}

If that is correct, how I can I know the total number of products so I can set the number of times I will the API product (once we have a 100 records limit per call).

Thanks.

---

<div class="post-metadata">

**Author:** ![syork](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/syork/32/61_2.png) [@syork](https://forums.ordoro.com/u/syork)\
**Post date:** [July 23, 2020, 3:51pm UTC](https://forums.ordoro.com/t/product-count-deprecated/588/2 "2020-07-23T15:51:31Z")

</div>

Hey @sergio.nader  
The error you’re getting is because you are missing a trailing slash. Since the count endpoint is deprecated, you can use the `/product/` endpoint which returns a `count` element with the list of products

---

<div class="post-metadata">

**Author:** ![sergio.nader](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sergio.nader](https://forums.ordoro.com/u/sergio.nader)\
**Post date:** [August 3, 2020, 5:46pm UTC](https://forums.ordoro.com/t/product-count-deprecated/588/3 "2020-08-03T17:46:17Z")

</div>

Thank you!  
I am using the product call to get the total count now.
