You can create a PHP file and copy paste the API inside and save it (give it a name). Then on your website, you can add this code
Replace xxx with the size you want to get. (400x800 for exemple)
or
with the second code, you will need to add the following code to your header (after <header>) to use jquery
Code:
<iframe width="xxx" height="xxx" frameBorder="0" src="filename.php"></iframe>
or
Code:
<div id="filename"></div>
<script>
$(document).ready(function() {
$("#filename").load("filename.php");
});
</script>
with the second code, you will need to add the following code to your header (after <header>) to use jquery
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Thanks for your response!
Apparently what I want to use is the blockchain.com websocket API, I wish there was a tutorial on this, I'm lost 😣