Skip to main content

Meta Tags API

free
GET/v1/domain/meta

Extracts all meta tags from a webpage including title, description, Open Graph, Twitter Cards, and other SEO-relevant elements. Essential for SEO auditing and social sharing analysis.

What It Does

Fetches the target URL and parses all meta tags including standard SEO tags (title, description, keywords), Open Graph tags (og:title, og:image, etc.), Twitter Card tags, canonical URLs, robots directives, and viewport settings.

Why It's Useful

Meta tags control how your pages appear in search results and social media shares. Regular auditing ensures your SEO and social presence is optimized and consistent across pages.

Use Cases

SEO Specialist

SEO Audit

Audit meta tags across website pages to identify missing or duplicate titles and descriptions.

Improve search rankings by fixing meta tag issues at scale.

Marketing Manager

Social Share Preview

Verify Open Graph and Twitter Card tags before launching marketing campaigns.

Ensure social media shares display correctly with proper images and text.

Content Strategist

Competitive SEO Analysis

Analyze competitor meta tags to understand their SEO strategy and keyword targeting.

Inform content strategy based on competitor positioning.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com
validateImagesquerybooleanOptionalWhen true, Range-byte probes og:image and twitter:image to verify real dimensions against OGP / Twitter Card requirements. Catches undersized / wrong-aspect social images before they break social-platform unfurls. Adds up to 2 outbound fetches.Example: true

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
titlestringPage title
descriptionstringMeta description
openGraphobjectOpen Graph tags (title, description, image, type, url, etc.) plus typeIsValid and localeIsValid flags against OGP spec. When validateImages=true, imageProbe + imageValidation surface real pixel dimensions vs OGP's 1200×630 recommendation — catches undersized social-share images before they break LinkedIn/Slack/Discord/X unfurls.
twitterobjectTwitter Card tags. When validateImages=true, imageProbe + imageValidation surface real pixel dimensions vs the card-type-specific minimums (summary_large_image 300×157 min, 2:1 aspect).
robotsstringRobots meta directive (raw string)
robotsDirectivesobjectParsed robots directives: index/follow/noarchive/nosnippet/noimageindex/notranslate flags + maxSnippet, maxImagePreview (none/standard/large), maxVideoPreview, unavailableAfter. Reveals SERP-appearance controls users often don't realize they have.
keywordsstringMeta keywords if present
authorstringAuthor meta tag
viewportstringViewport meta tag
charsetstringCharacter encoding
generatorstringGenerator meta tag
verificationobjectSite/platform ownership verification tags (Google, Bing, Facebook, Pinterest, etc.) as a named bucket.
platformMetaobjectPlatform integration tags (Apple, Microsoft, Android Chrome, Pinterest, theme-color) as a named bucket. Used for PWA install + per-platform appearance.
duplicatesobjectCounts of meta tags repeated more than once. Google silently drops duplicate description/canonical; duplicate viewport breaks mobile rendering. criticalIssues lists the actionable ones.
otherobjectAdditional meta tags not categorized above (e.g., theme-color, referrer, rating)
scorenumberMetadata diagnostic score, 0–100.
gradestringGrade corresponding to the metadata score.
recommendationsstring[]Metadata improvements suggested by the observations.

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/meta?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/meta?domain=https%3A%2F%2Fexample.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/meta?domain=https%3A%2F%2Fexample.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Meta Tags guide

Learn the concepts, choose a practical workflow, and interpret the observations from Meta Tags before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Meta Tags endpoint live in the playground.

    Meta Tags API Reference | EdgeDNS