Skip to content
Fieldwork
Esc
↑↓navigate↵open⌘Jpreview
On this page

Results and meta

The normalized shape each method returns, the provider's own response in raw, and the request id, usage and warnings in meta.

Alongside raw, most results carry meta when the provider sends one.

The provider’s response

raw holds exactly what the provider sent, so nothing is lost by normalizing it. Reach for it when you need a field Fieldwork doesn’t map.

const page = await web.read("https://frame.work/laptop13");

page.markdown; // the page as Markdown
page.raw; // the provider's own response

Agent tools strip raw before a model sees a result. The SDK never does.

What each method returns
  • search returns { results, answer, images, meta, raw }. Each result has url, title, snippet and, when the provider has them, content, publishedAt, author, image, favicon and score. Shopping, place, news, scholar and patent results set kind and carry price, rating, reviewCount and place.
  • reverseImage returns { results, meta, raw }. Each match has sourceUrl, the page the image appears on, and, when the provider has them, url (the matched image), thumbnailUrl, title, description, width, height, kind ("exact" or "visual"), siteName (the site as the engine names it) and publishedAt.
  • read returns a Page: url, title, description, markdown, html, links, images, image (the page’s main image), excerpts, summary, publishedAt, author, language, statusCode and screenshot, as the provider has them.
  • readMany returns { pages, failed }. A URL that could not be read is listed in failed with the reason; it does not throw.
  • extract returns { data, fields }. data follows your schema; fields lists each field’s citations when the provider returns them.
  • product returns the product and its variants, each with sku, option values, price (amount, currency, formatted), originalPrice, availability, gtin and images ({ url, alt }).
  • answer returns { answer, output, citations, continuationId }.
  • research returns { id, status, output, sources, fields, continuationId }. output follows your schema when you pass one, otherwise it is the report text.
  • crawl returns { pages, failed, robotsBlocked, total }.
  • download returns { url, bytes, contentType, size, statusCode, etag, lastModified }: url is the final URL, bytes a Uint8Array exactly as served, contentType the server’s header unchanged. Browserbase and Kernel also return etag and lastModified.
  • parse returns { id, markdown, pages, blocks, pageCount }. With blocks: true, blocks lists the layout in reading order, each block with its page, type, text and box. With wordBoxes: true, LlamaParse and Reducto add words and table cells, each with its own box. LlamaParse also adds lines to each block and each cell, each { text, box }, the text being the line’s part of the block’s or cell’s text, Markdown included; Reducto places no lines. LlamaParse gives a cell in several boxes each of them as boxes (box encloses them), marks a block read out of a page header or footer with container, and with blocks or wordBoxes gives each page its width and height in points. With pageImages: true (LlamaParse), each page carries image, an address for a picture of the page that expires after about an hour; parse({ resume: id, pageImages: true }) collects fresh addresses without the file: one request that reads the finished job, with no new parse and no credits charged. LlamaParse draws no pictures of a spreadsheet (xlsx, xls, csv, ods and the like), so a spreadsheet’s pages come back without image. LlamaParse does not publish how long it keeps a job’s result; plan for 48 hours and treat NotFound on resume as a job to parse again.
Pages that don't exist

A page that answered 404 or 410 is not returned. read throws NotFound on every provider, and readMany lists the URL in failed.

Jobs that stop early

A job that stopped early but produced output, for example on a credit or step limit, returns status: "partial" with stopReason. A job with no usable output throws JobFailed.

Meta
PropType
requestId?string

The provider's id for the request, for support tickets and feedback.

Typestring
usage?Usage
TypeUsage
warnings?string[]

Warnings the provider returned, such as an ignored option or a page it could not fully read.

Typestring[]

usage is in the provider’s own units:

PropType
credits?number

Provider credits, for providers that bill in credits.

Typenumber
costUsd?number

The cost in US dollars, when the provider reports it.

Typenumber
units?Record<string, number>

Other counted units, such as tokens or billed SKUs, by name.

TypeRecord<string, number>
Document blocks and boxes

Every box is { left, top, width, height } in fractions of the page, measured from its top-left corner, whatever units the provider used. A box from LlamaParse lands where the same box from Reducto does.

PropType
pagenumber

The physical page number, starting at 1.

Typenumber
typestring

The kind of block in the provider's own words, such as "Table", "heading" or "page_header".

Typestring
textstring

The block's content as the provider gave it: Markdown, or HTML for some tables.

Typestring
box?Box
TypeBox
container?"header" | "footer"

The page header or footer the provider read this block out of, when it was in one.

Type"header" | "footer"
words?WordBox[]

Where each word sits, when the parse asked for word boxes.

TypeWordBox[]
lines?LineBox[]

Where each line sits, a table's cell lines included, when the parse asked for word boxes and the provider places lines.

TypeLineBox[]
cells?TableCell[]

A table's cells, when the parse asked for word boxes.

TypeTableCell[]
PropType
rownumber
Typenumber
columnnumber
Typenumber
rowSpan?number

Rows the cell spans, when more than one.

Typenumber
columnSpan?number

Columns the cell spans, when more than one.

Typenumber
textstring
Typestring
box?Box

Encloses every box of the cell.

TypeBox
boxes?Box[]

Each box the provider gives for the cell, in its order, when it gives them one by one: a cell can sit in several.

TypeBox[]
lines?LineBox[]

Where each line of the cell sits, when the provider places lines.

TypeLineBox[]
Page
PropType
urlstring
Typestring
title?string
Typestring
description?string
Typestring
markdown?string

The page as Markdown.

Typestring
html?string

Cleaned HTML.

Typestring
rawHtml?string

The HTML exactly as the provider received it.

Typestring
links?string[]
Typestring[]
images?string[]
Typestring[]
image?string

The page's main image as the page declares it, such as its og:image.

Typestring
excerpts?string[]

Passages that answer the query, when the read was given one.

Typestring[]
summary?string

A short summary, when the read asked for one.

Typestring
publishedAt?string
Typestring
author?string
Typestring
favicon?string
Typestring
language?string

ISO 639-1 language code.

Typestring
statusCode?number

The HTTP status the page returned to the provider.

Typenumber
screenshot?string

A URL of a screenshot of the page; providers expire these.

Typestring
meta?Meta
TypeMeta
rawunknown
Typeunknown
Search result
PropType
urlstring
Typestring
title?string
Typestring
snippet?string

Text from the page that matched the query.

Typestring
content?string

Page text, when the search was asked to include it.

Typestring
publishedAt?string

When the page was published, as the provider reports it.

Typestring
lastUpdatedAt?string

When the page last changed, where the provider tracks it separately.

Typestring
score?number
Typenumber
author?string
Typestring
image?string

An image that represents the page.

Typestring
favicon?string
Typestring
kind?string

The kind of result, when a search mixes or picks kinds: "web", "news", "research", "shopping", "place", "scholar", "patent", "person" and so on.

Typestring
price?Price

Shopping results.

TypePrice
rating?number
Typenumber
reviewCount?number
Typenumber
place?Place

Place results.

TypePlace

Last updated on

Was this page helpful?