Tools

/

Meta Tag Extractor

extract

Meta Tag Extractor

Extract meta tags, Open Graph, and Twitter cards from raw HTML with an API-ready meta extractor.

1 credit / run

Playground

About this tool

Meta tag extractor API helps you pull all SEO metadata from raw HTML in a single request. Use this meta tag extractor to audit page SEO, analyze competitor metadata, or validate social sharing tags. It extracts title, description, keywords, canonical URL, Open Graph properties, and Twitter card data into a structured response. Send any HTML string and the meta tag extractor identifies all relevant metadata using a robust parsing engine. Whether you are building an SEO audit tool, checking social previews, or migrating content between platforms, this tool gives you complete metadata without manual inspection. The meta tag extractor returns the page title, meta description, meta keywords, and canonical URL. It also captures Open Graph tags (og:title, og:description, og:image, og:url, og:type) and Twitter card tags (card, title, description, image). Use this data to verify SEO compliance, generate reports, or populate CMS fields. Common use cases include SEO audits, content migration, and social media optimization. Developers embed this meta extractor in automation scripts to validate metadata across sites. Marketing teams use it to ensure consistent branding in social previews. The API returns results instantly, suitable for real-time processing or batch analysis. To extract metadata from a live webpage, first fetch the HTML using your preferred method, then pass the raw HTML to this endpoint. The API accepts POST requests with a JSON body containing your HTML. Missing tags return as undefined, making it easy to identify gaps. This meta tag extractor works well alongside extract-headings-from-html and extract-structured-data for complete SEO analysis. For link audits, combine with extract-links-from-html.

Inputs

Name

Type

Required

Description

html

string

true

The raw HTML content to parse for meta tags.

Outputs

Name

Type

Description

title

string

Page title from the title tag.

description

string

Meta description content.

keywords

string

Meta keywords content.

canonical

string

Canonical URL from link rel=canonical.

openGraph

object

Open Graph tags (title, description, image, url, type).

twitter

object

Twitter card tags (card, title, description, image).

Examples

Request

{ "html": "<!DOCTYPE html><html><head><title>Example Page</title><meta name=\"description\" content=\"An example page for testing.\"><meta property=\"og:title\" content=\"Example OG Title\"><meta property=\"og:image\" content=\"https://example.com/image.jpg\"><link rel=\"canonical\" href=\"https://example.com/page\"></head><body></body></html>" }

Response

{ "title": "Example Page", "description": "An example page for testing.", "canonical": "https://example.com/page", "openGraph": { "title": "Example OG Title", "image": "https://example.com/image.jpg" } }

Frequently Asked Questions

What does the meta tag extractor return?

Title, description, keywords, canonical URL, Open Graph properties, and Twitter card data when present.

Does it extract Open Graph tags?

Yes, it extracts og:title, og:description, og:image, og:url, and og:type into an openGraph object.

Does it extract Twitter card tags?

Yes, it extracts twitter:card, twitter:title, twitter:description, and twitter:image into a twitter object.

How do I call the meta tag extractor API?

POST to /api/run/extract-meta-from-html with a JSON body containing your html field.

What if a tag is missing?

Missing tags return as undefined, making it easy to identify gaps in your metadata.

Changelog

2025-01-05

Initial tool release.

Similar Tools

Browse additional tools within this category that solve related problems. Each tool is designed to handle a specific task, but they work best when combined. Use multiple endpoints together to create efficient data processing pipelines, automate repetitive tasks, or build complete solutions tailored to your needs."

Pricing

Top quality, fair pricing

Start free, then unlock premium tools and higher limits when you’re ready.

Guest

$0Forever

For quick tests and light usage.

  • Privacy first
  • Access to basic tools
  • Strict rate limits applied
  • No API keys needed
  • No support

Paid

$79/ month

For production apps and premium tools.

  • Privacy first
  • Access to basic tools
  • Access to premium tools
  • Access to AI tools
  • Higher rate limits
  • Priority support
  • Usage insights
  • 250,000 credits per month

Enterprise

Custom

For teams needing custom limits, security, and SLAs.

  • Privacy first
  • Full access to tools
  • Custom limits
  • SLA
  • Dedicated support
  • Team onboarding
  • Security review
  • Real‑time streaming responses

Technical & Professional Built for Divhunt. Available for Enterprise.

Skip building infrastructure. Use the same battle-tested APIs that power Divhunt V2.

Get in Touch

Built in Divhunt

We use cookies.

By clicking “Accept All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View ourCookie Policyfor more information.

Optahunt

Preferences

Manage your cookie preferences.

Essentials

Always Active

These are required for the website to work, like remembering your privacy settings, keeping you logged in, or enabling secure payments.

Performance

These help us understand how people use our site (like which pages are most popular) so we can make improvements.

Personalization

These allow the site to remember your preferences (such as language or region) and provide enhanced features.

Advertising & Targeting

These are used to deliver ads more relevant to you, limit how often you see them, and measure campaign performance.

Save my preferences

You can always change these settings later via ourCookie Policy pagepage, or via the cookie widget placed at the bottom left of the page.