How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Turn any website into a type-safe API using AI (part 1)

calendar_today October 9, 2024 person Sleeyax domain worldtimeapi

Not too long ago I saw this post on X/Twitter: // Detect dark theme var iframe = document.getElementById(‘tweet-1833539593054130336-993’); if (document.body.className.includes(‘dark-theme’)) { iframe.src = “https://platform.twitter.com/embed/Tweet.html?id=1833539593054130336&theme=dark” } This idea intrigued me for a few days: turning any website into an API using AI? It sounded almost too good to be true. However, after experimenting with it, I can confidently say it’s not only possible but also much easier to achieve than you might expect.

open_in_new Read original post