# The API should return JSON instead of plain HTML

**URL:** <https://community.wowza.com/t/the-api-should-return-json-instead-of-plain-html/37775>\
**Category:** Wowza Streaming Engine\
**Created:** [March 10, 2014, 11:06am UTC](https://community.wowza.com/t/the-api-should-return-json-instead-of-plain-html/37775 "2014-03-10T11:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_Melendez](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@Cristian\_Melendez](https://community.wowza.com/u/Cristian_Melendez)\
**Post date:** [March 10, 2014, 11:06am UTC](https://community.wowza.com/t/the-api-should-return-json-instead-of-plain-html/37775/1 "2014-03-10T11:06:27Z")

</div>

Hi,

Pretty much every Wowza HTTP module outputs HTML as if they were consumed by a human. Returning HTML doesn’t make much sense for programmatic access to the API. The API is a “machine to machine” communication channel, thus an appropriate language should be used. JSON would be nice and it’s the web’s default and most of today’s popular languages have a native parser.

Cheers, c.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 19, 2014, 9:01pm UTC](https://community.wowza.com/t/the-api-should-return-json-instead-of-plain-html/37775/2 "2014-03-19T21:01:45Z")

</div>

Hi,

Here is the source, which you can modify as you describe, for [connectioncounts](https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider) and [serverinfo](https://www.wowza.com/docs/how-to-get-detailed-server-info-with-an-http-provider)

Richard
