{"uid":"cap_7fACJBmLeWZGJcOb2WBxB","slug":"agent402-tools-html-meta-extractor-3536975a","name":"agent402.tools HTML Meta Extractor","description":"Extract <title>, <meta description>, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from an HTML string. Distinct from /api/meta which fetches a URL - feed this the HTML you already have (from /api/render, /api/extract.body, or your own fetch).","url":"https://agent402.tools/api/html-meta","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"Raw HTML string to inspect (max 5MB)"}}},"responseSchema":{"type":"json","example":{"og":{"title":"Hi OG"},"title":"Hi","jsonLd":[],"twitter":{},"canonical":null,"description":"x"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ia-U7ZKmmP9HMcljH9yYl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts title, meta description, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from a raw HTML string you already have.","exampleAgentPrompt":"I already have the raw HTML of this page — can you pull out the title, meta description, OpenGraph tags, canonical URL, and any JSON-LD blocks from it?","exampleUseCases":null,"resultDescription":"Returns extracted metadata fields from the HTML including the page title, meta description, OpenGraph and Twitter card properties as key-value pairs, the canonical URL if present, and any JSON-LD structured data blocks found in the document.","failureModes":["HTML string exceeds 5MB limit — returns error","Malformed or empty HTML with no extractable metadata — returns empty fields","Missing required 'html' field in request body — returns validation error","Very large or deeply nested JSON-LD may be partially parsed"],"whenToPreferThis":"Use this endpoint when you already have raw HTML in memory (e.g. from a prior render or fetch step) and need to extract SEO/metadata fields without making an additional HTTP request. Prefer this over /api/meta when you want to avoid a second network round-trip to re-fetch a URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:57.472Z","isFirstParty":false}