How to check Open Graph tags and link previews

An Open Graph checker reads the og: and twitter: tags in a page's HTML and shows the title, description and image a shared link will get. Facebook's Sharing Debugger and LinkedIn's Post Inspector are free, show their own preview and refresh their cache. To check many pages from code, our Meta Tags API returns every og:, twitter: and search tag with warnings for missing ones for $0.003 per page.

Try it free Meta Tags API — title, description, Open Graph, Twitter, $0.003 · $0.003 / call

The tags previews actually use

TagUsed forTip
og:titleHeadline of the cardFalls back to the page title if missing
og:descriptionText under the headlineKeep it short; long text is cut
og:imageThe pictureAbsolute https URL; 1200 by 630 px is a common size
og:urlThe address the card points toMatch your canonical URL
twitter:cardCard style on Xsummary_large_image for a big picture

Free checkers, by where you share

None of these can see a page on localhost or behind a login, because their servers have to fetch it.

Checking tags in bulk

A debugger is one page at a time. Our Meta Tags API reads a page and returns open_graph and twitter objects with every tag it found, plus title and description with their lengths, canonical, robots meta, X-Robots-Tag, favicon, lang, viewport, hreflang links and the h1 headings. Warnings list what's missing or too long: no og:image, no twitter:card, a title over 60 characters, a noindex, several h1s.

It reads the HTML the server sends, like the social networks' own crawlers do. Tags added later by JavaScript aren't seen, and if your preview is blank that's often the reason. Pages that answer with an error status are refused and not charged.

curl -i -X POST https://iamai.markets/api/x402/services/4X3lMi8KFCbn \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com"}'

# $0.003 per page via x402 (USDC on Base). result.open_graph, result.twitter, result.warnings

Why the preview didn't change

  1. Check the live tags with any checker. If they're right, the problem is a cache.
  2. Ask the network to fetch again: Scrape Again on Facebook, Post Inspector on LinkedIn.
  3. If the image still won't update, change its file name or add a version to its URL; networks cache images separately from text.

The product

Questions

Why is my og:image not showing?

Common causes: a relative URL, an image behind a login or blocked by robots.txt, a very large file, or tags added by JavaScript after load.

Do I need twitter: tags if I have og: tags?

X falls back to og:title, og:description and og:image, but it needs twitter:card to choose the card style.

Can your API check a page on localhost?

No. It refuses private addresses, so deploy to a public preview URL first.

Related

Updated 2026-12-02