OpenGraph.io

Link Preview API for Instant Metadata Extraction

Extract Open Graph data, titles, descriptions, and images from any link with a single API call. Ideal for messaging apps, social feeds, and content enrichment.

No credit card required.

GET https://opengraph.io/api/1.1/site/:site
// Example API Call
https://opengraph.io/api/1.1/site/https%3A%2F%2Freddit.com?app_id=xxxxxx
//Response
{
  "hybridGraph": {
    "title": "reddit",
    "description": "Reddit is where millions of people gather for conversations about the things they care about, in over 100,000 subreddit communities.",
    ...
https://opengraph.io/api/1.1/scrape/https%3A%2F%2Freddit.com

Transform URLs into Rich Visual Experiences

Our Site Unfurling API gives you everything you need to create beautiful link previews and rich media cards from any URL.

OpenGraph Support

Extract all OpenGraph tags from any webpage, including title, description, image, and more for perfect social sharing.

Used by Facebook, Twitter, LinkedIn

Twitter Cards

Get Twitter Card metadata to see how your links will appear when shared on Twitter and other platforms that support this format.

Enhanced social engagement

JavaScript Rendering

Our API can fully render JavaScript before extracting metadata, ensuring you get accurate data from dynamic websites and SPAs.

Works with React, Vue, Angular

Fallback Extraction

Even when sites don't have proper metadata, our intelligent fallback system extracts the most relevant content and images.

99.8% success rate

Extract rich metadata

Get consistent link previews without manual effort. Our API provides a reliable way to extract metadata from any URL programmatically.

Complete metadata extraction: Extract all available metadata including OpenGraph, Twitter Cards, and standard HTML meta tags.

Intelligent fallbacks: When metadata is missing, our API intelligently extracts relevant content from the page.

Structured JSON response: Receive a clean, structured JSON response with all extracted metadata, ready to use in your application.

OpenGraph Data

og:titleExample Website
og:descriptionThis is an example website with rich metadata
og:imagehttps://example.com/image.jpg
og:urlhttps://example.com

Customize everything

Tailor your metadata extraction

Control how metadata is extracted with simple yet powerful parameters to match your specific needs.

Cache control: Choose whether to use cached results for faster response times or always fetch fresh data.

JavaScript rendering: Enable or disable full JavaScript rendering for dynamic websites and single-page applications.

Proxy support: Use our proxy service to bypass bot protection and access websites that might block scrapers or API requests.

cache_ok
true
false
full_render
true
false
use_proxy
true
false

Bring Social-Style Link Previews to Your App

Add rich, engaging link previews—just like social media platforms—directly to your product, feed, or chat.

Your users will be impressed by the quality of link previews in your application.

100 free API requests per month.

Platform-specific optimization: Get metadata optimized for different platforms like Facebook, Twitter, LinkedIn, and more.

All Page Images Provided: Get a complete list of every image found on the page, so you can select the perfect one for your link preview or application.

Consistent results: Get reliable and consistent metadata extraction across all websites, even those with complex structures.

reddit

www.reddit.com

reddit

Reddit is where millions of people gather for conversations about the things they care about, in over 100,000 subreddit communities.

Developer Friendly

Integrate in Minutes

Use the language you love

import fetch from 'node:fetch';

// Site Unfurling API
const unfurlLink = async () => {
// Replace xxxxxx with your app_id or access_key
const url = "https://opengraph.io/api/1.1/site/https://example.com?app_id=xxxxxx";

try {
  const response = await fetch(url);
  const data = await response.json();
  console.log('Link preview:', data);
} catch (error) {
  console.error('Error unfurling link:', error);
}
};

unfurlLink();
Our Clients

Trusted by Thousands

Over 1B Site Previews!

Try it for free today

Get started with 100 free API requests per month. No credit card required. Experience the power of our API with zero commitment.

FAQ

The Site Unfurling API allows you to extract rich metadata from any URL, including OpenGraph tags, Twitter Cards, and standard HTML meta tags. It's commonly used for generating link previews in messaging apps, social media platforms, content curation tools, and more.
Our API includes intelligent fallback mechanisms that can extract relevant content from the page even when proper metadata is missing. It can identify the main title, description, and images based on the page content and structure, ensuring you always get useful data.
Yes, our API supports caching through the 'cache_ok' parameter. When enabled, the API will return cached results if available, significantly improving response times. You can also force a fresh fetch by setting this parameter to false when you need the most up-to-date data.
Yes, our API can fully render JavaScript before extracting metadata, ensuring accurate results from dynamic websites and single-page applications. This can be controlled with the 'full_render' parameter, allowing you to balance between speed and completeness based on your needs.
The API returns data in JSON format, with structured fields for different types of metadata. This includes general metadata (title, description, image), OpenGraph data, Twitter Card data, and more. The structured format makes it easy to integrate with your applications.

Still have Questions? 🤔

Can't find the answer you're looking for? Please chat to our friendly team. We usually respond within 24 hours.