Skip to main content

Interface: WebFetchResult

Defined in: packages/tools/src/web/web-fetch.ts:480

Indexable​

[extra: string]: unknown

Properties​

content?​

optional content?: "main" | "full"

Defined in: packages/tools/src/web/web-fetch.ts:502

For a page read for its main content: main, or full when the cut left too little and the whole page came back.


content_type​

content_type: string

Defined in: packages/tools/src/web/web-fetch.ts:483


description?​

optional description?: string

Defined in: packages/tools/src/web/web-fetch.ts:486


icon_urls?​

optional icon_urls?: string[]

Defined in: packages/tools/src/web/web-fetch.ts:487


next_offset?​

optional next_offset?: number

Defined in: packages/tools/src/web/web-fetch.ts:496

Present when there is more: call again with this offset.


note?​

optional note?: string

Defined in: packages/tools/src/web/web-fetch.ts:500

Why the text is short or empty, when there is a reason worth knowing.


offset​

offset: number

Defined in: packages/tools/src/web/web-fetch.ts:493


pages?​

optional pages?: number

Defined in: packages/tools/src/web/web-fetch.ts:491

A PDF's page count.


read_via?​

optional read_via?: "fallback"

Defined in: packages/tools/src/web/web-fetch.ts:498

Present when the text came from the fallback reader.


site_name?​

optional site_name?: string

Defined in: packages/tools/src/web/web-fetch.ts:485


status​

status: number

Defined in: packages/tools/src/web/web-fetch.ts:482


structured_data?​

optional structured_data?: unknown[]

Defined in: packages/tools/src/web/web-fetch.ts:489

JSON-LD blocks that fit structuredDataChars.


text​

text: string

Defined in: packages/tools/src/web/web-fetch.ts:492


title?​

optional title?: string

Defined in: packages/tools/src/web/web-fetch.ts:484


total_chars​

total_chars: number

Defined in: packages/tools/src/web/web-fetch.ts:494


url​

url: string

Defined in: packages/tools/src/web/web-fetch.ts:481