{"id":"t/jsonld_extract","kind":"forged","name":"jsonld_extract","description":"Fetches a public URL, extracts all <script type=\"application/ld+json\"> blocks, parses them as JSON, and returns the parsed objects along with a count. Useful for pulling schema.org structured data (Product, Article, Organization, etc.) from a web page.","tags":["json-ld","schema.org","structured-data","scraping","seo"],"method":"POST","path":"/v1/t/jsonld_extract","url":"https://toll402.dev/v1/t/jsonld_extract","specUrl":"https://toll402.dev/v1/spec/t/jsonld_extract","price":"$0.003","priceUsd":0.003,"available":true,"inputSchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the page to extract JSON-LD from"}},"required":["url"]},"example":{"url":"https://example.com"},"meta":{"creator":null,"createdAt":"2026-09-09T07:03:12.820Z","calls":10,"failures":10,"network":true,"notes":"Fetches the given HTTPS URL, extracts all <script type=\"application/ld+json\"> blocks via regex, strips HTML comments, JSON.parse's each block (handling both single objects and arrays, plus @graph unwrapping), and returns the flattened list of structured-data objects with a count; malformed JSON blocks are silently skipped rather than fabricated."}}