Skip to main content

Structured Data API

developer
GET/v1/domain/structured-data

Extracts and validates structured data markup (JSON-LD, Microdata) from web pages. Identifies schema.org types used and validates against specifications.

What It Does

Parses HTML for JSON-LD 1.1 script blocks and Microdata markup. Identifies schema.org types (Organization, Product, Article, etc.), validates required properties, and checks for common errors.

Why It's Useful

Structured data enables rich search results (stars, prices, FAQs in search). Proper implementation improves click-through rates and search visibility.

Use Cases

SEO Specialist

Rich Results Optimization

Audit structured data to maximize rich result eligibility in search.

Improve search result appearance and click-through rates.

Content Strategist

Competitive Analysis

Analyze competitor structured data to understand their rich result strategy.

Identify schema types to implement for competitive advantage.

Developer

Implementation Validation

Verify JSON-LD implementation before deploying to production.

Catch structured data errors before they affect search visibility.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com

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.
hasStructuredDatabooleanWhether any structured data was found
jsonLdarrayParsed JSON-LD objects with validation results
schemaTypesarraySchema.org types found
richResultsEligibilityarrayPer-type Google Search Gallery eligibility (ready, missingRequired, missingRecommended, googleSearchGalleryUrl). Tells you whether each markup block will ACTUALLY get rich results — not just whether the JSON-LD parses.
strategicGapsobjectHigh-leverage SERP features commonly missing: missingBreadcrumbList (SERP breadcrumbs), missingOrganization (brand knowledge panel), missingWebSite + missingSiteSearchAction (SERP sitelinks search box). Each is a small JSON-LD block that produces immediate, visible SERP changes.
microdataarrayMicrodata items found
summaryobjectSummary of structured data analysis
errorsarrayValidation issues detected
scorenumberQuality score (0-100)
gradestringLetter grade (A+ to F) based on score
recommendationsarrayImprovement suggestions

Code Examples

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

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/structured-data?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/structured-data?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/structured-data?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 Structured Data guide

Learn the concepts, choose a practical workflow, and interpret the observations from Structured Data 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 Structured Data endpoint live in the playground.

    Structured Data API Reference | EdgeDNS