How to Extract Metadata from Any URL in 5 Lines of Code

Every time you paste a link into Slack, Discord, or Twitter, the platform fetches that page's metadata — title, description, image, author — and renders a rich preview. That's Open Graph and Twitter Cards at work.

Here's how to do the same thing in your own app, using the Link Preview & Metadata Extractor on Apify.

What You Get

For any URL, the actor returns: