Extract the structured data (JSON-LD) of a page
check schema markup command line | show structured data of a page | extract json-ld from html | which schema does my seo plugin output | curl | json-ld | schema-org | structured-data | seocurl -s https://example.com/ | tr '\n' ' ' | grep -oP '<script[^>]*application/ld\+json[^>]*>.*?</script>'Pulls all <script type="application/ld+json"> blocks from the HTML. This quickly shows which schema types are output and whether several plugins generate duplicate markup. Google’s Rich Results Test then checks validity for rich results.
Note: For readable output, strip the tags with sed -E 's/<[^>]+>//g' and pipe the result to jq . (package jq). Microdata and RDFa are not covered.
Also searched as
- check schema markup command line
- show structured data of a page
- extract json-ld from html
- which schema does my seo plugin output