
How to Add Rich Link Previews to Any App in 5 Minutes
Building a chat app, newsletter tool, or content aggregator? You need link previews — those nice cards that show a title, description, and image when someone shares a URL. The pain: scraping Open Graph tags yourself means dealing with timeouts, JS-rendered pages, anti-bot blocks, and maintaining parsing logic. For most projects, it's not worth the overhead. I built MetaPeek — a URL metadata extraction API that runs on Cloudflare's edge network (300+ locations, sub-100ms responses). One GET request returns everything you need. The /v1/preview Endpoint This is the simplest way to get link preview data: const response = await fetch ( `https://metapeek.p.rapidapi.com/v1/preview?url= ${ encodeURIComponent ( url )} ` , { headers : { ' x-rapidapi-key ' : ' YOUR_API_KEY ' , ' x-rapidapi-host ' : ' metapeek.p.rapidapi.com ' } } ); const { title , description , image , icon , domain } = await response . json (); Response: { "title" : "GitHub: Let's build from here" , "description" : "GitHub is w
Continue reading on Dev.to Tutorial
Opens in a new tab

