Open Graph API

Extract Open Graph tags from any URL

ogfetch is an Open Graph API that returns every og: tag, Twitter card tag, and favicon for any public URL as clean JSON. One HTTP call, no headless browser, no scraping setup. Use it to build link previews, social cards, and rich embeds.

100 free requests on signup. No credit card required.

Open Graph API request

curl -G https://ogfetch.dev/v1/fetch \
  -H "X-Api-Key: ogf_your_key" \
  --data-urlencode "url=https://github.com"

# Response (trimmed)
{
  "og": {
    "title": "GitHub: Let's build from here",
    "image": "https://.../homepage.png",
    "type": "website",
    "siteName": "GitHub"
  },
  "twitter": { "card": "summary_large_image" },
  "favicon": "https://github.com/favicon.ico"
}

Try it now

No signup needed. Paste a URL and see the JSON.

Loading...

01

Every OG tag, parsed

og:title, og:description, og:image, og:type, og:url, and og:site_name come back as a structured object with absolute image URLs already resolved.

02

Twitter cards too

You also get twitter:card, twitter:title, twitter:image, and twitter:creator, so a single call covers every major social preview format.

03

Built to be cheap and fast

Plain HTTP fetch and HTML parse, typically under 200ms. No Puppeteer, no per-render cost. Pay only for what you call, credits never expire.

FAQ

What is an Open Graph API?

An Open Graph API takes a URL, fetches the page, and returns its Open Graph meta tags (og:title, og:image, og:description, and more) in a structured format. ogfetch does this in one HTTP call and returns clean JSON, so you do not have to fetch and parse HTML yourself.

Does it resolve relative image URLs?

Yes. og:image and favicon values are resolved to absolute URLs against the final page URL after redirects, so you can use them directly in an <img> tag.

Does it render JavaScript?

No. ogfetch does a plain HTTP fetch and parses the returned HTML. Open Graph tags live in the static <head> on virtually every site, so this works for blogs, e-commerce, news, GitHub, and the vast majority of URLs.

How much does it cost?

You get 100 free requests on signup. After that, one-time credit packs start at $3 for 1,000 requests and credits never expire. No subscription required.

Start with 100 free requests

No credit card required. API key delivered to your inbox.

Get my API key