{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talarion-com/json-schema/talarion-com-fetch-response-schema.json",
  "title": "FetchResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talarion-com-openapi.json#/components/schemas/FetchResponse",
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "as_of": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The cutoff the results were selected against, echoed back; `null` when the request omitted it."
    },
    "results": {
      "type": "array",
      "description": "One entry per requested URL, in request order.",
      "items": {
        "$ref": "#/$defs/FetchedDocument"
      }
    }
  },
  "$defs": {
    "FetchedDocument": {
      "type": "object",
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "description": "The URL as it was sent."
        },
        "fetched_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When we fetched the text returned — the same date `as_of` filters on. `null` when no snapshot is held."
        },
        "text": {
          "type": [
            "string",
            "null"
          ],
          "description": "The page's extracted text. `null` when no text snapshot is held for the URL as of `as_of`."
        }
      }
    }
  }
}