Skip to main content
Version: Next

extractMicrodata

Callable


  • Easily parse all schema.org microdata from a page with just a CheerioAPI object or raw HTML, following the microdata processing model.

    Text values are trimmed and their inner whitespace collapsed. URL-valued attributes are returned verbatim rather than resolved against the document's base URL.


    Parameters

    • raw: string

    Returns Promise<MicrodataItem[]>

    The document's top-level items. Nested items are the property values of their parent.