Agent402 / tools

56 tools, one base URL, zero API keys

Every endpoint below is live and machine-payable: call it, get an HTTP 402 price quote, pay a fraction of a cent in USDC on Base via x402, get the result. Machine-readable versions: /api/pricing · /openapi.json · /llms.txt.

Web & documents (5)

Read the live web: browser rendering, screenshots, article extraction, PDFs, metadata.

Extract article

$0.005 · POST /api/extract

Extract the main article content from any public URL as clean markdown. Returns title, byline, excerpt, word count, and …

Page metadata

$0.002 · GET /api/meta

Fetch page metadata for a URL: title, description, OpenGraph, Twitter cards, canonical URL, favicon.

Browser render

$0.02 · POST /api/render

Render a page in a real headless Chromium browser (JavaScript executed), then extract the main content as clean markdown…

Screenshot

$0.015 · GET /api/screenshot

Screenshot any public URL in headless Chromium. Returns a PNG image. Query params: ?url=https://…&fullPage=true (optiona…

PDF to text

$0.01 · POST /api/pdf

Fetch a PDF from a URL and extract its text content. Returns page count, document info, and the full text (up to 20MB PD…

Agent memory (2)

Durable key-value state owned by the paying wallet. The payment is the login.

Memory write

$0.002 · POST /api/memory

Persistent key-value memory for agents, scoped to the paying wallet. Your x402 payment IS your authentication: the walle…

Memory read

$0.001 · GET /api/memory

Read from your wallet-scoped memory. ?key=… returns the stored value; omit key to list your keys. Only the wallet that p…

Network & domains (6)

DNS, TLS certificates, WHOIS/RDAP, uptime checks, robots.txt and sitemaps.

DNS lookup

$0.001 · GET /api/dns

DNS lookup for a domain. Supported record types: A, AAAA, MX, TXT, NS, CNAME.

HTTP check

$0.003 · POST /api/http-check

Check any public URL: status code, latency, final URL after redirects, and response headers. The uptime primitive for ag…

TLS certificate

$0.003 · POST /api/tls-cert

Inspect the TLS certificate of any public host: subject, issuer, validity window, days remaining, SANs, and SHA-256 fing…

Domain WHOIS (RDAP)

$0.003 · POST /api/whois

Domain registration data via RDAP (the structured WHOIS successor): registrar, creation/expiry dates, status, nameserver…

Robots.txt check

$0.002 · POST /api/robots-check

Fetch a site's robots.txt and answer: may this user-agent crawl this path? Returns the matched rule and all declared sit…

Sitemap reader

$0.003 · POST /api/sitemap

Fetch and parse a sitemap.xml (or sitemap index): returns up to 500 URLs with lastmod, or the child sitemaps of an index…

Data conversion (10)

JSON ⇄ CSV/YAML/XML, markdown ⇄ HTML, diffs and queries — formats agents juggle constantly.

JSON validate & format

$0.001 · POST /api/json-format

Validate, pretty-print, or minify JSON. Returns parse errors with position when invalid.

JSON to CSV

$0.002 · POST /api/json-to-csv

Convert a JSON array of objects to CSV. Nested objects are flattened to dot-path columns.

CSV to JSON

$0.002 · POST /api/csv-to-json

Parse CSV (quoted fields supported) into a JSON array of objects, using the first row as headers (header=false for array…

YAML to JSON

$0.002 · POST /api/yaml-to-json

Parse YAML into JSON (safe schema — no code execution).

JSON to YAML

$0.002 · POST /api/json-to-yaml

Convert JSON to YAML.

XML to JSON

$0.002 · POST /api/xml-to-json

Parse XML into a JSON object tree (attributes under _attrs, text under _text; repeated elements become arrays).

Markdown to HTML

$0.002 · POST /api/markdown-to-html

Render CommonMark + GFM markdown to HTML.

HTML to Markdown

$0.002 · POST /api/html-to-markdown

Convert an HTML fragment or document you already have into clean markdown. (To fetch + convert a live URL, use /api/extr…

JSON diff

$0.002 · POST /api/json-diff

Deep-compare two JSON values. Returns a list of changed/added/removed paths (capped at 1000 differences).

JSON query

$0.001 · POST /api/json-query

Extract a value from JSON by dot/bracket path, e.g. "items[2].name".

Text processing (7)

Slugs, case conversion, diffs, regex, keywords, token estimates.

Slugify

$0.001 · POST /api/slugify

Turn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).

Case convert

$0.001 · POST /api/case

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower, UPPER.

Text statistics

$0.001 · POST /api/text-stats

Characters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.

Keyword extraction

$0.002 · POST /api/keywords

Top keywords and two-word phrases by frequency (stopwords removed). Cheap, deterministic signal for routing, tagging, an…

Text diff

$0.002 · POST /api/text-diff

Line-by-line diff of two texts (LCS). Returns unified-style ops and change counts. Up to 2000 lines per side.

Regex test

$0.001 · POST /api/regex

Run a regular expression against text. Returns up to 100 matches with index and capture groups. Pattern ≤ 200 chars, tex…

Lorem ipsum

$0.001 · GET /api/lorem

Placeholder text. ?paragraphs=1..20 or ?words=1..2000.

Encoding & crypto (7)

Hashes, HMAC signatures, base64/hex, JWT decoding, TOTP codes.

Hash

$0.001 · POST /api/hash

Cryptographic hash of a text string. Algorithms: sha256 (default), sha512, sha1, md5. Returns hex and base64 digests.

HMAC

$0.001 · POST /api/hmac

HMAC signature of a message with a shared key. Algorithms: sha256 (default), sha512, sha1. Returns hex and base64.

Base64

$0.001 · POST /api/base64

Base64 encode or decode text. mode: encode (default) or decode. Handles URL-safe base64 on decode.

Hex

$0.001 · POST /api/hex

Hex encode or decode text. mode: encode (default) or decode.

URL encode/decode

$0.001 · POST /api/url-code

Percent-encode or decode a string for URLs. mode: encode (default) or decode. component: true (default) uses encodeURICo…

JWT decode

$0.001 · POST /api/jwt-decode

Decode a JWT without verification: header, payload, expiry status, and time remaining. (Decoding only — signatures are N…

TOTP code

$0.002 · POST /api/totp

Compute the current TOTP code (RFC 6238, 30s period, SHA-1, 6 digits) from a base32 secret. Useful for agents that must …

Generators & IDs (5)

UUIDs, ULIDs, passwords, secure randomness, QR codes.

UUID generator

$0.001 · GET /api/uuid

Generate UUIDs. ?version=4 (default, random) or 7 (time-ordered), ?count=1..100.

ULID generator

$0.001 · GET /api/ulid

Generate ULIDs (sortable, timestamp-prefixed identifiers). ?count=1..100.

Password generator

$0.001 · GET /api/password

Generate cryptographically random passwords. ?length=8..128 (default 24), ?symbols=true|false (default true), ?count=1..…

Random

$0.001 · GET /api/random

Cryptographically secure randomness. ?bytes=1..1024 returns hex; or ?min=&max= returns a uniform integer; ?count=1..100.

QR code

$0.002 · GET /api/qr

Generate a QR code PNG from any text or URL. ?text=…&size=256 (128-1024).

Time & scheduling (5)

Timezone-aware clocks, epoch conversion, cron parsing, durations.

Current time

$0.001 · GET /api/time

Current time: UTC ISO, epoch seconds/ms, day of week/year, ISO week — optionally rendered in any IANA timezone via ?tz=.

Time convert

$0.001 · POST /api/time-convert

Convert between epoch (s or ms), ISO 8601, and any IANA timezone. Give a value, get every representation back.

Cron next runs

$0.002 · POST /api/cron-next

Parse a 5-field cron expression and return the next N run times (UTC).

Duration parse/humanize

$0.001 · POST /api/duration

Parse a duration like "2h30m" / "1d4h" / "90s" to seconds, or humanize a number of seconds.

Date difference

$0.001 · POST /api/date-diff

Difference between two dates/times in ms, seconds, minutes, hours, days, and a human summary.

Validation & parsing (9)

Emails (with MX), URLs, IPs, user agents, colors, semver, IBAN, card numbers.

Email validate

$0.002 · POST /api/email-validate

Validate an email address: syntax check plus live MX record lookup on the domain (deliverability signal, not a guarantee…

URL parse

$0.001 · POST /api/url-parse

Parse a URL into components: protocol, host, port, path, query params (decoded), hash, origin, punycode hostname.

IP info

$0.002 · POST /api/ip-info

Classify an IP address: version, public/private/loopback/link-local, integer form, and reverse-DNS (PTR) lookup.

User-agent parse

$0.001 · POST /api/user-agent

Heuristic user-agent string parser: browser, version, OS, device class, and bot detection.

Color convert

$0.001 · POST /api/color

Convert a color between hex, RGB, and HSL. Accepts "#1a2b3c", "rgb(26,43,60)", or "hsl(210,40%,17%)".

Semver parse/compare

$0.001 · POST /api/semver

Parse a semantic version, or compare two (a vs b → -1/0/1, with greater/lesser flags).

MIME lookup

$0.001 · GET /api/mime

Look up a MIME type by file extension (?ext=png) or extensions by MIME type (?type=image/png). Covers ~50 common types.

IBAN validate

$0.001 · POST /api/iban-validate

Validate an IBAN: country code, length, and the ISO 13616 mod-97 checksum.

Card number validate

$0.001 · POST /api/card-validate

Validate a payment card number (Luhn checksum) and detect the brand. Numbers are not stored or logged.