# Read retained result (/api-reference/data-api/getDataRequestsByIdResult)

Reads the retained result of one request. Omit `format` to return HTML plus structured `data` and extraction metadata when available; HTML is null if none was retained. Specify `html`, `text`, `markdown`, or `data` to return only the selected content field plus `id`, `format`, `result_meta`, and `expires_at`. Use `markdown` for agent-readable page content: it is deterministically converted from stored HTML without an LLM (non-empty main region, else a single article, else cleaned body) and limited to 2 MiB of UTF-8. `result_meta.markdown` reports output and source truncation; `source_truncated` may be null for legacy stored metadata. The `data` format exists only for extraction requests. In MCP, `data_get_result` returns metadata and previews of up to 4 KiB per returned content field, with resource links; omission returns HTML plus available data previews. Use `data_read_result_content` with an explicit format to read the full selected content in 16 KiB chunks by default, up to 64 KiB.

## GET /api/v1/data/requests/{id}/result

Read retained result

- Operation ID: `getDataRequestsByIdResult`

- Tags: `Data API`

Reads the retained result of one request. Omit `format` to return HTML plus structured `data` and extraction metadata when available; HTML is null if none was retained. Specify `html`, `text`, `markdown`, or `data` to return only the selected content field plus `id`, `format`, `result_meta`, and `expires_at`. Use `markdown` for agent-readable page content: it is deterministically converted from stored HTML without an LLM (non-empty main region, else a single article, else cleaned body) and limited to 2 MiB of UTF-8. `result_meta.markdown` reports output and source truncation; `source_truncated` may be null for legacy stored metadata. The `data` format exists only for extraction requests. In MCP, `data_get_result` returns metadata and previews of up to 4 KiB per returned content field, with resource links; omission returns HTML plus available data previews. Use `data_read_result_content` with an explicit format to read the full selected content in 16 KiB chunks by default, up to 64 KiB.

### Security

- Required scope: `requests:read`

- `ApiKey` (apiKey, X-API-Key)

- `ApiKeyBearer` (http)

### Parameters

- `id` (path, required) — string (uuid); UUID of the target request or batch, as returned in the id field when it was created or listed.

- `format` (query) — string enum=[
  "html",
  "text",
  "markdown",
  "data"
]; Optional result format: html, text, markdown, or data. Omit for HTML plus structured data when available.

### Responses

- **200** — Returns HTML plus available structured data by default, or only the explicitly selected content. Structured data includes extraction metadata. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/DataResultResponse

  - Example: `{
  "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
  "format": "html",
  "html": "<html>…</html>",
  "result_meta": null,
  "expires_at": "2026-08-29T12:00:00.000Z"
}`

- **400** — Invalid public UUID Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "Invalid public UUID Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **404** — Not found in this tenant Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "Not found in this tenant Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **409** — The request is not complete, or the selected format is unavailable. RESULT_NOT_READY is retryable after completion; RESULT_FORMAT_UNAVAILABLE is not. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "RESULT_NOT_READY",
  "message": "The request is not complete, or the selected format is unavailable. RESULT_NOT_READY is retryable after completion; RESULT_FORMAT_UNAVAILABLE is not. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

  - Examples: `{
  "resultNotReady": {
    "summary": "Request has not completed",
    "value": {
      "error": "Request failed",
      "code": "RESULT_NOT_READY",
      "message": "Request is not complete",
      "requestId": "req_01J2QG"
    }
  },
  "resultFormatUnavailable": {
    "summary": "Selected result format is unavailable",
    "value": {
      "error": "Request failed",
      "code": "RESULT_FORMAT_UNAVAILABLE",
      "message": "The selected result format is not available for this request",
      "requestId": "req_01J2QG"
    }
  }
}`

- **410** — Seven-day result retention expired Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "RESULT_EXPIRED",
  "message": "Seven-day result retention expired Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **503** — The public Data API is disabled Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "PRICING_NOT_ACTIVE",
  "message": "The public Data API is disabled Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

### Referenced OpenAPI components

#### `#/components/parameters/PublicId`

