Data tools / Agent memory and small utilities
Use when an agent needs a value it stored earlier with /kv/put: returns the text (and parsed json when it was stored as JSON), size, stored_at and expires_at for key in the namespace of the paying wallet; a missing or expired key is refused (404) before an x402 payment is taken. $0.001 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.
curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/kv/get?key=session%2Flast-run'| Parameter | Required | What it is |
|---|---|---|
key | yes | Key, 1-128 characters from A-Z a-z 0-9 . _ : / - |
Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.
{
"namespace": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"key": "session/last-run",
"found": true,
"value": "{\"step\":3,\"cursor\":\"abc\"}",
"json": {
"step": 3,
"cursor": "abc"
},
"stored_as": "json",
"bytes": 26,
"stored_at": "2026-10-19T12:00:00.000Z",
"expires_at": "2026-10-20T12:00:00.000Z",
"as_of": "2026-10-19T12:00:00.000Z",
"note": "Namespace = the wallet that paid for this call: only calls paid by the same wallet can read these keys. Stored in Cloudflare KV (eventually consistent, visible everywhere within about 60 s), plain text, not encrypted at the application level: do not store secrets. Expired keys disappear."
}Free sample, no payment: /kv/get/sample. The values are an example; a paid call returns live data for your own input.
Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/agent-memory-utils, tool kv_get. The tool returns the exact paid request for your input. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.
Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools