# How to display a pdf from an API in modal?

**URL:** <https://forum.wixstudio.com/t/how-to-display-a-pdf-from-an-api-in-modal/18879>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 15, 2020, 5:37am UTC](https://forum.wixstudio.com/t/how-to-display-a-pdf-from-an-api-in-modal/18879 "2020-06-15T05:37:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrpowergage](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mrpowergage/32/18397_2.png) [@mrpowergage](https://forum.wixstudio.com/u/mrpowergage)\
**Post date:** [June 15, 2020, 5:37am UTC](https://forum.wixstudio.com/t/how-to-display-a-pdf-from-an-api-in-modal/18879/1 "2020-06-15T05:37:05Z")

</div>

I’m wanting to display a pdf coming from an api as a preview in a modal, but it won’t connect. (this works fine with a dummy pdf at a static address).

How might I go about storing the pdf in a way that means I can then display it in the modal?

Here’s an example result from the api: [https://dash.stannp.com/api/v1/storage/get/scotch/1592199316/pdf-samples/7476-01c4ddc5-c96e-4d07-9471-5627cb99343c-A5-env-6ff36c32-aab1-4f62-a89f-838f45202e7d.pdf](https://dash.stannp.com/api/v1/storage/get/scotch/1592199316/pdf-samples/7476-01c4ddc5-c96e-4d07-9471-5627cb99343c-A5-env-6ff36c32-aab1-4f62-a89f-838f45202e7d.pdf)

Many thanks for any help.

 ![](https://us1.discourse-cdn.com/wix/original/3X/f/c/fc6af8f6f7698952866b8ccbf26059190b03c2c4.png)