```json

{
  "name": "id",
  "in": "path",
  "required": true,
  "description": "UUID of the target request or batch, as returned in the id field when it was created or listed.",
  "schema": {
    "type": "string",
    "format": "uuid"
  }
}

```

#### `#/components/schemas/DataResultResponse`

```json

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "format",
        "html",
        "result_meta",
        "expires_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "format": {
          "type": "string",
          "const": "html"
        },
        "html": {
          "description": "Stored HTML; null when no HTML was retained in the default response.",
          "type": [
            "string",
            "null"
          ]
        },
        "data": {
          "description": "Structured payload included only when format is omitted and extraction exists."
        },
        "extraction": {
          "description": "Metadata included with default structured data; the payload is returned only in the sibling data property.",
          "$ref": "#/components/schemas/DataExtractionResultMetadata"
        },
        "result_meta": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/DataResultMeta"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "format",
        "text",
        "result_meta",
        "expires_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "format": {
          "type": "string",
          "const": "text"
        },
        "text": {
          "type": "string"
        },
        "result_meta": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/DataResultMeta"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "format",
        "markdown",
        "result_meta",
        "expires_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "format": {
          "type": "string",
          "const": "markdown"
        },
        "markdown": {
          "type": "string",
          "description": "Deterministic Markdown converted from the stored HTML result; at most 2 MiB of UTF-8."
        },
        "result_meta": {
          "description": "Always includes markdown metadata, even when the stored result has no base result_meta.",
          "allOf": [
            {
              "$ref": "#/components/schemas/DataResultMeta"
            },
            {
              "type": "object",
              "required": [
                "markdown"
              ],
              "properties": {
                "markdown": {
                  "$ref": "#/components/schemas/MarkdownResultMeta"
                }
              }
            }
          ]
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "format",
        "data",
        "result_meta",
        "extraction",
        "expires_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "format": {
          "type": "string",
          "const": "data"
        },
        "data": {},
        "result_meta": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/DataResultMeta"
            },
            {
              "type": "null"
            }
          ]
        },
        "extraction": {
          "description": "Extraction run metadata. Its structured payload is returned only in the sibling data property.",
          "$ref": "#/components/schemas/DataExtractionResultMetadata"
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  ]
}

```

#### `#/components/schemas/PublicError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "error",
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "error": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable public error code. PROXY_QUOTE_EXPIRED means the optional quote_version supplied at admission is no longer current; refresh the pricing view and submit again."
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

```

#### `#/components/schemas/DataExtractionResultMetadata`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "recipe_id",
    "recipe_name",
    "run_id",
    "status",
    "kind",
    "version_id",
    "error",
    "user_error",
    "progress",
    "llm_attempts",
    "llm_charged_tokens",
    "created_at",
    "finished_at"
  ],
  "properties": {
    "recipe_id": {
      "type": "string",
      "format": "uuid"
    },
    "recipe_name": {
      "type": "string"
    },
    "run_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "waiting_for_page",
        "running",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "generate",
        "execute",
        "repair"
      ]
    },
    "version_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "tool": {
      "$ref": "#/components/schemas/WebsiteToolMetadata"
    },
    "coverage": {
      "$ref": "#/components/schemas/WebsiteToolCoverage"
    },
    "budget": {
      "$ref": "#/components/schemas/WebsiteToolBudget"
    },
    "error": {
      "$ref": "#/components/schemas/PublicRedactedError"
    },
    "user_error": {
      "$ref": "#/components/schemas/PublicTaskError"
    },
    "progress": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/RecipeRunProgress"
        },
        {
          "type": "null"
        }
      ]
    },
    "llm_attempts": {
      "type": "integer",
      "minimum": 0
    },
    "llm_charged_tokens": {
      "type": "integer",
      "minimum": 0
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}

```

#### `#/components/schemas/DataResultMeta`

