# Device limitation?

**URL:** <https://forums.losant.com/t/device-limitation/3914>\
**Category:** Help\
**Tags:** rest-api\
**Created:** [July 13, 2021, 7:36pm UTC](https://forums.losant.com/t/device-limitation/3914 "2021-07-13T19:36:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [July 13, 2021, 7:36pm UTC](https://forums.losant.com/t/device-limitation/3914/1 "2021-07-13T19:36:19Z")

</div>

I’m using the losant api from my intranet server to grab all devices from an application.  
([https://api.losant.com/applications/".$appId."/devices](https://api.losant.com/applications/%22.%24appId.%22/devices))  
For some reason it will only return 99 devices of 134.  
Any suggestions ?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [July 13, 2021, 7:42pm UTC](https://forums.losant.com/t/device-limitation/3914/2 "2021-07-13T19:42:44Z")

</div>

Hey @Lars_Andersson,

I assume you are using the [GET Endpoint for Devices](https://docs.losant.com/rest-api/devices/#get). In that documentation, you can see that the default `perPage` is 100 devices. You can change this value to a maximum of 1,000.

Let me know if this helps!

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [July 13, 2021, 8:22pm UTC](https://forums.losant.com/t/device-limitation/3914/5 "2021-07-13T20:22:53Z")

</div>

Yes I am.  
So I need to use the “query” option to change that?  
I’m a bit weak on this.  
I’m using php to prepare a curl statement for the api.  
Do I need to add the query parameters to the HTTP headers?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [July 13, 2021, 8:32pm UTC](https://forums.losant.com/t/device-limitation/3914/7 "2021-07-13T20:32:25Z")

</div>

@Lars_Andersson,

It’s just a query parameter that goes on the end of the API URL. So, your request URL would be:

`GET https://api.losant.com/applications/APPLICATION_ID/devices?perPage=200`

Let me know if this doesn’t work for you.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [July 13, 2021, 8:32pm UTC](https://forums.losant.com/t/device-limitation/3914/9 "2021-07-13T20:32:55Z")

</div>

Aah, that easy !.

Thanks
