# 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:** 3

<div class="post-metadata">

**Author:** ![Wintermute](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wintermute/32/127023_2.png) [@Wintermute](https://meta.discourse.org/u/Wintermute)\
**Post date:** [October 28, 2018, 6:53pm UTC](https://meta.discourse.org/t/api-returning-html-instead-of-json-at-specific-routes/100691/3 "2018-10-28T18:53:51Z")

</div>

Thanks.

`https://{site-url}/user_actions.json?username={user}&api_key={key}`

Does return the content that I need. However, shouldn’t the original path also work? You can see it being called in the network tab when accessing the user activity page and it’s got .json? appended to it.

---

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