About this endpoint
What it does
Validates the structured data found in raw HTML content. It accepts an HTML string in the request body and returns the extracted structured-data-related artifacts and summary information found in the page.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| html | String | Yes | Raw HTML content to validate for structured data. Maximum length: 5,000,000 characters. |
Response
Returns a JSON object with these top-level fields: url string, json_ld array of objects, summary object, meta_tags object, microdata array of objects, open_graph object, source_url string, and twitter_card object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | The URL associated with the validated HTML, if provided in the response. |
| json_ld | Object Array | No | JSON-LD objects extracted from the HTML. Each item is an object that may contain additional properties. |
| summary | Object | No | Validation summary information. Contains the following fields: warnings integer, types_found string array, overall_score number, total_entities integer, critical_errors integer, and rich_results_eligible string array. |
| meta_tags | Object | No | Meta tag data extracted from the HTML. The object may contain additional properties. |
| microdata | Object Array | No | Microdata objects extracted from the HTML. Each item is an object that may contain additional properties. |
| open_graph | Object | No | Open Graph data extracted from the HTML. The object may contain additional properties. |
| source_url | String | No | The source URL associated with the HTML, if provided in the response. |
| twitter_card | Object | No | Twitter card data extracted from the HTML. The object may contain additional properties. |