# Possible to somehow fetch and display Discourse badges on an external site (e.g. Wordpress)?

**URL:** <https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027>\
**Category:** Product Support\
**Created:** [February 7, 2020, 8:50pm UTC](https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027 "2020-02-07T20:50:41Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

In the Support category, [donovan](/t/-/141027/1) inquired about integrating Discourse with a large WordPress membership site, specifically seeking a method to fetch and display user badge status from Discourse on the external site for gamification purposes. [renato](/t/-/141027/2) responded by confirming that this is achievable, explaining that UI routes function as JSON routes. They provided a specific example URL structure, noting that badge data can be retrieved directly via a JSON endpoint such as `https://meta.discourse.org/u/donovan/badges.json`. [donovan](/t/-/141027/3) acknowledged the solution, stating it was perfect and thanking [renato](/t/-/141027/2) for the advice.

<div class="post-metadata">

**Author:** ![donovan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donovan/32/165537_2.png) [@donovan](https://meta.discourse.org/u/donovan)\
**Post date:** [February 7, 2020, 8:50pm UTC](https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027/1 "2020-02-07T20:50:41Z")

</div>

We are looking into the possibility of using Discourse on one of our large Wordpress membership sites.

One of the things we’re designing at the moment is a badge/gamification aspect on the main site. We’d like to somehow fetch the user’s badge status from Discourse to display this as well.

Is this achievable? Can anyone advise?

---

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [February 7, 2020, 9:42pm UTC](https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027/2 "2020-02-07T21:42:13Z")

</div>

Hi,

UI routes are also JSON routes, so you can fetch your user badges from [https://meta.discourse.org/u/donovan/badges.json](https://meta.discourse.org/u/donovan/badges.json).

---

<div class="post-metadata">

**Author:** ![donovan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donovan/32/165537_2.png) [@donovan](https://meta.discourse.org/u/donovan)\
**Post date:** [February 7, 2020, 10:06pm UTC](https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027/3 "2020-02-07T22:06:55Z")

</div>

Perfect. Thanks for this.

---

<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:** [March 8, 2020, 10:14pm UTC](https://meta.discourse.org/t/possible-to-somehow-fetch-and-display-discourse-badges-on-an-external-site-e-g-wordpress/141027/4 "2020-03-08T22:14:10Z")

</div>

Closed on March 8, 2020, 10:14pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
