# How to get API response in JSON format

**URL:** <https://community.openai.com/t/how-to-get-api-response-in-json-format/605909>\
**Category:** API\
**Tags:** gpt-4, chatgpt, api, assistants-api\
**Created:** [January 29, 2024, 10:48am UTC](https://community.openai.com/t/how-to-get-api-response-in-json-format/605909 "2024-01-29T10:48:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ramn7](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ramn7/32/195226_2.png) [@ramn7](https://community.openai.com/u/ramn7)\
**Post date:** [January 29, 2024, 12:28pm UTC](https://community.openai.com/t/how-to-get-api-response-in-json-format/605909/3 "2024-01-29T12:28:16Z")

</div>

Not super familiar with the assistants API but it seems like they provide and example on how to parse it in [this tutorial here](https://cookbook.openai.com/examples/assistants_api_overview_python#pretty-printing-helper).

(sorry in advance if I’ve misunderstood your question and that’s not what you’re asking about)

---

_[View the full topic](https://community.openai.com/t/how-to-get-api-response-in-json-format/605909)._
