# How to apply rate limit with .qsp.read.fromHTTP

**URL:** <https://forum.kx.com/t/how-to-apply-rate-limit-with-qsp-read-fromhttp/13104>\
**Category:** Community Support\
**Tags:** kdb-insights\
**Created:** [December 1, 2023, 2:31am UTC](https://forum.kx.com/t/how-to-apply-rate-limit-with-qsp-read-fromhttp/13104 "2023-12-01T02:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SidPatel1](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@SidPatel1](https://forum.kx.com/u/SidPatel1)\
**Post date:** [December 1, 2023, 2:31am UTC](https://forum.kx.com/t/how-to-apply-rate-limit-with-qsp-read-fromhttp/13104/1 "2023-12-01T02:31:00Z")

</div>

I saw this reader,&nbsp;.qsp.read.fromHTTP, is a more convenient way to implement an API call request to get data instead of a timer and callback. But what if the API has a rate limit, how do you abide by that? I know its related to **OnResponse** option, but not sure how to use that to trigger next request periodically after x amount of time, say 30 seconds or 1 hour. I simply want to make the API request to get data periodically.

Thanks

---

<div class="post-metadata">

**Author:** ![sdempsey1](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sdempsey1](https://forum.kx.com/u/sdempsey1)\
**Post date:** [December 8, 2023, 3:29pm UTC](https://forum.kx.com/t/how-to-apply-rate-limit-with-qsp-read-fromhttp/13104/2 "2023-12-08T15:29:00Z")

</div>

There isn’t a supported, easy way to do this unfortunately. The reader currently issues a single request as opposed to polling. It’s a great suggestion though and something we are considering. I’ve raised an idea to our product team to suggest the enhancement.

---

<div class="post-metadata">

**Author:** ![SidPatel1](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@SidPatel1](https://forum.kx.com/u/SidPatel1)\
**Post date:** [December 9, 2023, 1:41am UTC](https://forum.kx.com/t/how-to-apply-rate-limit-with-qsp-read-fromhttp/13104/3 "2023-12-09T01:41:00Z")

</div>

Appreciate the action. In the meantime, I will try to use the callback/timer method instead.
