# How to get block content by block id

**URL:** <https://discuss.openedx.org/t/how-to-get-block-content-by-block-id/2498>\
**Category:** Development\
**Created:** [June 19, 2020, 3:51pm UTC](https://discuss.openedx.org/t/how-to-get-block-content-by-block-id/2498 "2020-06-19T15:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjay\_M\_E](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sanjay_m_e/32/1162_2.png) [@Sanjay\_M\_E](https://discuss.openedx.org/u/Sanjay_M_E)\
**Post date:** [June 19, 2020, 3:51pm UTC](https://discuss.openedx.org/t/how-to-get-block-content-by-block-id/2498/1 "2020-06-19T15:51:44Z")

</div>

Say I have created raw html in unit and block id is “block-v1:edX+DemoX+Demo\_Course+type@problem+block@d2e35c1d294b4ba0b3b1048615605d2a”. How can i get raw html content using block id?

---

<div class="post-metadata">

**Author:** ![xitij2000](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/xitij2000/32/141_2.png) [@xitij2000](https://discuss.openedx.org/u/xitij2000)\
**Post date:** [June 25, 2020, 9:49am UTC](https://discuss.openedx.org/t/how-to-get-block-content-by-block-id/2498/2 "2020-06-25T09:49:03Z")

</div>

Could you give some details about your use case here? What do you need this for? Do you need to access it via an API. Otherwise you can simply see this in studio?  
Or you can visit `/xblock/<block_id>`.
