# Call Client api in discourse

**URL:** <https://meta.discourse.org/t/call-client-api-in-discourse/208856>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [November 11, 2021, 5:00am UTC](https://meta.discourse.org/t/call-client-api-in-discourse/208856 "2021-11-11T05:00:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinayak\_gupta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinayak_gupta/32/238696_2.png) [@vinayak\_gupta](https://meta.discourse.org/u/vinayak_gupta)\
**Post date:** [November 11, 2021, 5:00am UTC](https://meta.discourse.org/t/call-client-api-in-discourse/208856/1 "2021-11-11T05:00:59Z")

</div>

Is it possible to call client API in the discourse on page load? Basically, I want to localize the header and footer based upon client language in our platform. So I am thinking to call API in discourse to get client language and I should be able to localize content. Can this be achieved in discourse?
