{"uid":"cap_tsi8DNHdd3PxF5oh3GASo","slug":"402utils-link-preview-meta-extractor-f840175d","name":"402utils Link Preview / Meta Extractor","description":"Link preview for any web page: fetches a URL and parses only the <head> (no JS, no rendering). Returns title, meta description, canonical URL, language, an always-absolute favicon, all Open Graph and Twitter Card tags, and RSS/Atom/JSON-feed links. Tolerant of messy real-world HTML and non-UTF-8 charsets. The caller-supplied URL is SSRF-checked; the fetch is capped at 5 MB and 8 s.","url":"https://402utils.com/v1/meta-extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public http(s) page URL (required)."}},"description":"Query string only."}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["url","finalUrl","title","description","canonical","lang","favicon","og","twitter","feeds"],"properties":{"og":{"type":"object","description":"All og:* metas, prefix stripped (og:image → image). First occurrence wins.","additionalProperties":{"type":"string"}},"url":{"type":"string","description":"The URL as requested."},"lang":{"type":["string","null"],"description":"<html lang>."},"feeds":{"type":"array","items":{"type":"object","required":["url","type"],"properties":{"url":{"type":"string"},"type":{"type":"string"},"title":{"type":"string"}}},"description":"link[rel=alternate] RSS/Atom/JSON-feed references."},"title":{"type":["string","null"],"description":"<title>, entity-decoded, whitespace-collapsed."},"favicon":{"type":"string","description":"Always absolute; falls back to <origin>/favicon.ico."},"twitter":{"type":"object","description":"All twitter:* metas (name= or property=), prefix stripped.","additionalProperties":{"type":"string"}},"finalUrl":{"type":"string","description":"URL after redirects; base for absolutization."},"canonical":{"type":["string","null"],"description":"link[rel=canonical], absolutized."},"description":{"type":["string","null"],"description":"meta[name=\"description\"] only (og:description stays in og)."}}}}}}},"responseSchema":{"type":"json","example":{"og":{"type":"website","image":"https://blog.cloudflare.com/og.png","title":"The Cloudflare Blog"},"url":"https://blog.cloudflare.com/","lang":"en","feeds":[{"url":"https://blog.cloudflare.com/rss/","type":"application/rss+xml","title":"The Cloudflare Blog"}],"title":"The Cloudflare Blog","favicon":"https://blog.cloudflare.com/favicon.ico","twitter":{"card":"summary_large_image","site":"@cloudflare"},"finalUrl":"https://blog.cloudflare.com/","canonical":"https://blog.cloudflare.com/","description":"Get the latest news on how products at Cloudflare are built."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LvhKqrZ2uU3iECROKxklX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL's <head> and returns structured metadata: title, description, canonical URL, language, favicon, Open Graph tags, Twitter Card tags, and feed links — no JS execution, SSRF-safe.","exampleAgentPrompt":"Can you pull the link preview metadata for https://stripe.com — I need the page title, meta description, og:image, favicon URL, and any RSS feeds it exposes?","exampleUseCases":null,"resultDescription":"A JSON object containing: the requested URL, the final URL after redirects, the page title (entity-decoded, whitespace-collapsed), meta description, canonical URL, HTML lang attribute, an always-absolute favicon URL, all og:* tags (prefix stripped), all twitter:* tags (prefix stripped), and an array of RSS/Atom/JSON feed links with their type and title.","failureModes":["SSRF check blocks private/internal IP URLs — returns an error without fetching","Page exceeds 5 MB response body cap — fetch is truncated or rejected","Fetch times out after 8 seconds — returns a timeout error","Malformed or unreachable URL — returns a network or DNS error","Non-UTF-8 charset pages may have imperfect text decoding but are tolerated best-effort","Pages requiring JavaScript rendering will return empty or minimal metadata since no JS is executed"],"whenToPreferThis":"Use this endpoint when you need fast, lightweight extraction of webpage metadata (title, description, OG tags, Twitter Card, feeds, favicon) from a URL without full browser rendering. Ideal for link unfurlers, content enrichment pipelines, social preview generation, and feed discovery. Prefer it over full-page scrapers when you only need <head> data and want SSRF safety and size/time limits built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:31:26.308Z","isFirstParty":false,"canonicalSlug":"402utils-link-preview-meta-extractor-f840175d"}