{
  "openapi": "3.0.1",
  "info": {
    "title": "Agent Web Reader: Search + URL to Markdown for LLMs",
    "description": "Tested Oct 25, 2026 on 192 live URLs: 0.92 s median per page vs 3.2 s Jina Reader, best main-text F1 (0.61 vs 0.52); search top result on-topic 85% vs 75% rag-web-browser. Headless-browser fallback for JS pages. $0.002/page, failures free.",
    "version": "1.0",
    "x-build-id": "D5c9YT88TEnvCwAV4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/catalyst-labs~agent-web-reader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-catalyst-labs-agent-web-reader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/catalyst-labs~agent-web-reader/runs": {
      "post": {
        "operationId": "runs-sync-catalyst-labs-agent-web-reader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/catalyst-labs~agent-web-reader/run-sync": {
      "post": {
        "operationId": "run-sync-catalyst-labs-agent-web-reader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Web search query (Bing, then DuckDuckGo, then Google). The top `maxResults` results are opened and returned as markdown rows. If no search engine answers you get one row with outcome `search_blocked` (retry), if they answer with nothing `no_results`; neither is charged. Leave empty if you only pass `urls`."
          },
          "urls": {
            "title": "URLs to read",
            "type": "array",
            "description": "Pages or PDF links to read directly (max 50 per call). Can be combined with `query`. Each URL returns exactly one row; failures come back as rows with `outcome` + `errorCode`, never as a crashed call.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Search results to read",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many search results to open (1-10). Default 3.",
            "default": 3
          },
          "maxCharsPerResult": {
            "title": "Max characters per result",
            "minimum": 200,
            "maximum": 100000,
            "type": "integer",
            "description": "Budget per result: markdown is cut at a paragraph boundary to this many characters. Default 6000 (about 1,600 tokens; each row reports exact `tokens`). `totalChars` and `truncated` show what was cut.",
            "default": 6000
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "markdown",
              "summary"
            ],
            "type": "string",
            "description": "`markdown` returns the main content; `summary` returns a short lead + outline to triage many pages cheaply in tokens. Same price.",
            "default": "markdown"
          },
          "chunkSize": {
            "title": "Chunk size (characters)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "For RAG/citations: also return `chunks` split on heading/paragraph boundaries, each with exact `tokens`, `charStart`/`charEnd` offsets into `markdown` and its `headingPath`. 0 = off (default). Same price.",
            "default": 0
          },
          "chunkOverlap": {
            "title": "Chunk overlap (characters)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Characters repeated between consecutive chunks (starts on a word boundary). Default 200.",
            "default": 200
          },
          "renderJs": {
            "title": "JavaScript rendering",
            "enum": [
              "auto",
              "never",
              "always"
            ],
            "type": "string",
            "description": "`auto` (default) retries a page in a headless browser only when the plain HTTP fetch returned no readable text, a bot check, or 403/429/503. Same $0.002 page price, charged only on success. `never` is fastest; `always` renders every HTML page.",
            "default": "auto"
          },
          "renderBudgetSecs": {
            "title": "Browser time budget per call (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Total time the browser fallback may spend in one call. Pages left when it runs out keep their original error row (not charged). Raise it for big batches of JavaScript-heavy URLs.",
            "default": 45
          },
          "includeLinks": {
            "title": "Keep hyperlinks",
            "type": "boolean",
            "description": "Keep `[text](url)` links in the markdown. Off by default to save tokens.",
            "default": false
          },
          "fullPage": {
            "title": "Full page (skip main-content extraction)",
            "type": "boolean",
            "description": "Return the whole page body instead of the extracted main article. Use for list/index pages.",
            "default": false
          },
          "country": {
            "title": "Search country",
            "type": "string",
            "description": "Optional 2-letter country code for localized search results, e.g. `us`, `gb`, `de`."
          },
          "maxPdfPages": {
            "title": "Max PDF pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Read at most this many pages of each PDF. Default 50.",
            "default": 50
          },
          "timeoutSecs": {
            "title": "Per-URL timeout (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Give up on a URL after this many seconds and return an error row for it (not charged). Default 15.",
            "default": 15
          },
          "referrer_id": {
            "title": "Referral code (optional)",
            "type": "string",
            "description": "Referral code from another user's receipt (ref_...). They earn 10% of this run's price as credit."
          },
          "buyerPublicKey": {
            "title": "Your verdict public key (optional)",
            "type": "string",
            "description": "Base64 Ed25519 public key (SPKI). Lets you sign a useful/not useful verdict on this run's receipt for 5% off your next run."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}