# How do I 'get' a particular Collection item

**URL:** <https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146>\
**Category:** Support\
**Created:** [November 22, 2021, 8:02am UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146 "2021-11-22T08:02:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thepurpleblob](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/thepurpleblob/32/960_2.png) [@thepurpleblob](https://discourse.getcockpit.com/u/thepurpleblob)\
**Post date:** [November 22, 2021, 8:02am UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146/1 "2021-11-22T08:02:41Z")

</div>

I have some collections and I can grab them and generate a menu. Fine.

However, how do I then link from my menu items to the individual collection items? I see there are IDs and such returned but nothing I can see in the documentation to grab an individual item.

Or am I completely missing something? 🙂

---

<div class="post-metadata">

**Author:** ![tubstrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/tubstrr/32/965_2.png) [@tubstrr](https://discourse.getcockpit.com/u/tubstrr)\
**Post date:** [November 28, 2021, 2:50pm UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146/2 "2021-11-28T14:50:38Z")

</div>

I’ve run into a similar issue, I can’t find the article that answered my question, but you’ll have to use a filter parameter on the request.

Here’s an example

```auto

https://domain.com/api/collections/get/collection?filter[ID]=ID_You_Want

```

You can also link collections together in Cockpit. So you could make a “menu items” collection, and then have a “menus” collection that grabs menu items. Then with one request you can get all the menu items you need.

---

<div class="post-metadata">

**Author:** ![thepurpleblob](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/thepurpleblob/32/960_2.png) [@thepurpleblob](https://discourse.getcockpit.com/u/thepurpleblob)\
**Post date:** [November 28, 2021, 3:22pm UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146/3 "2021-11-28T15:22:51Z")

</div>

Ok - that makes sense, thanks.

Is that filter thing documented anywhere? (I didn’t see it)

---

<div class="post-metadata">

**Author:** ![tubstrr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/tubstrr/32/965_2.png) [@tubstrr](https://discourse.getcockpit.com/u/tubstrr)\
**Post date:** [November 28, 2021, 4:17pm UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146/4 "2021-11-28T16:17:19Z")

</div>

I don’t think you missed anything in their documentation. Based on my experience with Cockpit, the main documentation just has the basics covered.

You can do pretty much anything you’d like Cockpit as long as you’re willing to take the time to search the forums, and tinker with your install.

This [question](https://discourse.getcockpit.com/t/filtering-on-a-collectionlink/197/8) is where I found the filter options. I had to tinker with it to suit my needs.

I found that searching for my specific use case will pull up one or two entries that are similar, and then from there I can find the keywords that others have used to describe what I’m looking for. Then searching for the keywords, there’s usually an entry with a pretty in-depth explanation.

---

<div class="post-metadata">

**Author:** ![thepurpleblob](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/thepurpleblob/32/960_2.png) [@thepurpleblob](https://discourse.getcockpit.com/u/thepurpleblob)\
**Post date:** [November 28, 2021, 6:23pm UTC](https://discourse.getcockpit.com/t/how-do-i-get-a-particular-collection-item/2146/5 "2021-11-28T18:23:53Z")

</div>

This brings me to a follow up question. Is there some way to search on different fields?

Using the ID implies non human readable URLs in the browser if I have to link on them. I’d like to add a ‘slug’ field and be able to search on that.
