Structured Data Extractor: JSON-LD, Microdata, RDFa avatar

Structured Data Extractor: JSON-LD, Microdata, RDFa

Pricing

from $4.50 / 1,000 page processeds

Go to Apify Store
Structured Data Extractor: JSON-LD, Microdata, RDFa

Structured Data Extractor: JSON-LD, Microdata, RDFa

Check the schema.org markup in your page source and find the JSON-LD that won't parse. It reads JSON-LD, Microdata and RDFa on a list of pages or pasted HTML, groups every item by schema.org type, gives the line and column of each JSON-LD error, and lists Open Graph tags.

Pricing

from $4.50 / 1,000 page processeds

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Give it a list of page URLs, or paste the HTML of a page, and it returns every structured data item on each page, grouped by schema.org type, with any broken JSON-LD reported down to the line and column.

Use it for

  • Checking that a product, article or event page carries the schema.org markup you expect.
  • Finding JSON-LD blocks that don't parse, with the line and column of the fault.
  • Reading the Open Graph and Twitter Card tags of a page in one pass.

Sample

Input, one page:

{ "urls": [{ "url": "https://en.wikipedia.org/wiki/Markdown" }] }

The run returned one row for the page. It found structured data in two formats: 1 JSON-LD item and 237 RDFa items, 238 items in all, with no Microdata. The JSON-LD item sits under byType.Article:

{
"format": "jsonLd",
"data": {
"@type": "Article",
"name": "Markdown",
"url": "https://en.wikipedia.org/wiki/Markdown",
"publisher": { "@type": "Organization", "name": "Wikimedia Foundation, Inc." }
},
"block": 1
}

What you get for each page

  • Items grouped by type. Products, recipes, articles, breadcrumbs, organizations and every other type sit under their own key, with schema.org types shortened to their plain name (Product, not https://schema.org/Product). Each item says which format it came from and, for JSON-LD, which script block.
  • Items in all three formats: JSON-LD (including @graph lists), Microdata and RDFa.
  • Each JSON-LD block is parsed on its own, so one broken block does not hide the others. A block that is not valid JSON is reported with the parser message, line, column and the text around the fault. When the only faults are comments or trailing commas, the data is still returned and the error is marked as recovered.
  • A type summary. types lists the top level types, nestedTypes lists types found inside them (such as Offer inside Product), and counts gives the number of items per format.
  • Open Graph and Twitter Card tags, as plain key and value pairs.
  • A type filter, to keep only the types you care about.

Input

  • Page URLs, HTML to check (with an optional base URL), or both
  • Formats: JSON-LD, Microdata, RDFa, Open Graph, Twitter Card (default all)
  • Only these types (optional), such as Product or Recipe
  • Include RDFa without a type (default off)
  • Pages at once (default 5) and page timeout (default 30 seconds)

Output

Dataset: one item per page with url, finalUrl, statusCode, ok, formatsFound, counts, types, nestedTypes, itemCount, byType, openGraph, twitterCard, errors, errorCount and warnings. Pasted HTML gives an item with source: "html input".

RDFa attributes that only describe the page itself (such as role and vocab declarations) are left out, and Open Graph tags are reported under openGraph instead of being repeated as RDFa. RDFa nodes with no type, such as those from rel attributes on ordinary links, are left out unless you turn on "Include RDFa without a type".

A page that cannot be read returns an item with ok: false and the reason, such as HTTP 500 or an address that is not http or https. The rest of the run carries on.

Export as JSON, CSV or Excel, or read it over the API.

Pricing

Pay per event: one event per page read. A page that fails is not charged. The run stops when it reaches the maximum charge you set.

Scope and conduct

The actor downloads only the HTML of each URL you list, so it doesn't see markup that scripts add after the page loads. It follows no links and uses no login.

From the same account, for checking a website:

Support

Questions and problems: the Issues tab on this page.