Skip to content
Fourohtwo

fastx402.tools/json-query

Query and reshape JSON with JMESPath (the query language of the AWS CLI): pick fields, filter arrays, project lists. Use it to pull exactly what you need out of a large API response.

BaseAnswering
GEThttps://fastx402.tools/json-query

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://fastx402.tools/json-query?json=%7B%22tools%22%3A%5B%7B%22name%22%3A%22dns%22%2C%22price%22%3A0.001%7D%2C%7B%22name%22%3A%22qr-code%22%2C%22price%22%3A0.002%7D%2C%7B%22name%22%3A%22tts%22%2C%22price%22%3A0.01%7D%5D%7D&expression=tools%5B%3Fprice+%3C+%600.005%60%5D.name");
console.log(await res.json());

Example input

{
  "json": "{\"tools\":[{\"name\":\"dns\",\"price\":0.001},{\"name\":\"qr-code\",\"price\":0.002},{\"name\":\"tts\",\"price\":0.01}]}",
  "expression": "tools[?price < `0.005`].name"
}

More from FastX402 Lab