Apinoa Docs

Page

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

View raw .mdx
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

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

Parameters

ParameterTypeRequiredNotes
urlstringyesThe page's address, http or https.
countryenumWhere the page is read from. US
includestring listExtra 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).
maxCharsinteger 100–1000000Cut 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.

Response

Returns ReaderPage in data. A real response, in full.

{
  "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

StatusCodeMeaning
400INVALID_PARAMSurl 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.
400UPSTREAM_TOO_LARGEThe page is larger than 5 MiB.
400INVALID_PARAMSThe site's TLS certificate does not verify (it is checked on every request). The message names the host.
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
402INSUFFICIENT_CREDITSYour credits do not cover this call. Choose a plan or top up in the dashboard.
404NOT_FOUNDThe site does not exist or refuses connections: its name does not resolve, or nothing accepts the connection. The message names the host.
429MARKETPLACE_SATURATEDToo many concurrent calls. Retry after the Retry-After seconds.
503UPSTREAM_UNAVAILABLEThe page stayed behind a bot check after every try. Retry later.

Every code is listed in Errors. Failed calls are not billed.

Pricing

Price 1 credit per call. Plans and credits.

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.

On this page