# How to fetch tag groups without log in?

**URL:** https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374
**Category:** Development
**Tags:** rest-api
**Created:** [November 14, 2019, 8:56am UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374 "2019-11-14T08:56:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Siddhu\_Dhangar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siddhu_dhangar/32/123849_2.png) [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)
#### Post date: [November 14, 2019, 8:56am UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/1 "2019-11-14T08:56:24Z")

</div>

`http://localhost:9292/tag_groups.json`

using above url i am able to get all tag groups data but when i hit same url in private mode of browser. it throws me error " No route matches [GET] “/tag\_groups.json”" .

how can i fetch the tag groups info using above url without logged in ?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 14, 2019, 5:39pm UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/2 "2019-11-14T17:39:33Z")

</div>

> [@Siddhu\_Dhangar](#):
>
> how can i fetch the tag groups info using above url without logged in ?

You will need to make an authenticated API request. Have a look at the Authentication section of [https://docs.discourse.org/](https://docs.discourse.org/) for details about how to do that.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 14, 2019, 5:47pm UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/3 "2019-11-14T17:47:41Z")

</div>

If Simon’s answer isn’t the one you’re looking for, it might help for you to back up and describe your problem (why do you need to get the tag groups?) rather than your proposed solution to it.

---

<div class="post-metadata">

### Author: ![Siddhu\_Dhangar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/siddhu_dhangar/32/123849_2.png) [@Siddhu\_Dhangar](https://meta.discourse.org/u/Siddhu_Dhangar)
#### Post date: [November 18, 2019, 3:59am UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/4 "2019-11-18T03:59:02Z")

</div>

i have written one plugin which shows tag group name before each tag name. so these changes have to be displayed without log in.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 16, 2023, 6:22am UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/5 "2023-08-16T06:22:58Z")

</div>



---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 28, 2023, 1:00pm UTC](https://meta.discourse.org/t/how-to-fetch-tag-groups-without-log-in/133374/6 "2023-08-28T13:00:28Z")

</div>

This topic was automatically closed after 12 days. New replies are no longer allowed.
