# Where to find a "Collection ID"?

**URL:** https://forum.flow.com/t/where-to-find-a-collection-id/4001
**Category:** ⚙️ Flow SDKs
**Created:** [December 27, 2022, 10:21am UTC](https://forum.flow.com/t/where-to-find-a-collection-id/4001 "2022-12-27T10:21:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JimmyGee](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@JimmyGee](https://forum.flow.com/u/JimmyGee)
#### Post date: [December 27, 2022, 10:21am UTC](https://forum.flow.com/t/where-to-find-a-collection-id/4001/1 "2022-12-27T10:21:04Z")

</div>

Hi. So I’m trying to use this “[https://rest-mainnet.onflow.org/v1/collections/{id}](https://rest-mainnet.onflow.org/v1/collections/%7Bid%7D)” from the documentation here _developers.flow . com/http-api#tag/Collections_ to check out the UFC Strike collection. Where do I find the collection id? This is the contract _flowscan . org/contract/A.329feb3ab062d289.UFC\_NFT_ where the id at? Is it the “Identifier : UFC\_NFT” part? I try this [https://rest-mainnet.onflow.org/v1/collections/UFC\_NFT](https://rest-mainnet.onflow.org/v1/collections/UFC_NFT) and it gives me “invalid format” error. What am I doing wrong here?

---

<div class="post-metadata">

### Author: ![dete](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/dete/32/189_2.png) [@dete](https://forum.flow.com/u/dete)
#### Post date: [January 6, 2023, 11:52pm UTC](https://forum.flow.com/t/where-to-find-a-collection-id/4001/2 "2023-01-06T23:52:10Z")

</div>

Hey there, JimmyGee!

Unfortunately, you’ve fallen victim to a naming collision… 😉 Sorry!

The “Collections” referred to in the REST API at the protocol level are bundles of transactions used to construct a block. They are very different from NFT collections which is what you are interested in. Same word, two very different contexts.

If you want to query applications like UFC Strike, you need to submit a Cadence script that can query the state of various smart contracts and user accounts.

Best of luck!

---

<div class="post-metadata">

### Author: ![JimmyGee](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@JimmyGee](https://forum.flow.com/u/JimmyGee)
#### Post date: [January 16, 2023, 11:13am UTC](https://forum.flow.com/t/where-to-find-a-collection-id/4001/3 "2023-01-16T11:13:16Z")

</div>

Hey thanks heaps for the reply. Do you know of any Cadence tutorials or documentation that can help me with querying an NFT collection?
