grid904

Docs

Find a route, pay, read the data.

grid904 speaks x402: payment happens inside the HTTP request, in USDC on Base and Solana. Any x402 client works. There is no account and no API key.

Quickstart

Three calls take an agent from a company name to paid data. The first is free.

# 1. Resolve the entity. Free.
curl "https://api.grid904.com/search?q=jpmorgan&type=bank"

# 2. Ask for a route. The answer is 402 with the price in the PAYMENT-REQUIRED header.
curl -i https://api.grid904.com/v1/banks/628/snapshot

# 3. Pay with an x402 client. It reads the 402, signs a USDC payment and retries.

In TypeScript, with the official client packages:

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
import type { Hex } from "viem";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY as Hex) });
const paidFetch = wrapFetchWithPayment(fetch, client);

const found = await (await fetch("https://api.grid904.com/search?q=jpmorgan&type=bank")).json();
const route = found.results[0].routes["banks.snapshot"];   // { url, price_usd }

const response = await paidFetch(route.url);                // pays $0.04 in USDC
const { data, meta } = await response.json();
The paying wallet needs USDC only. The facilitator pays the network fee. The client caps each payment at one dollar unless you raise the limit.

Find a route

Use whichever fits the agent:

  • /search resolves a name, ticker, FDIC certificate or CIK and returns the routes that hold data for the match, with prices.
  • /catalog lists every route with its price and a ready-to-call example URL.
  • /openapi.json is the full contract. Prices are in x-payment-info.
  • /llms.txt is the same in plain text for a language model.
  • The MCP server exposes search and the route list as tools.
  • The routes page is the human version.

Pay for a call

An unpaid request returns 402 Payment Required. The PAYMENT-REQUIRED header is base64 JSON holding the price in USDC base units (six decimals), the network, the asset and the receiving address, once per accepted network. The client signs a payment for one of those options and repeats the request with a PAYMENT-SIGNATURE header. The gateway verifies it with the facilitator, serves the data, settles the payment and returns the receipt in PAYMENT-RESPONSE.

The price in the 402 is the price charged. Nothing else is added.

Responses

Every paid response has the same envelope:

{
  "data": { },
  "meta": {
    "endpoint": "banks.snapshot",
    "as_of": "2026-06-30",
    "updated_at": "2026-12-03T11:16:10.000Z",
    "sources": ["FDIC BankFind Suite (Call Reports)"]
  }
}

as_of is the date the data describes. For a bundle it is the oldest date among its sections, so the response never overstates freshness. sources names where the data came from. Field labels and units are in the free dictionaries.

Errors and charging

StatusMeaningCharged
200Data returnedYes
400A parameter is missing or malformed. The body names it.No
402Payment required, or the payment did not verifyNo
404No data is held for that entity or periodNo

Settlement happens only after the gateway has the data in hand. A lookup that fails is never settled.

Free endpoints

PathPurpose
/search?q=Resolve a bank, company or county by name, ticker, FDIC cert, CIK or FIPS to an entity and its routes
/dictionaryField dictionaries: labels, units and time basis
/qualityCoverage, freshness, build checks and known gaps
/catalogEvery paid route with price and example URL
/openapi.jsonOpenAPI contract with prices
/mcpMCP server (Streamable HTTP) with the free discovery tools

/search takes q (required), type (bank, company, county or all; counties are also matched when the query contains the word county), state (two letters), active=true for operating banks only, and limit (1 to 25).

MCP server

The gateway is also a Model Context Protocol server over Streamable HTTP at https://api.grid904.com/mcp. Its tools are free: search_entities, list_routes, get_route, get_dictionary and get_quality_report. An agent uses them to choose a route, then buys from the route URL with its x402 client.

{
  "mcpServers": {
    "grid904": { "type": "http", "url": "https://api.grid904.com/mcp" }
  }
}

In Claude Code: claude mcp add --transport http grid904 https://api.grid904.com/mcp

Bundles

A bundle route joins several datasets into one response for one price, lower than buying the routes separately. Sections that are optional and have no data for the entity are returned as null. Bundles are marked on the routes page.

Networks

NetworkIdentifierReceiving address
Baseeip155:84530x622124Db00a7ad96AbDD637bDFc3983dF42640da
Solanasolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp3nZqHRmkxTHgVAtmzyTCDJAnEDZu1z7EW6Y19ta1UdXD

Payments are in USDC. The 402 response is the authority for the address and amount; read it rather than hard-coding these.

Support

Write to hello@grid904.com. To try a purchase by hand, the buy page pays for every route once from a small browser wallet.