Add a free joke of the day to any website in 2 minutes (no API key, no cookies)
I run GiggleTime , a joke site in 26 languages. We wanted an easy way for anyone to show a daily joke on their own pages: class websites, school newsletters, team dashboards, language-learning blogs. So we made a free widget, plus a tiny JSON endpoint for anyone who'd rather build their own. Here's how to use both. Option 1: paste an iframe <iframe src =…
GiggleTime, a joke website available in 26 languages, offers a simple way to display a daily joke on your own web pages. This can be done through an iframe or by fetching a JSON endpoint. The iframe method involves pasting a simple HTML snippet into your site, which shows a different joke every day. You can customize the joke language, category, theme, and size with URL parameters.
The widget page includes a configurator for easy setup. The widget is designed with several key features in mind, such as no cookies or third-party scripts, family-friendly content, content filtering, two-part jokes with hidden punchlines, and compatibility with various website platforms. The JSON method allows for more design flexibility, using a keyless, CORS-enabled endpoint.
The response includes the joke's title, setup, punchline, and URL in multiple languages. The request to display a small "Joke of the day by GiggleTime" link is the only requirement. GiggleTime also offers plugins for WordPress, including a block, sidebar widget, and shortcode.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to