# Get all files by Peer ID/Pubkey

**URL:** <https://discuss.ipfs.tech/t/get-all-files-by-peer-id-pubkey/11632>\
**Category:** Help\
**Created:** [June 30, 2021, 12:50am UTC](https://discuss.ipfs.tech/t/get-all-files-by-peer-id-pubkey/11632 "2021-06-30T00:50:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanshahine](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ryanshahine/32/3959_2.png) [@ryanshahine](https://discuss.ipfs.tech/u/ryanshahine)\
**Post date:** [June 30, 2021, 12:50am UTC](https://discuss.ipfs.tech/t/get-all-files-by-peer-id-pubkey/11632/1 "2021-06-30T00:50:06Z")

</div>

Would it be possible to fetch all files (or file hashes) of an IPFS node by only their Peer ID/Pubkey fetched from the cli command: ipfs swarm peers?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [June 30, 2021, 1:34am UTC](https://discuss.ipfs.tech/t/get-all-files-by-peer-id-pubkey/11632/2 "2021-06-30T01:34:29Z")

</div>

In theory, maybe by crawling the DHT to see what they’re advertising. But that’s an unfortunate side-effect of how our DHT works, not a feature.
