Skip to main content
These fields shape the page text that markdown and html come from, and everything built from the Markdown: summary, highlights, question and json. rawHtml is the page as sent. This request keeps the main element, drops code blocks, numbers the links and returns the first 600 characters:
To read on, send the same request with "offset": 529. Use the nextOffset the answer gives, and repeat until it has none.
  • A selector list needs at least one selector. If includeTags matches nothing, the call returns 400 invalidRequest naming includeTags, and costs nothing. Check the selectors or leave includeTags out.
  • maxChars below 500 returns 400 invalidRequest. query with offset does too.
  • onlyCleanContent is skipped with a warning when the page is too long to clean or the model does not answer.
  • None of these fields adds a fee. A PDF read with maxChars, offset or query is charged for the share of its pages that comes back. See Pricing.