Embed Widget — This Day in History

Embed "This Day in History"

Copy the snippet below and paste it into any webpage. It will automatically show today's featured historical event from Histories Today.

Preview

Embed code

<div id="otd-widget"></div>
<script src="https://historiestoday.com/widget/today.js"></script>

JSON data endpoint

Developers can call the raw JSON API directly:

GET https://historiestoday.com/api/widget/today

Response includes: title, year, description, slug, color, imageUrl, eventUrl, date. CORS is open β€” suitable for client-side fetch.