# Is there a way to determine the number of pins of a hash, network-wide?

**URL:** <https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327>\
**Category:** Help\
**Created:** [February 25, 2021, 8:19pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327 "2021-02-25T20:19:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![insanity54](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/insanity54/32/4649_2.png) [@insanity54](https://discuss.ipfs.tech/u/insanity54)\
**Post date:** [February 25, 2021, 8:19pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/1 "2021-02-25T20:19:02Z")

</div>

I’m building a website for watching videos. Each video is served via IPFS.

One of the goals of the site is to raise awareness of IPFS and encouraging participation. To that end, I would like to show a statistic on every video which shows the number of times the video has been pinned.

So my question is as follows. Is it possible to use the IPFS CLI or API to determine the pin count of a specific hash?

---

<div class="post-metadata">

**Author:** ![wclayf](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/wclayf/32/4936_2.png) [@wclayf](https://discuss.ipfs.tech/u/wclayf)\
**Post date:** [February 25, 2021, 9:38pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/2 "2021-02-25T21:38:55Z")

</div>

I’m 99% sure this info is not available, in any systematic way. Usually however only the person or organization wanting to actually store data will have a pin on it, so the number of pins wouldn’t be all that meaningful as any kind of indicator of how popular that file really is.

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [February 26, 2021, 11:03am UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/3 "2021-02-26T11:03:51Z")

</div>

`ipfs dht findprovs <cids>` can give you an approximation of how many people are seeding certain CID in the network.

---

<div class="post-metadata">

**Author:** ![wclayf](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/wclayf/32/4936_2.png) [@wclayf](https://discuss.ipfs.tech/u/wclayf)\
**Post date:** [February 26, 2021, 3:18pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/4 "2021-02-26T15:18:53Z")

</div>

@hector To clarify what you’re saying, there may be only 1 pin on a file even if it’s being seeded by thousands right? But still the number of seeding gateways might be an approximation (or measure of) ‘popularity’ of a file?

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [February 26, 2021, 3:20pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/5 "2021-02-26T15:20:21Z")

</div>

Yes, that is correct. (the number of seeding peers).

---

<div class="post-metadata">

**Author:** ![insanity54](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/insanity54/32/4649_2.png) [@insanity54](https://discuss.ipfs.tech/u/insanity54)\
**Post date:** [February 27, 2021, 10:04pm UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/6 "2021-02-27T22:04:29Z")

</div>

Thanks for this. I’m bummed that there is not a way to get a pin count. I was interested in this both as an indicator of popularity, and as a warning for a community who is working together to permanently persist a set of videos.

I like the saying, “If it doesn’t exist in 3 places it doesn’t exist at all.” I’m extending that idea to replications, hoping for at least 3 pins for each video.

It’s an experimental idea, after all. For visitors to host a video file without incentives in place, it could be asking for a lot. I suppose that’s what Filecoin is for!

Anyway, thanks again.

---

<div class="post-metadata">

**Author:** ![jaidedau](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jaidedau/32/3943_2.png) [@jaidedau](https://discuss.ipfs.tech/u/jaidedau)\
**Post date:** [February 28, 2021, 4:22am UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/7 "2021-02-28T04:22:15Z")

</div>

If you don’t mind, what’s your site’s domain name/IPNS? I’d love to keep it’s stuff pinned. 🙂

---

<div class="post-metadata">

**Author:** ![insanity54](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/insanity54/32/4649_2.png) [@insanity54](https://discuss.ipfs.tech/u/insanity54)\
**Post date:** [February 28, 2021, 11:12am UTC](https://discuss.ipfs.tech/t/is-there-a-way-to-determine-the-number-of-pins-of-a-hash-network-wide/10327/8 "2021-02-28T11:12:45Z")

</div>

Thank you for the offer! I appreciate that. Unfortunately, I can’t share the link here because my site is NSFW (porn).
