<script src="https://project-semiotica-api.onrender.com/static/js/semiotica-oembed.js"></script>
<div id="semiotica-embed"></div>
<script>
  SemioticaEmbed.embed('https://project-semiotica-api.onrender.com/analytics', 'semiotica-embed');
</script>
Embed Block
Add an embed URL or code. Learn more
fetch('https://project-semiotica-api.onrender.com/oembed?url=https://project-semiotica-api.onrender.com/analytics')
  .then(response => response.json())
  .then(data => {
    document.getElementById('container').innerHTML = data.html;
  });
{ "version": "1.0", "type": "rich", "title": "Project Semiotica Analytics Dashboard", "author_name": "Project Semiotica", "author_url": "http://localhost:8080", "provider_name": "Project Semiotica", "provider_url": "http://localhost:8080", "cache_age": 3600, "html": "
...
", "width": 600, "height": 400 }
async function embedContent(url, containerId) { const oembedUrl = `http://localhost:8080/oembed?url=${encodeURIComponent(url)}&maxwidth=600&maxheight=400`; try { const response = await fetch(oembedUrl); const data = await response.json(); const container = document.getElementById(containerId); container.innerHTML = data.html; } catch (error) { console.error('Error fetching oEmbed:', error); } } // Usage embedContent('http://localhost:8080/analytics', 'myContainer');