YouTube.js
Guide
Discord
❤️ Sponsor
GitHub
Guide
Discord
❤️ Sponsor
GitHub

youtubei.js / YTNodes / MicroformatData

Class: MicroformatData

Defined in: src/parser/classes/MicroformatData.ts:5

Extends

  • YTNode

Constructors

Constructor

new MicroformatData(data): MicroformatData

Defined in: src/parser/classes/MicroformatData.ts:32

Parameters

data

RawNode

Returns

MicroformatData

Overrides

YTNode.constructor

Properties

android_package

android_package: string

Defined in: src/parser/classes/MicroformatData.ts:14


app_name

app_name: string

Defined in: src/parser/classes/MicroformatData.ts:13


available_countries

available_countries: string[]

Defined in: src/parser/classes/MicroformatData.ts:30


description

description: string

Defined in: src/parser/classes/MicroformatData.ts:10


ios_app_arguments

ios_app_arguments: string

Defined in: src/parser/classes/MicroformatData.ts:16


ios_app_store_id

ios_app_store_id: string

Defined in: src/parser/classes/MicroformatData.ts:15


is_family_safe

is_family_safe: boolean

Defined in: src/parser/classes/MicroformatData.ts:28


is_unlisted

is_unlisted: boolean

Defined in: src/parser/classes/MicroformatData.ts:27


noindex

noindex: string

Defined in: src/parser/classes/MicroformatData.ts:26


og_type

og_type: string

Defined in: src/parser/classes/MicroformatData.ts:17


schema_dot_org_type

schema_dot_org_type: string

Defined in: src/parser/classes/MicroformatData.ts:25


site_name

site_name: string

Defined in: src/parser/classes/MicroformatData.ts:12


tags

tags: string[]

Defined in: src/parser/classes/MicroformatData.ts:29


thumbnail

thumbnail: Thumbnail[]

Defined in: src/parser/classes/MicroformatData.ts:11


title

title: string

Defined in: src/parser/classes/MicroformatData.ts:9


twitter_card_type

twitter_card_type: string

Defined in: src/parser/classes/MicroformatData.ts:23


twitter_site_handle

twitter_site_handle: string

Defined in: src/parser/classes/MicroformatData.ts:24


type

readonly type: string

Defined in: src/parser/helpers.ts:8

Inherited from

YTNode.type


url_applinks_android

url_applinks_android: string

Defined in: src/parser/classes/MicroformatData.ts:20


url_applinks_ios

url_applinks_ios: string

Defined in: src/parser/classes/MicroformatData.ts:19


url_applinks_web

url_applinks_web: string

Defined in: src/parser/classes/MicroformatData.ts:18


url_canonical

url_canonical: string

Defined in: src/parser/classes/MicroformatData.ts:8


url_twitter_android

url_twitter_android: string

Defined in: src/parser/classes/MicroformatData.ts:22


url_twitter_ios

url_twitter_ios: string

Defined in: src/parser/classes/MicroformatData.ts:21


type

static type: string = 'MicroformatData'

Defined in: src/parser/classes/MicroformatData.ts:6

Overrides

YTNode.type

Methods

as()

as<T, K>(...types): InstanceType<K[number]>

Defined in: src/parser/helpers.ts:29

Cast to one of the given types.

Type Parameters

T

T extends YTNode

K

K extends YTNodeConstructor<T>[]

Parameters

types

...K

The types to cast to

Returns

InstanceType<K[number]>

The node cast to one of the given types

Throws

If the node is not of the given type

Inherited from

YTNode.as


hasKey()

hasKey<T, R>(key): this is MicroformatData & { [k in string]: R }

Defined in: src/parser/helpers.ts:41

Check for a key without asserting the type.

Type Parameters

T

T extends string

R

R = any

Parameters

key

T

The key to check

Returns

this is MicroformatData & { [k in string]: R }

Whether the node has the key

Inherited from

YTNode.hasKey


is()

is<T, K>(...types): this is InstanceType<K[number]>

Defined in: src/parser/helpers.ts:19

Check if the node is of the given type.

Type Parameters

T

T extends YTNode

K

K extends YTNodeConstructor<T>[]

Parameters

types

...K

The type to check

Returns

this is InstanceType<K[number]>

whether the node is of the given type

Inherited from

YTNode.is


key()

key<T, R>(key): Maybe

Defined in: src/parser/helpers.ts:51

Assert that the node has the given key and return it.

Type Parameters

T

T extends string

R

R = any

Parameters

key

T

The key to check

Returns

Maybe

The value of the key wrapped in a Maybe

Throws

If the node does not have the key

Inherited from

YTNode.key

Edit this page
Last Updated: 10/12/25, 3:23 PM