Structured data

GET /api/v1/structured-data

Pull every piece of structured data off a page — JSON-LD, Microdata and Open Graph — parsed into schema types and fields, with validation messages flagging missing required properties.

Query parameters

NameTypeDescription
url requiredstringThe page to parse.
validate optionalbooleanRun schema.org validation and return errors/warnings. Default: true.

Request

Response

200 · application/json
  1. {
  2. "url": "https://example.com",
  3. "summary": {
  4. "count": 2,
  5. "formats": { "jsonLd": 1, "microdata": 1 },
  6. "detectedTypes": ["Organization", "BreadcrumbList"]
  7. },
  8. "items": [
  9. {
  10. "format": "json_ld",
  11. "types": ["Organization"],
  12. "fields": { "@context": "https://schema.org", "@type": "Organization", "name": "Example", "url": "https://example.com" }
  13. },
  14. {
  15. "format": "microdata",
  16. "types": ["BreadcrumbList"],
  17. "fields": { "name": "Home", "item": "https://example.com/" }
  18. }
  19. ],
  20. "openGraph": { "title": "Example", "description": "An example site", "type": "website" }
  21. }

Response fields

FieldTypeDescription
summary.countintegerTotal structured-data blocks found.
summary.formatsobjectCounts by format: jsonLd and microdata.
summary.detectedTypesstring[]Every schema.org type found across all blocks, deduped (e.g. Organization, Product, FAQPage, BreadcrumbList).
items[].formatstringjson_ld or microdata.
items[].typesstring[]schema.org @type values in the block.
items[].fieldsobjectThe parsed properties — the full JSON-LD object, or the itemprop name/value map for microdata.
openGraphobjectParsed Open Graph (og:*) tags as a key/value map.

See Errors for status codes.