Meta tags

GET /api/v1/meta-tags

A complete dump of a page's head metadata in one call — title, charset, language, canonical, every <meta name> and <meta http-equiv>, full Open Graph and Twitter Card tags, and the SEO-relevant <link rel> tags (canonical, amphtml, manifest, hreflang, icons, prev/next).

Query parameters

NameTypeDescription
url requiredstringThe page to inspect.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com",
  3. "title": "Example Domain",
  4. "titleLength": 14,
  5. "charset": "UTF-8",
  6. "lang": "en",
  7. "canonical": "https://example.com/",
  8. "meta": { "description": "An example site", "viewport": "width=device-width, initial-scale=1", "robots": "index, follow" },
  9. "httpEquiv": { "content-type": "text/html; charset=UTF-8" },
  10. "openGraph": { "og:title": "Example", "og:type": "website", "og:image": "https://example.com/og.png" },
  11. "twitter": { "twitter:card": "summary_large_image", "twitter:title": "Example" },
  12. "links": {
  13. "amphtml": null,
  14. "manifest": "https://example.com/site.webmanifest",
  15. "prev": null,
  16. "next": null,
  17. "icons": ["https://example.com/favicon.ico"],
  18. "alternates": [ { "hreflang": "en", "href": "https://example.com/" } ],
  19. "preconnect": 2,
  20. "preload": 0
  21. },
  22. "counts": { "metaTags": 9, "openGraph": 3, "twitter": 2, "hreflang": 1 }
  23. }

Response fields

FieldTypeDescription
titleLengthintegerCharacter length of the title.
charset / langstringDeclared character set and <html lang>.
canonicalstringThe canonical URL, or null if not set.
metaobjectEvery <meta name> as a name → content map.
httpEquivobjectEvery <meta http-equiv> as a key → content map.
openGraph / twitterobjectAll Open Graph (og:*) and Twitter Card (twitter:*) tags.
linksobjectKey <link rel> tags: amphtml, manifest, prev/next, icons[], alternates[] (hreflang), plus preconnect/preload counts. Absent tags are null.
countsobjectTotals: metaTags, openGraph, twitter, hreflang.

See Errors for status codes.