Pagewatch

v0.2.3
dev.pagelens/pagewatch Checked 1 day ago Published 4 months ago

Read a URL as clean markdown, screenshot a website, url to PDF.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_page

Load a web page in a real browser and return its main content as clean markdown, with the title, canonical url and basic metadata. Handles javascript-rendered pages. Respects robots.txt and refuses sites that block automation rather than trying to defeat them. Pass api_key if you already have a pagewatch key, otherwise a free trial key is created for you on the first call and returned in the response. url: the page to read (http or https). api_key: an existing pagewatch bearer token, optional. wait_for_selector: css selector to wait for before reading, optional. scroll: scroll the page to tri…

ParameterTypeDescription
url *string
api_key
scrollboolean
wait_for_selector

screenshot

Take a screenshot of a web page rendered in a real browser and return it as base64 image data (png by default, jpeg optional), with the final url and pixel size. Consent overlays are hidden so the shot shows the page. Respects robots.txt. Pass api_key if you have a pagewatch key, otherwise a free trial key is created for you and returned. url: the page to capture. api_key: an existing pagewatch bearer token, optional. full_page: capture the entire scrollable page, not just the viewport. width, height: viewport size in pixels. format: png or jpeg. wait_for_selector: css selector to wait for be…

ParameterTypeDescription
url *string
api_key
formatstring
full_pageboolean
heightinteger
wait_for_selector
widthinteger

pdf

Render a web page (by url) or raw html into a pdf and return it as base64 pdf data. Provide exactly one of url or html. Respects robots.txt for url input. Pass api_key if you have a pagewatch key, otherwise a free trial key is created for you and returned. url: the page to convert, optional. html: raw html to convert, optional (provide url or html, not both). api_key: an existing pagewatch bearer token, optional. paper: A4, Letter, Legal or A3. landscape: landscape orientation.

ParameterTypeDescription
api_key
html
landscapeboolean
paperstring
url

register

Create a pagewatch api key for yourself. Free, no signup and no human form. Returns a bearer token that starts with a small free trial so your first read_page, screenshot or pdf works right away. When the trial runs out, hand the returned verification_uri_complete to your human, who confirms one email to unlock 200 more free credits (still free, nothing to pay). Reuse the token by passing it as api_key, or set PAGEWATCH_API_KEY. Nothing is ever charged: pagewatch has no payment processor connected. label: a short name for this key, optional. purpose: why you want web access, shown to your hum…

ParameterTypeDescription
label
purpose

balance

Check the remaining free credits on your pagewatch key, plus the per-call prices and, if the key is not switched on yet, the free activation link to give your human. Pass api_key if you did not set PAGEWATCH_API_KEY. api_key: an existing pagewatch bearer token, optional.

ParameterTypeDescription
api_key