```json

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "version": {
      "type": "integer",
      "const": 1
    },
    "final_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Final HTTP(S) response URL. Query string and fragment are preserved; embedded credentials are removed. Invalid or unsupported URLs are omitted."
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 100,
      "maximum": 599
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "redirect_count": {
      "type": "integer",
      "minimum": 0
    },
    "timings_ms": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "navigation": {
          "type": "integer",
          "minimum": 0
        },
        "challenge": {
          "type": "integer",
          "minimum": 0
        },
        "browser_actions": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "selector_wait": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "text_wait": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "extraction": {
          "type": "integer",
          "minimum": 0
        },
        "total": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "wait": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "browser_actions": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "completed_count": {
              "type": "integer",
              "minimum": 0
            },
            "total_count": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        "selector": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "satisfied": {
              "type": "boolean"
            }
          }
        },
        "text": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "satisfied": {
              "type": "boolean"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "not_configured",
                "end_text",
                "stable",
                "timeout_with_text",
                "timeout_empty"
              ]
            }
          }
        }
      }
    },
    "resource_policy": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "requested": {
          "type": "string",
          "enum": [
            "compatible",
            "adaptive"
          ]
        },
        "effective": {
          "type": "string",
          "enum": [
            "compatible",
            "adaptive"
          ]
        },
        "fallback_used": {
          "type": "boolean"
        },
        "blocking_enabled": {
          "type": "boolean"
        },
        "initial_mode": {
          "type": "string",
          "enum": [
            "full",
            "site_light"
          ]
        },
        "final_mode": {
          "type": "string",
          "enum": [
            "full",
            "site_light"
          ]
        },
        "challenge_detected": {
          "type": "boolean"
        },
        "blocked_total": {
          "type": "integer",
          "minimum": 0
        },
        "blocked_by_type": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "document": {
              "type": "integer",
              "minimum": 0
            },
            "script": {
              "type": "integer",
              "minimum": 0
            },
            "stylesheet": {
              "type": "integer",
              "minimum": 0
            },
            "image": {
              "type": "integer",
              "minimum": 0
            },
            "media": {
              "type": "integer",
              "minimum": 0
            },
            "font": {
              "type": "integer",
              "minimum": 0
            },
            "fetch": {
              "type": "integer",
              "minimum": 0
            },
            "xhr": {
              "type": "integer",
              "minimum": 0
            },
            "websocket": {
              "type": "integer",
              "minimum": 0
            },
            "manifest": {
              "type": "integer",
              "minimum": 0
            },
            "wasm": {
              "type": "integer",
              "minimum": 0
            },
            "serviceworker": {
              "type": "integer",
              "minimum": 0
            },
            "other": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        "blocked_by_reason": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "heavy_type": {
              "type": "integer",
              "minimum": 0
            },
            "known_advertising": {
              "type": "integer",
              "minimum": 0
            },
            "known_analytics": {
              "type": "integer",
              "minimum": 0
            }
          }
        }
      }
    },
    "transport": {
      "type": "string",
      "enum": [
        "browser",
        "http"
      ]
    },
    "execution": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "terminal_engine": {
          "type": "string",
          "enum": [
            "http",
            "browser"
          ]
        },
        "residential": {
          "type": "boolean"
        },
        "fallback_reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "javascript_required",
              "challenge",
              "unsupported_api",
              "invalid_dom",
              "browser_unavailable",
              "protection"
            ]
          }
        },
        "initial_engine": {
          "type": "string",
          "enum": [
            "http",
            "browser"
          ]
        },
        "recommendation_applied": {
          "type": "boolean"
        },
        "total_duration_ms": {
          "type": "integer",
          "minimum": 0
        },
        "stages": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "engine": {
                "type": "string",
                "enum": [
                  "http",
                  "browser"
                ]
              },
              "duration_ms": {
                "type": "integer",
                "minimum": 0
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "completed",
                  "fallback"
                ]
              }
            }
          }
        }
      }
    },
    "storage": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "html": {
          "$ref": "#/components/schemas/ResultStorageMetadata"
        },
        "text": {
          "$ref": "#/components/schemas/ResultStorageMetadata"
        }
      }
    },
    "proxy_usage": {
      "$ref": "#/components/schemas/ProxyUsage"
    },
    "proxy_usage_billing": {
      "$ref": "#/components/schemas/ProxyUsageBilling"
    },
    "request_budget": {
      "$ref": "#/components/schemas/RequestBudget"
    },
    "challenge": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type",
        "state",
        "reason"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "captcha",
            "browser_protection",
            "queue",
            "unknown"
          ],
          "description": "Provider-neutral class of the challenge."
        },
        "state": {
          "type": "string",
          "enum": [
            "detected",
            "solving",
            "solved",
            "queued",
            "blocked",
            "unknown"
          ],
          "description": "Public processing state of the challenge."
        },
        "reason": {
          "type": "string",
          "enum": [
            "challenge_detected",
            "queue_detected",
            "unsupported",
            "solver_unavailable",
            "verification_failed",
            "still_blocked",
            "deadline_exceeded",
            "cancelled",
            "unknown"
          ],
          "description": "Provider-neutral outcome reason."
        }
      }
    },
    "markdown": {
      "$ref": "#/components/schemas/MarkdownResultMeta"
    }
  },
  "description": "Result metadata. Challenge metadata contains only provider-neutral type, state and reason. Proxy usage is measured transport traffic; proxy_usage_billing is the post-paid token settlement state."
}

```

