# Rate limits to get pull counts?

**URL:** <https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339>\
**Category:** Docker Hub\
**Created:** [March 25, 2025, 10:58am UTC](https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339 "2025-03-25T10:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abesnier](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/abesnier/32/32499_2.png) [@abesnier](https://forums.docker.com/u/abesnier)\
**Post date:** [March 25, 2025, 10:58am UTC](https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339/1 "2025-03-25T10:58:32Z")

</div>

Hi All,

I have a very vain question.

I regularly check the pull count on my images, and to do so, I curl [https://hub.docker.com/v2/repositories/myName/myImage](https://hub.docker.com/v2/repositories/myName/myImage), and extract the pull\_count key.

Because my vanity is taking the best of me, I would like to include this on my blog sidebar. However, I would like to know if there is a limit to this method, and if so, what is that limit? Not that the traffic from my blog would be high, but still, I don’t want to make a mess.

Cheers

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [March 26, 2025, 10:08pm UTC](https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339/2 "2025-03-26T22:08:38Z")

</div>

I don’t know about exact numbers, but Docker Hub does protect itself against attacks so too many requests from a specific IP can block the IP at least temporarily.

You can check the documentation: [https://docs.docker.com/docker-hub/usage/#abuse-rate-limit](https://docs.docker.com/docker-hub/usage/#abuse-rate-limit)

> while the limit changes over time depending on load and other factors, it’s in the order of thousands of requests per minute.

If your blog is very popular, you can implement the feature on client side so the IP will be the IP of the user who loads your blog, but thousands of requests per minute is quite a large limit unless your server is in a network which has multiple servers using the same gateway for outgoing traffic. If you don’t need real-time numbers (I’m not sure how real-time the api response is) you could cache the response for some seconds or probably even for a minute if necessary.

---

<div class="post-metadata">

**Author:** ![abesnier](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/abesnier/32/32499_2.png) [@abesnier](https://forums.docker.com/u/abesnier)\
**Post date:** [April 9, 2025, 9:39am UTC](https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339/3 "2025-04-09T09:39:22Z")

</div>

Thanks for the reply!  
No, it’s not popular at all (most of the traffic comes form robots or hack attempts!), it’s more a vanity feature I want to implement. So it should be good, as it will definitely not be in “thousands of requests per minute”!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/d/4/d4fbccd46c81bfcffe9822e20e17736d946fa821.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [May 9, 2025, 9:40am UTC](https://forums.docker.com/t/rate-limits-to-get-pull-counts/147339/4 "2025-05-09T09:40:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
