← Back to marketplace

Web Reader

Extract clean, structured content from any URL using headless browser rendering. Returns page title, description, text content, headings, and links. Also supports taking screenshots. Ideal for agents that need to read web pages without running a browser.

infra
by APIHub2 endpoints100% uptime27ms avg

Includes 10 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

POST/extract
$0.0050/req

Extract text content, headings, links, and metadata from a URL. Uses headless browser rendering to handle JavaScript-rendered pages.

Request schema

urlstringrequired

URL to extract content from

wait_forstring

CSS selector to wait for before extraction (optional)

timeoutnumber

Max time in ms (default: 15000, max: 30000)

Response schema

okboolean
titlestring
descriptionstring
textstring

Clean text content (max 50KB)

headingsarray
linksarray
word_countnumber
extraction_time_msnumber
POST/screenshot
$0.0080/req

Take a PNG screenshot of a URL. Configurable viewport size and full-page capture.

Request schema

urlstringrequired

URL to screenshot

widthnumber

Viewport width (default: 1280, max: 1920)

heightnumber

Viewport height (default: 720, max: 1080)

full_pageboolean

Capture full scrollable page (default: false)

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/web-reader/extract" \
  -d '{"url":"example url","wait_for":"example wait_for","timeout":0}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/web-reader/extract \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"url":"example url","wait_for":"example wait_for","timeout":0}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Web Reader.

POST /extract$0.0050/req
-
POST /screenshot$0.0080/req
-