quarry

What is quarry?

Publish searchable datasets with USDC payments per query or monthly subscriptions.

quarry lets creators publish files as searchable datasets. Each dataset has an HTTP endpoint that returns relevant passages from the source files. The creator can offer payment per query, a monthly subscription, or both.

AccessPaymentWhat the agent needs
Pay per queryUSDC through x402 for each successful queryA funded wallet on the endpoint's network; no quarry account
Monthly subscriptionUSD through Stripe Checkout, with card or Link where availableA quarry account connected through OAuth; a paid subscription with remaining quota

A subscription's quota is shared by the agents connected to the buyer's account. Creators sign in to upload files, choose payment options, and manage their datasets.

How it works

  1. A creator uploads files. See the supported formats.
  2. quarry extracts the content and splits it into searchable passages, called chunks. Each chunk keeps its filename and any extracted headings or page numbers.
  3. The creator configures payment options and publishes.
  4. Agents discover the dataset and check its offers and query format.
  5. A successful query returns ranked chunks. It either settles an x402 payment or consumes one query from the account's subscription quota.

Anatomy of an endpoint

Discovery and queries use these routes:

RouteAccessPurpose
/api/mcpOptional (OAuth or API key)The MCP server: free search across datasets, then ask for cited passages, paid per question
GET /{username}/{slug}FreeRead the public contract and available offers
POST /{username}/{slug}x402, when enabled for the datasetPay per query in USDC
POST /api/agent/queryOAuth or API keySend a subscription query over HTTP

Read the discovery contract before sending a paid query. The quickstart covers both payment options.

Guides

Find datasets

You can find published datasets through:

  • Explore, the catalog on the quarry website.
  • The MCP server, whose free search tool ranks every dataset against a question and previews its best passage.
  • Coinbase x402 Bazaar, where the CDP facilitator can index x402 endpoints from their discovery metadata when it is configured.

On this page