# API Returning HTML Instead of JSON At Specific Routes?

**URL:** <https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691>\
**Category:** Development\
**Created:** [October 28, 2018, 5:25pm UTC](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691 "2018-10-28T17:25:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 28, 2018, 6:41pm UTC](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691/2 "2018-10-28T18:41:29Z")

</div>

> [@Wintermute](#):
>
> Any suggestions?

If you visit a user’s activity page on Discourse and view the Network tab of your browser’s developer tools, you’ll see that a `GET` request is made to a URL similar to:

```plaintext
http://forum.example.com/user_actions.json?username=simon

```

Querying that URL through the API should return JSON.

---

_[View the full topic](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691)._