#### `#/components/schemas/MarkdownResultMeta`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "source",
    "source_truncated",
    "original_bytes",
    "returned_bytes",
    "truncated"
  ],
  "properties": {
    "source": {
      "type": "string",
      "const": "stored_html"
    },
    "source_truncated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True or false only when stored result metadata explicitly records whether the source HTML was truncated; null when that metadata is unavailable."
    },
    "original_bytes": {
      "type": "integer",
      "minimum": 0,
      "description": "UTF-8 byte length before the Markdown result limit."
    },
    "returned_bytes": {
      "type": "integer",
      "minimum": 0,
      "description": "UTF-8 byte length returned to the client."
    },
    "truncated": {
      "type": "boolean",
      "description": "Whether the converted Markdown was shortened to fit the result limit."
    }
  }
}

```

#### `#/components/schemas/WebsiteToolMetadata`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "recipe_id",
    "version_id",
    "site_origin",
    "input_schema",
    "output_schema"
  ],
  "properties": {
    "recipe_id": {
      "type": "string",
      "format": "uuid"
    },
    "version_id": {
      "type": "string",
      "format": "uuid"
    },
    "site_origin": {
      "type": "string",
      "format": "uri"
    },
    "input_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "output_schema": {
      "type": "object",
      "additionalProperties": true
    }
  }
}

```

#### `#/components/schemas/WebsiteToolCoverage`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "pages",
    "complete",
    "stop_reason"
  ],
  "properties": {
    "pages": {
      "type": "integer",
      "minimum": 0
    },
    "complete": {
      "type": "boolean"
    },
    "stop_reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "source_exhausted",
        "result_limit",
        "page_limit",
        "no_progress",
        null
      ]
    }
  }
}

```

#### `#/components/schemas/WebsiteToolBudget`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "max_credits",
    "charged_credits",
    "reserved_credits",
    "remaining_credits"
  ],
  "properties": {
    "max_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Task credit cap, or null when no task-wide cap is set."
    },
    "charged_credits": {
      "type": "integer",
      "minimum": 0,
      "description": "Credits charged for measured task usage."
    },
    "reserved_credits": {
      "type": "integer",
      "minimum": 0,
      "description": "Credits reserved while the task is running."
    },
    "remaining_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Remaining task cap, or null when the task is uncapped."
    }
  }
}

```

#### `#/components/schemas/PublicRedactedError`

```json

{
  "anyOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Stable public failure code; budget_exhausted means a paid stage was stopped by the request-wide credit ceiling."
        },
        "message": {
          "type": "string"
        }
      }
    },
    {
      "type": "null"
    }
  ]
}

```

#### `#/components/schemas/PublicTaskError`

