POST
Extract page content

Authorizations

Authorization
string
header
required

Every request carries a bearer API key, which looks like ph_live_.... Keep keys server-side, because a key grants full control of your sessions. A missing header returns 401; an invalid or revoked key currently returns 403, so treat the two together as authentication failure.

Body

application/json
session_id
string
required

An existing session to run the extract in.

url
string
required

The page to load. Public http/https only.

Response

Successful Response

session_id
string
required
final_url
string
required

The URL after redirects.

status
string
default:ok

ok, blocked, or error.

title
string | null

The page title.

markdown
string
default:""

The page content as clean markdown.

markdown_len
integer
default:0

Length of the markdown in characters.

tokens_estimate
integer
default:0

A rough token count for budgeting a model context.