KnowAPI

Use KnowAPI from your agent

Verified public data, with the official source, freshness and coverage on every answer. Three ways in, from no setup to full control. Prices from $0.0037 per call.

What agents use KnowAPI for (instead of doing it themselves)

Ask once, reuse as an API

The ask tool answers from all our verified datasets at once (checked against the records) and returns reuse.url and reuse.id: a permanent API for that question. Call the URL, or the MCP tool rerun_question({id}), on your schedule for fresh records with no AI cost ($0.0037 per call).

Only what changed

Every dataset takes since and returns next_since: call again later and get just the new or changed records. Your agent needs no memory.

Complete official lists

Exclusion lists, licenses, providers and registries are kept whole, read across every page of the agency's portal, including Excel and zipped files.

Watch and get told

Alerts on any dataset, name or item: a signed webhook, email, text or inbox the moment something new appears. Pay only when something is delivered.

Thousands at once

Batch endpoints screen up to 100 names or check 100 items per call.

Missing data? We build it

request_data researches official sources and builds a new API, usually in 5 to 10 minutes.

curl -i "https://api.knowapi.dev/v1/data/ask?q=Which+FDA+drug+shortages+involve+amoxicillin%3F"
# 402 -> pay $0.25 with x402, or add your key; MCP tool: ask({question:"..."})

curl -H "Authorization: Bearer YOUR_KEY" "https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/query?since=2026-11-27T05:00:00Z"
# -> only new or changed records, each with _change: new|updated, plus next_since for your next call

1. MCP: your agent finds, keys and queries APIs itself

Add this remote MCP server in Claude, Cursor or any MCP client. Tools: search_apis, get_api_key, query_api, export_dataset, create_alert, check_alerts, request_data, check_request, get_plans.

https://api.knowapi.dev/mcp

Then ask your agent something like: "Find an API for FDA drug shortages and list the current shortages for amoxicillin."

2. Pay per call, no key or sign-up (x402)

Call any API's address. Without a key the answer is 402 Payment Required with the price (USDC on Base) in the PAYMENT-REQUIRED header. An x402 client pays it and repeats the call automatically; see Coinbase's x402 SDKs at github.com/coinbase/x402. Each API has its own address in the directory and the catalog (pay_per_call_url).

curl -i "https://api.knowapi.dev/v1/data/us-fda-drug-shortages?limit=5"
# HTTP/2 402  ->  PAYMENT-REQUIRED: <base64 payment request: $0.004 USDC on Base>

3. Free key: your first 5 calls free within 48 hours, then pay per call

# Get a key for one API (no sign-up)
curl -X POST https://api.knowapi.dev/v1/keys -H "Content-Type: application/json" -d '{"api_id":"384ff4d8-e8dc-4989-ba2d-00f07004ab65"}'

# Query it
curl -H "Authorization: Bearer YOUR_KEY" "https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/query?limit=5"
import requests
r = requests.get("https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/query",
                 headers={"Authorization": "Bearer YOUR_KEY"}, params={"limit": 5})
data = r.json()
print(data["provenance"])        # official source and when it was read
for row in data["data"]:
    print(row)

Every response carries provenance, coverage and quality.warnings. "No results" is never presented as proof of absence when coverage is incomplete.

Spending limits: let your agent buy within a budget

Give a key a daily or monthly cap. A charge that would pass it is refused before anything is spent (402 spending_limit_reached), including x402 payments made with the key. Every metered response shows what is left in usage.spending_limits_left.

curl -X POST https://api.knowapi.dev/v1/keys -H "Content-Type: application/json" \
  -d '{"api_id":"...","spend_limit_usd_day":5,"spend_limit_usd_month":50}'
curl https://api.knowapi.dev/v1/keys/limits -H "Authorization: Bearer YOUR_KEY"          # what is left
curl -X POST https://api.knowapi.dev/v1/keys/limits -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" -d '{"day_usd":2}'                       # set or lower

An agent can set or lower its own limits; only you raise or remove them, on your account page, where you can also cap the whole account per month. MCP: get_api_key takes spend_limit_usd_day and spend_limit_usd_month.

Add-ons: more rows, full export, live reads

A call returns up to 50 records at the API's price. Add-ons are query parameters on the same call, and the price already includes them: without a key, the 402 asks for the total (call + add-ons) and your x402 client pays that amount; with a key, the total is drawn from your credit. Each API lists only the add-ons that fit it, in options (catalog, get_plans, MCP search_apis, and every 402 answer).

# Up to 500 records (10x the call price) or 3,000 (60x); charged only for records actually returned
curl -i "https://api.knowapi.dev/v1/data/us-fda-drug-shortages?limit=500"
# 402 -> PAYMENT-REQUIRED asks for the total for this call; pay it and repeat the call

# Live read (5x): the source is re-read just before answering
curl -i "https://api.knowapi.dev/v1/data/us-fda-drug-shortages?live=true"

# Full export, up to 3,000 records (CSV or JSON), priced like a call for that many records
curl -i "https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/export?format=json"
# The options for one API
curl "https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/plans"
# -> "options": { "row_options": [...], "full_export": {...} | null, "live": {...} | null }

Watch for changes: POST https://api.knowapi.dev/v1/apis/384ff4d8-e8dc-4989-ba2d-00f07004ab65/alerts with your key and {"params":{"state":"CA"},"webhook_url":"https://your.app/hook"} (or "email":true, or poll /v1/alerts/inbox; MCP: create_alert / check_alerts). Signed webhooks; one call price per delivery.

Paying a lot of calls? Top up a key once with x402 and calls draw from that credit, with no payment per call: curl -X POST -H "Authorization: Bearer YOUR_KEY" "https://api.knowapi.dev/v1/credits/topup?usd=5" (402 → pay $5 USDC → credit added; $1, $5 or $20). Credit never expires.

MCP agents: pass limit or live in query_api params, and use export_dataset for a full export. The 402's price is the full price of that exact call, so re-quote (call again without paying) whenever you change the parameters.

Need data we don't have?

Ask for it. A new API is usually ready in 5 to 10 minutes.

curl -X POST https://api.knowapi.dev/v1/requests -H "Content-Type: application/json" \
  -d '{"description":"An API that returns ...","notify_url":"https://your.app/hooks/knowapi"}'
# -> we POST a signed "api_ready" message to notify_url the moment it is built (no polling)

Full catalog: https://api.knowapi.dev/v1/catalog · Agent guide: llms.txt · API spec: openapi.json