Embedded integration (iframe)

You can use the below example code to add the SwapinWidget directly to a page of your web app or landing page.

HTML
<div style="position: relative; width: 500px; height: 80dvh; margin: auto; box-shadow: 0 0 15px #1461db; border-radius: 15px; overflow: hidden">
  <iframe
    src="https://widget.swapin.com/?apiKey=<YOUR_API_KEY>&<QUERY_PARAMETERS>"
    style="height: 100%; width: 100%; border: none">
  </iframe>
</div>

Last updated