# Open Graph Scraper API: Parse OG and Twitter Tags

> Open Graph scraper API: read any URL’s og:title, og:image, Twitter card, canonical and favicon as JSON for link previews and SEO audits. One upAPI key.

Parse Open Graph Metadata fetches a URL and returns its link-preview metadata as flat JSON, so you can build a link unfurler, a bookmark manager or an SEO audit without writing an HTML parser. From the page it extracts the title and meta description, the Open Graph fields ogTitle, ogDescription, ogImage, ogType and ogSiteName, the Twitter card fields twitterTitle, twitterDescription and twitterImage, the canonical URL and the favicon. The only input is the url. It reads the raw HTML the server sends rather than rendering the page in a browser, so metadata that a page injects with client-side JavaScript after it loads is not seen. Redirects are followed, and the response reports both the url you sent and the finalUrl it ended on, together with the HTTP status. A server error or an empty body raises an error, while a client-error page such as a 404 is returned with its status, so you can tell a dead link from a failed fetch. Every call authenticates with your upAPI key. The exact price and cache lifetime are on this page’s FAQ, generated from the same catalog the calls run against.

## Operations

- [Parse Open Graph Metadata](https://upapi.io/apis/seo-tools/opengraph-parse) (1 unit): Fetch a URL and extract its Open Graph, Twitter Card, <title>, description, canonical, and favicon metadata - everything needed to render a rich link preview.

## Frequently asked questions

### Which Open Graph and Twitter card tags does the API return?

ogTitle, ogDescription, ogImage, ogType and ogSiteName for Open Graph, twitterTitle, twitterDescription and twitterImage for the Twitter card, plus the page title, meta description, canonical URL and favicon. A tag the page does not declare comes back empty.

### Does it execute JavaScript on the page?

No. It parses the raw HTML the server returns, so tags added by client-side JavaScript after load are not picked up. Pages that render their meta tags on the server work as expected.

### How do I get the canonical URL and favicon of a page?

Send the page URL and read the canonical and favicon fields of the response. finalUrl tells you where the request ended up after redirects, which is the address to compare the canonical against.

### What happens when the URL redirects or returns an error?

Redirects are followed and reported in finalUrl. A 4xx response is returned with its HTTP status in the status field, so you can distinguish a dead link from a failure; a 5xx response or an empty body raises an error.

### How much does this cost?

Every operation in this cluster costs 1 weighted unit per call, drawn from your plan’s pooled monthly quota — see upapi.io/pricing for what a unit costs on each tier.

### How fresh is the data — is it cached?

every cached operation here returns a response held for 1 hour. A repeat call inside a cached window returns the cached response and is billed nothing.

Last updated 2026-10-20.
