Skip to main content
GET
Re-read a cached result for free

Authorizations

Authorization
string
header
default:YOUR_ANYAPI_KEY
required

Your AnyAPI key as a Bearer token.

Path Parameters

id
string
required

The resultId returned on a prior run response envelope.

Query Parameters

fields
string

Optional. Comma-separated keys (dotted paths like author.name descend into nested objects) to keep on each result item. Keys are matched relative to each result item after the data/items envelope is unwrapped, not against the top-level response envelope, so use jq to reshape the whole envelope. Shrinks the response without changing cost.

max_items
integer

Optional. Cap the number of result rows returned; a _truncated note reports how many were withheld so you can page via the API's own limit. Does not change cost.

Required range: x >= 0
summary
boolean

Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.

jq
string

Optional. A jq expression applied to the result envelope; its output replaces output (multiple outputs collect into an array). Reshape freely, e.g. jq=.data | {title, description, md: .markdown[:3500]}. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a jqError. Does not change cost.

Response

The re-shaped result envelope (same shape as a run response).

costUsd
number
required

USD charged on the ORIGINAL run, echoed for envelope parity; this re-read is free.

output
any
required

The normalized result ({found, data} by default), re-shaped by any fields/max_items/summary/jq params. Open shape - a jq expression may replace it with an array or scalar.

provider
string
required

Always "AnyAPI".

replayed
boolean
required

False on this cached-result endpoint; true is reserved for durable idempotency replays from POST /v1/run/{sku}.

items
integer

Number of result rows returned by the original run.

jqError
string

Present only when a jq expression failed; output then carries the full unshaped result and this explains why the reshape did not apply.

resultId
string

The id you requested, echoed so you can keep re-reading the same cached result.