# API request returns text/html and not a json object

**URL:** <https://meta.discourse.org/t/api-request-returns-text-html-and-not-a-json-object/237407>\
**Category:** Product Support\
**Created:** [August 28, 2022, 8:42pm UTC](https://meta.discourse.org/t/api-request-returns-text-html-and-not-a-json-object/237407 "2022-08-28T20:42:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hiddenseal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hiddenseal/32/284273_2.png) [@hiddenseal](https://meta.discourse.org/u/hiddenseal)\
**Post date:** [August 28, 2022, 11:09pm UTC](https://meta.discourse.org/t/api-request-returns-text-html-and-not-a-json-object/237407/3 "2022-08-28T23:09:40Z")

</div>

> [@RGJ](#):
>
> You have a duplicate header:

Sorry, it’s an unrelated relict. I had an issue without the second header.

> [@RGJ](#):
>
> So you’ll need to change this to

This one does work. Thank you!

---

_[View the full topic](https://meta.discourse.org/t/api-request-returns-text-html-and-not-a-json-object/237407)._
