JSON query x402 REST usage
Extract a value from JSON by dot/bracket path, e.g. "items[2].name".
agent402.tools · 662 listed services · provider site
Extract a value from JSON by dot/bracket path, e.g. "items[2].name".
Resolve an RFC 6901 JSON Pointer (e.g. /items/0/name) against a JSON value. Returns the value or found:false.
Deep-merge two JSON objects (b wins on conflicts; arrays are concatenated).
Validate, pretty-print (any indentation, 0-8 spaces), or minify JSON, optionally with object keys sorted. canonical: true returns the RFC 8785 (JCS) canonical form - keys sorted, no whitespace, ECMAScript number and stri...
Flatten nested JSON to dot-path keys, or unflatten dot-path keys back to nested JSON. mode: flatten (default) | unflatten.
Deep-compare two JSON values. Returns a list of changed/added/removed paths (capped at 1000 differences).
Get the ISO 8601 week number, ISO day-of-week, quarter, and day-of-year for any date. Useful for fiscal/reporting calendars, weekly aggregations, and sprint planning.
Compute the internal rate of return (IRR) of a cashflow stream - the discount rate at which NPV = 0. Index 0 is treated as t=0 (typically the negative initial investment); indices 1..n are inflows in subsequent periods....
Extract <title>, <meta description>, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from an HTML string. Distinct from /api/meta which fetches a URL - feed this the HTML you already have (from /api/render, /a...
Compute the date of Easter Sunday for a given year using the Anonymous Gregorian algorithm (Meeus/Jones/Butcher). Also returns Good Friday, Ash Wednesday, Palm Sunday, Pentecost, and the day-of-year for Easter.
Parse a duration like "2h30m" / "1d4h" / "90s" to seconds, or humanize a number of seconds.
Top reported adverse reactions for a drug from the FDA FAERS database (openFDA), ranked by report count - a fast read on a drug's real-world safety signal. Live FDA data, no key.
Decentralized exchanges ranked by 24h spot volume with 7d, 30d, 1y and all-time volume, change, the chains each trades on and sector totals. Use it when an agent needs to know where onchain spot volume is happening or ho...
Remove duplicate lines, preserving first-seen order. Returns the deduped text and how many were removed.
Get the day number within the year (1-366) for any date, plus days remaining, leap-year status, percent of year complete, and a simple (Sunday-start) week number.
Difference between two dates/times in ms, seconds, minutes, hours, days, and a human summary.
Validate CSV structure: consistent column counts across rows, properly closed quotes, delimiter detection. Returns row/column counts and any structural errors. Pure CPU.
Parse a 5-field cron expression and return the next N run times (UTC).
CRC-32 checksum of a text string (hex), the IEEE polynomial used by zip/png/gzip.
Pearson correlation coefficient between two equal-length numeric series. Returns r (the correlation, -1 to 1), r² (variance explained), n (sample size). Use this to ask things like: is a stock's daily return correlated w...
Run the same input through gzip, brotli, and raw deflate at max settings and report each one's output size and ratio. Use this to decide which algorithm to actually use - the answer depends on your content (binary often...
Read one known URL: the main article content as clean markdown with title, byline, excerpt and word count, boilerplate removed. Use it when an agent already has a URL and needs the text; for JavaScript-rendered pages tha...
Convert a color between hex, RGB, and HSL. Accepts "#1a2b3c", "rgb(26,43,60)", or "hsl(210,40%,17%)".
Latest average interest rates the US Treasury is paying by security type (Bills, Notes, Bonds, TIPS, FRNs, marketable vs non-marketable). Public domain, no key. No params - returns the most recent reporting month.
Parse an IPv4 CIDR block: network address, broadcast, first/last host, netmask, and host count. Optionally test if an IP is inside it.
Compute MD5, SHA-1, SHA-256, SHA-512, and CRC32 checksums of a string in a single call. Useful for verifying file or payload integrity across different checksum standards without needing five separate tools.
The circulating total supply of an ERC-20, read from the token contract itself rather than from an aggregator, so it is the number the chain holds at the block you asked for. Returns the raw uint256 and the same figure f...
Read one 32-byte storage slot from a contract, the raw state under whatever the source code calls it. Returns the word as hex plus three readings of the same bytes - unsigned integer, address (low 20 bytes) and boolean -...
The transaction count of an account, which is the nonce its next transaction must carry. Ask for block "pending" to include transactions already in the mempool, which is what you want before signing; the default "latest"...
Safely evaluate an arithmetic expression (+ - * / % ^ and parentheses). No code execution - a real parser, not eval.
Provider identity is derived from the domain or repository in the source record. If two vendors share a host, they appear together here — that is a limitation of the data, not a statement about ownership.