```json

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/UserError"
    },
    {
      "type": "null"
    }
  ]
}

```

#### `#/components/schemas/RecipeRunProgress`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code",
    "message",
    "retryCycle"
  ],
  "description": "Safe retry status for recipe generation. Reasoning is disabled. Only curated progress is returned; raw provider/model details and diagnostics are never exposed.",
  "properties": {
    "code": {
      "type": "string",
      "const": "RECIPE_GENERATION_RETRYING"
    },
    "message": {
      "type": "string",
      "description": "Curated display-safe reason for the retry."
    },
    "retryCycle": {
      "type": "integer",
      "minimum": 1,
      "description": "Current recipe-generation retry cycle."
    }
  }
}

```

#### `#/components/schemas/ResultStorageMetadata`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "original_bytes",
    "stored_bytes",
    "truncated"
  ],
  "properties": {
    "original_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "stored_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "truncated": {
      "type": "boolean"
    }
  }
}

```

#### `#/components/schemas/ProxyUsage`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "requested_type",
    "request_bytes",
    "response_bytes",
    "total_bytes"
  ],
  "properties": {
    "requested_type": {
      "$ref": "#/components/schemas/ProxyNetworkType"
    },
    "request_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "response_bytes": {
      "type": "integer",
      "minimum": 0
    },
    "total_bytes": {
      "type": "integer",
      "minimum": 0
    }
  }
}

```

#### `#/components/schemas/ProxyUsageBilling`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "requested_type",
    "request_bytes",
    "response_bytes",
    "total_bytes",
    "charged_tokens"
  ],
  "properties": {
    "status": {
      "$ref": "#/components/schemas/ProxyTrafficUsageStatus"
    },
    "requested_type": {
      "$ref": "#/components/schemas/ProxyNetworkType"
    },
    "request_bytes": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "response_bytes": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "total_bytes": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "charged_tokens": {
      "type": "integer",
      "minimum": 0
    },
    "requested_tokens": {
      "type": "integer",
      "minimum": 0,
      "description": "Traffic charge calculated from measured bytes before applying the request budget."
    },
    "budget_limit_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Request-wide credit ceiling captured when the job was accepted."
    },
    "budget_used_credits": {
      "type": "integer",
      "minimum": 0,
      "description": "Credits charged across execution, CAPTCHA and traffic at settlement time."
    },
    "budget_remaining_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Remaining request budget after settlement; null means no request-wide ceiling was set."
    },
    "budget_limit_reached": {
      "type": "boolean",
      "description": "True when the request budget prevented the full traffic charge or another paid stage."
    },
    "measurement_reason": {
      "$ref": "#/components/schemas/ProxyTrafficMeasurementReason"
    }
  }
}

```

#### `#/components/schemas/RequestBudget`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "budget_limit_credits",
    "budget_used_credits",
    "budget_remaining_credits",
    "budget_limit_reached"
  ],
  "properties": {
    "budget_limit_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "budget_used_credits": {
      "type": "integer",
      "minimum": 0
    },
    "budget_remaining_credits": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "budget_limit_reached": {
      "type": "boolean"
    }
  },
  "description": "Request-wide credit budget across execution, protection, CAPTCHA and traffic. Nullable limit and remainder mean no ceiling was supplied."
}

```

#### `#/components/schemas/UserError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code",
    "message",
    "retryable",
    "category"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Stable machine-readable task failure code."
    },
    "message": {
      "type": "string",
      "description": "Redacted display-safe message suitable for the frontend."
    },
    "retryable": {
      "type": "boolean",
      "description": "Whether the frontend may offer the task retry action."
    },
    "category": {
      "type": "string",
      "enum": [
        "page",
        "generation",
        "execution",
        "provider",
        "billing",
        "processing",
        "timeout",
        "target",
        "proxy",
        "readiness",
        "payload",
        "cancelled"
      ]
    },
    "attempts": {
      "type": "integer",
      "minimum": 0,
      "description": "Actual AI-generation attempts made for a recipe failure. Present only for recipe failures."
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Deduplicated safe field paths, including output fields such as news.news_date and recipe DSL fields such as dsl.items. Present only when known for a recipe generation failure."
    }
  }
}

