# List pubsub subscriptions of other nodes?

**URL:** <https://discuss.ipfs.tech/t/list-pubsub-subscriptions-of-other-nodes/9459>\
**Category:** Help\
**Created:** [November 17, 2020, 6:16am UTC](https://discuss.ipfs.tech/t/list-pubsub-subscriptions-of-other-nodes/9459 "2020-11-17T06:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyisfor](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@cyisfor](https://discuss.ipfs.tech/u/cyisfor)\
**Post date:** [November 17, 2020, 6:16am UTC](https://discuss.ipfs.tech/t/list-pubsub-subscriptions-of-other-nodes/9459/1 "2020-11-17T06:16:06Z")

</div>

I would think each topic is encrypted with itself as a key, so that nodes who don’t know already what topic to look for can’t tell who’s subscribing to what. But if not, is there a function to list all the topics any particular node subscribes to? It’d be nice if I could find out who’s interested in what.

---

<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:** [November 17, 2020, 2:12pm UTC](https://discuss.ipfs.tech/t/list-pubsub-subscriptions-of-other-nodes/9459/2 "2020-11-17T14:12:20Z")

</div>

I think pub sub “names” are more like internal variable names than human-readable names. Also nodes are going to be using pub-sub for lots of internal server maintenance tasks and so exposing those directly to other users (humans) would look like jibberish. So imo, I’d just create a custom JSON format that holds this kind of “Server Info” and invent your own proprietary way of each server being able publish this kind of arbitrary info about itself.

---

<div class="post-metadata">

**Author:** ![adin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/adin/32/2679_2.png) [@adin](https://discuss.ipfs.tech/u/adin)\
**Post date:** [November 17, 2020, 9:41pm UTC](https://discuss.ipfs.tech/t/list-pubsub-subscriptions-of-other-nodes/9459/3 "2020-11-17T21:41:32Z")

</div>

That information is not directly exposed in go-ipfs or in go-libp2p-pubsub, but peers telling each other what topics they’re subscribed to is part of the protocol (see [https://github.com/libp2p/specs/tree/master/pubsub](https://github.com/libp2p/specs/tree/master/pubsub) and related specs), which means you could ask peers for their topics if you can find + connect to them.

Whether the topic nodes are intelligible or not is likely application dependent. If you’re interested I’d ask more detailed questions on [discuss.libp2p.io](http://discuss.libp2p.io) as pubsub is really a libp2p component that IPFS happens to expose for convenience.
