# Html markup in JSON responses

**URL:** <http://forum.companieshouse.gov.uk/t/html-markup-in-json-responses/23>\
**Category:** API Issues\
**Created:** [February 19, 2015, 11:07pm UTC](http://forum.companieshouse.gov.uk/t/html-markup-in-json-responses/23 "2015-02-19T23:07:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![csmith](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/csmith/32/8_2.png) [@csmith](http://forum.companieshouse.gov.uk/u/csmith)\
**Post date:** [November 17, 2015, 3:25pm UTC](http://forum.companieshouse.gov.uk/t/html-markup-in-json-responses/23/6 "2015-11-17T15:25:01Z")

</div>

@kashif_saleem You’re probably making the same errors as @awais_techloyce123 ?

Have a read of the following post, which should help:

> [@HTML Response to a Beta Request](http://forum.aws.chdev.org/t/html-response-to-a-beta-request/331/8):
>
> @awais_techloyce123 Ah. Okay, there are several things wrong here: You are sending your API requests to the WEBSITE. Your authorisation header is wrong. First, do not be confused that the URLs look similar for the API and the website. The API will return data encoded as JSON. The Website will of course return HTML, plus, if you scrape the website, you’ll no doubt have your IP blocked by our access control infrastructure… Your problem stems from you not authenticating properly, hence the HTT…

Regards.

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/html-markup-in-json-responses/23)._
