
I got tired of building the same link preview function, so I made it an API
Every app I've built in the last few years has needed the same thing: paste a URL, show a preview card. Slack does it. Discord does it. Every CMS does it. And every time, I end up writing the same cheerio scraping code, handling the same edge cases with Open Graph tags, and debugging the same issue where Twitter Cards use name instead of property and half the internet gets it wrong. A little while ago I finally extracted all of that into a standalone API and put it on RapidAPI. Figured other people are writing the same code too. What it actually returns You pass a URL. You get back structured metadata across six layers: Open Graph (title, description, images with dimensions, article metadata) Twitter Cards (card type, site, creator; only tags that are actually present, no fallback guessing) HTML meta (title tag, meta description, canonical, theme color) Icons (auto-selects the highest quality favicon with a priority chain) Feeds (discovers RSS, Atom, and JSON Feed links) JSON-LD (parse
Continue reading on Dev.to Webdev
Opens in a new tab



