---
title: "Page"
description: "Read a public web page as Markdown, with its title, author, date, site name, language, lead image and schema.org JSON-LD."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/web/llms.txt)

```http
GET | POST /v1/reader/page
```

Send parameters as a query string with `GET`, or as a JSON body with `POST`. Both are equivalent. In a query
string, URL-encode the page's address.

## Request

```bash tab="cURL"
curl -G "https://gateway.apinoa.com/v1/reader/page" \
  --data-urlencode "url=https://stephango.com/saw" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ url: "https://stephango.com/saw" });
const res = await fetch(`https://gateway.apinoa.com/v1/reader/page?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/reader/page",
    params={"url": "https://stephango.com/saw"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `url` | string | yes | The page's address, http or https. |
| `country` | enum |  | Where the page is read from. `US` |
| `include` | string list |  | Extra fields, comma-separated: `html` (the page as fetched), `contentHtml` (its main content as HTML), `text` (its main content as plain text), `links` (the links in its main content), `images` (the images in its main content). |
| `maxChars` | integer 100–1000000 |  | Cut `markdown` (and `text`) to at most this many characters, at a paragraph break where one is near; `truncated` is then true. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`ReaderPage`](/docs/api-reference/web-data/response-schema#readerpage) in `data`. A real response, in full.

```json
{
  "success": true,
  "data": {
    "url": "https://stephango.com/saw",
    "finalUrl": "https://stephango.com/saw",
    "status": 200,
    "contentType": "text/html; charset=UTF-8",
    "title": "Use the saw, fear the saw",
    "wordCount": 143,
    "jsonLd": [],
    "description": "It’s hard to make a saw that cuts trees but not arms.",
    "author": "Steph Ango",
    "published": "2025-10-20T00:00:00+00:00",
    "site": "Steph Ango",
    "language": "en",
    "image": "https://stephango.com/assets/card.png",
    "favicon": "https://stephango.com/favicon.ico",
    "markdown": "When I learned to use a table saw, my teacher impressed upon me that the machine wants to cut fingers. Fear the saw!\n\nPowerful tools can do powerful things. If you want to make handmade wooden furniture you must cut wood. Your desire to have limbs and your desire to have furniture are not at odds if you learn to use tools safely.\n\nThere *are* table saws that will stop at the touch of a finger, but I don’t know of any chainsaw that won’t cut an arm. There is a limit to how safe a tool can be before its function is crippled.\n\nWe should not stop making powerful tools because they are dangerous. Rather, we should empower people to use powerful tools safely.\n\nI use the saw, I fear the saw. I have handmade furniture, and I have all my limbs."
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | `url` is missing, is not an http or https address, or is a private or internal address; a parameter is unknown or out of range; or the address answered something other than a web page (a PDF, an image, JSON). The message says which, and names the content type. |
| 400 | `UPSTREAM_TOO_LARGE` | The page is larger than 5 MiB. |
| 400 | `INVALID_PARAMS` | The site's TLS certificate does not verify (it is checked on every request). The message names the host. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 404 | `NOT_FOUND` | The site does not exist or refuses connections: its name does not resolve, or nothing accepts the connection. The message names the host. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 503 | `UPSTREAM_UNAVAILABLE` | The page stayed behind a bot check after every try. Retry later. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## Notes

- **`status` is the site's.** A `404` or `500` page is read and returned like any other page, and billed. Check
  `status` before you use `markdown`.
- **No JavaScript is run.** The page is read as the site's server sends it. A page that only fills in its content
  with JavaScript comes back with little or no text (a low `wordCount`); `include=html` shows what the server sent.
- **Main content only.** Navigation, headers, footers and sidebars are left out of `markdown`. On some pages, store
  pages especially, a little of the surrounding page (a related-products list, a button label) may remain.
  `include=html` returns the whole page beside it.
- **`maxChars`** cuts `markdown` at a paragraph break when one is near the limit, and sets `truncated: true`.
  `wordCount` still counts the whole content. With `include=text`, `text` is cut the same way.
- **`include=text,links,images`** return the main content as plain text, its links (`{ url, text }`) and its images
  (`{ url, alt }`), the addresses absolute, each once, in page order. They come from the same main content as
  `markdown`, so a link in the navigation or footer is not among them.
- **Plain-text pages** (`text/plain`) come back as their text in `markdown`, with an empty `title`.
- Redirects are followed; `finalUrl` is the address that answered. Fields of every type are in the
  [Response Schema](/docs/api-reference/web-data/response-schema).