```

#### `#/components/schemas/ProxyNetworkType`

```json

{
  "type": "string",
  "enum": [
    "datacenter",
    "residential",
    "premium"
  ]
}

```

#### `#/components/schemas/ProxyTrafficUsageStatus`

```json

{
  "type": "string",
  "enum": [
    "settled",
    "budget_limited",
    "unavailable"
  ]
}

```

#### `#/components/schemas/ProxyTrafficMeasurementReason`

```json

{
  "type": "string",
  "enum": [
    "transport_bytes_not_collected",
    "transport_bytes_zero"
  ]
}

```

### Complete operation object

```json

{
  "operationId": "getDataRequestsByIdResult",
  "tags": [
    "Data API"
  ],
  "summary": "Read retained result",
  "description": "Reads the retained result of one request. Omit `format` to return HTML plus structured `data` and extraction metadata when available; HTML is null if none was retained. Specify `html`, `text`, `markdown`, or `data` to return only the selected content field plus `id`, `format`, `result_meta`, and `expires_at`. Use `markdown` for agent-readable page content: it is deterministically converted from stored HTML without an LLM (non-empty main region, else a single article, else cleaned body) and limited to 2 MiB of UTF-8. `result_meta.markdown` reports output and source truncation; `source_truncated` may be null for legacy stored metadata. The `data` format exists only for extraction requests. In MCP, `data_get_result` returns metadata and previews of up to 4 KiB per returned content field, with resource links; omission returns HTML plus available data previews. Use `data_read_result_content` with an explicit format to read the full selected content in 16 KiB chunks by default, up to 64 KiB.",
  "x-required-scope": "requests:read",
  "x-mcp-name": "data_get_result",
  "x-mcp-annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "parameters": [
    {
      "$ref": "#/components/parameters/PublicId"
    },
    {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "Optional result format: html, text, markdown, or data. Omit for HTML plus structured data when available.",
      "schema": {
        "type": "string",
        "enum": [
          "html",
          "text",
          "markdown",
          "data"
        ]
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Returns HTML plus available structured data by default, or only the explicitly selected content. Structured data includes extraction metadata. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/DataResultResponse"
          },
          "example": {
            "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
            "format": "html",
            "html": "<html>…</html>",
            "result_meta": null,
            "expires_at": "2026-08-29T12:00:00.000Z"
          }
        }
      }
    },
    "400": {
      "description": "Invalid public UUID Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "Invalid public UUID Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "404": {
      "description": "Not found in this tenant Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "Not found in this tenant Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "409": {
      "description": "The request is not complete, or the selected format is unavailable. RESULT_NOT_READY is retryable after completion; RESULT_FORMAT_UNAVAILABLE is not. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "examples": {
            "resultNotReady": {
              "summary": "Request has not completed",
              "value": {
                "error": "Request failed",
                "code": "RESULT_NOT_READY",
                "message": "Request is not complete",
                "requestId": "req_01J2QG"
              }
            },
            "resultFormatUnavailable": {
              "summary": "Selected result format is unavailable",
              "value": {
                "error": "Request failed",
                "code": "RESULT_FORMAT_UNAVAILABLE",
                "message": "The selected result format is not available for this request",
                "requestId": "req_01J2QG"
              }
            }
          },
          "example": {
            "error": "Request failed",
            "code": "RESULT_NOT_READY",
            "message": "The request is not complete, or the selected format is unavailable. RESULT_NOT_READY is retryable after completion; RESULT_FORMAT_UNAVAILABLE is not. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      }
    },
    "410": {
      "description": "Seven-day result retention expired Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "RESULT_EXPIRED",
            "message": "Seven-day result retention expired Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "503": {
      "description": "The public Data API is disabled Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "PRICING_NOT_ACTIVE",
            "message": "The public Data API is disabled Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": true
    }
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "ApiKeyBearer": []
    }
  ],
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ]
}

```