Skip to main content

Snippet

Nosible API Client


Nosible API Client / Snippet

Interface: Snippet

Defined in: src/scrape/types.ts:42

A snippet of text, typically extracted from a web page

Extends

Properties

url_hash

url_hash: string

Defined in: src/scrape/types.ts:46

Hash of the URL from which the snippet was extracted

Overrides

z.infer.url_hash


snippet_hash

snippet_hash: string

Defined in: src/scrape/types.ts:50

A unique hash for the snippet

Overrides

z.infer.snippet_hash


prev_snippet_hash

prev_snippet_hash: string | null

Defined in: src/scrape/types.ts:54

Hash of the previous snippet in sequence

Overrides

z.infer.prev_snippet_hash


next_snippet_hash

next_snippet_hash: string | null

Defined in: src/scrape/types.ts:58

Hash of the next snippet in sequence

Overrides

z.infer.next_snippet_hash


content

content: string

Defined in: src/scrape/types.ts:62

The text content of the snippet

Overrides

z.infer.content


words?

optional words: string

Defined in: src/scrape/types.ts:66

The words in the snippet

Overrides

z.infer.words


language

language: string

Defined in: src/scrape/types.ts:70

The language of the snippet

Overrides

z.infer.language


statistics?

optional statistics: object

Defined in: src/scrape/types.ts:74

Statistical information about the snippet

sentences

sentences: number

words

words: number

characters

characters: number

optional links: number

images?

optional images: number

Overrides

z.infer.statistics


optional links: Record<string, string>

Defined in: src/scrape/types.ts:84

List of links associated with the snippet

Overrides

z.infer.links


images?

optional images: string[]

Defined in: src/scrape/types.ts:88

List of image URLs associated with the snippet

Overrides

z.infer.images