Structured Data API
developer/v1/domain/structured-dataExtracts 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
Rich Results Optimization
Audit structured data to maximize rich result eligibility in search.
Improve search result appearance and click-through rates.
Competitive Analysis
Analyze competitor structured data to understand their rich result strategy.
Identify schema types to implement for competitive advantage.
Implementation Validation
Verify JSON-LD implementation before deploying to production.
Catch structured data errors before they affect search visibility.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain 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.
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL that was fetched, echoing the protocol used in the request. |
hasStructuredData | boolean | Whether any structured data was found |
jsonLd | array | Parsed JSON-LD objects with validation results |
schemaTypes | array | Schema.org types found |
richResultsEligibility | array | Per-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. |
strategicGaps | object | High-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. |
microdata | array | Microdata items found |
summary | object | Summary of structured data analysis |
errors | array | Validation issues detected |
score | number | Quality score (0-100) |
grade | string | Letter grade (A+ to F) based on score |
recommendations | array | Improvement 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 --request GET 'https://api.edgedns.dev/v1/domain/structured-data?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"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);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.