Overview
OpenGraphr is a lightweight API that extracts Open Graph metadata from any publicly accessible URL, returning properties such as title, description, image, and site name in a clean JSON format. This saves you from writing your own HTML parser and handling edge cases like relative URLs or missing tags. It is a practical building block for link-preview features in messaging apps, social platforms, or content aggregators.
Beginner Tip
You need a free API key from the provider. Pass the target URL as the "url" query parameter and your key as "api_key". The API makes a server-side request to fetch the page, so it bypasses CORS restrictions and works for any public URL. Always URL-encode the target URL before including it in the query string to avoid parsing errors.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from OpenGraphr",
"description": "Really simple API to retrieve Open Graph data from an URL",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
title The og:title value from the page, typically the article or page headline. description The og:description meta content, usually a short summary of the page. image Absolute URL of the og:image thumbnail used for link previews. url Canonical URL of the page as declared in og:url. site_name Name of the website as declared in og:site_name, e.g. "GitHub". Implementation Example
const url = "https://opengraphr.com/docs/1.0/overview";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →ApiFlash
ApiFlash provides a REST API that captures full-page or viewport screenshots of any public URL using a headless Chrome browser, returning the image as a PNG, JPEG, or WebP file.
Azure DevOps
Azure DevOps REST API provides programmatic access to all Azure DevOps services including work items, repositories, pipelines, test plans, and artifact feeds.
Base
⚠ UnavailableBase provides programmatic access to building quick backends via REST API.
Blague.xyz
⚠ UnavailableBlague.xyz provides programmatic access to la plus grande api de blagues fr/the biggest fr jokes api via REST API.
Blitapp
Blitapp is a screenshot-as-a-service API that lets you capture full-page or viewport screenshots of any web page on a schedule, then automatically sync them to cloud storage like Dropbox or Google Drive.