DEV Community

Corey Gallant
Corey Gallant

Posted on

I built a pay-per-record data marketplace for AI agents on x402 - On the CDP Bazaar

The problem: agents need citable facts; public data is scattered across 100s of APIs.

What OSF does: collect → provenance-stamp → serve over MCP + x402.

Runnable examples:

curl -s https://api.osf-master-server.com/.well-known/x402
Enter fullscreen mode Exit fullscreen mode
curl -s https://api.osf-master-server.com/x402/bazaar_health
Enter fullscreen mode Exit fullscreen mode

Agent ↔ osf · x402 exchange:

# 1 · discover (free)  list records + prices
call get_catalog { source: "SEC_EDGAR" }
 [ { record_id, data_type, price_usd,
      provenance_url },  ]
# 2 · request a record (MCP get_record or HTTP buy)
GET /x402/buy/standard/497140
 402 Payment Required
   accepts: { scheme: "exact",
     network: "eip155:8453",
     asset:  "USDC", amount: "50000",
     payTo:  "0x051A0Ba…cAf85" }
# 3 · x402 client pays + retries (automatic)
GET /x402/buy/standard/497140
   x-payment: "<signed settlement>"
# 4 · settled on-chain  record released
 200 OK
{
  "status": "success",
  "data_type": "Federal Funding Opportunity",
  "source": "GRANTS_GOV",
  "data": { /* the verified record */ },
  "provenance": {
    "source_url": "https://api.grants.gov/…",
    "retrieved_at_utc": "2026-06-09T…Z",
    "license": "U.S. Government Public Domain"
  }
}
Enter fullscreen mode Exit fullscreen mode

The website is https://osf-master-server.com

Requesting a source.

Top comments (0)