MA
Market Data · x402 · early usage

Search live drug and medicine metadata from the U.S

Search live drug and medicine metadata from the U.S. FDA's openFDA API: brand/generic name, active ingredients with strength, dosage form, route, manufacturer/labeler, product type, marketing status, and NDC codes -- plus an optional short (~400 character) la…

by api.macaroonnetwork.com · discovered, not yet claimed by its owner · updated 2026-10-09

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Search live drug and medicine metadata from the U.S. FDA's openFDA API: brand/generic name, active ingredients with strength, dosage form, route, manufacturer/labeler, product type, marketing status, and NDC codes -- plus an optional short (~400 character) label excerpt (purpose or indications only) and an optional recall/enforcement flag. Composed entirely from openFDA's NDC Directory, Drug Label, and Drug Enforcement APIs, all public domain (CC0 1.0 Universal). Never returns full label section

Tags: DATA LOOKUP · agent-marketplace · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-09
Input example from Bazaar metadata
{
  "input": {
    "filters": {
      "limit": 5
    },
    "query": "find NDC codes and active ingredients for a brand name drug"
  },
  "predicate": {
    "conditions": [
      {
        "field": "$.results",
        "type": "count_gte",
        "value": 1
      }
    ],
    "type": "all"
  }
}
Output example
{
  "payload": {
    "notices": [],
    "query": "",
    "results": []
  },
  "predicate_passed": true,
  "settled": true
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/30045.json for the price and payment options.
  3. Pay. Call GET https://api.macaroonnetwork.com/execute/drug-medicine-metadata-search-v1. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.003 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0030x33cc8de6e86761d217044a8a6b394ad23b57959660s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x33cc8de6e86761d217044a8a6b394ad23b579596",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "amountUsd": 0.003,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl -X POST 'https://api.macaroonnetwork.com/execute/drug-medicine-metadata-search-v1' -H 'Content-Type: application/json' --data '{"input":{"filters":{"limit":5},"query":"find NDC codes and active ingredients for a brand name drug"},"predicate":{"conditions":[{"field":"$.results","type":"count_gte","value":1}],"type":"all"}}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://api.macaroonnetwork.com/execute/drug-medicine-metadata-search-v1", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"input\":{\"filters\":{\"limit\":5},\"query\":\"find NDC codes and active ingredients for a brand name drug\"},\"predicate\":{\"conditions\":[{\"field\":\"$.results\",\"type\":\"count_gte\",\"value\":1}],\"type\":\"all\"}}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://api.macaroonnetwork.com/execute/drug-medicine-metadata-search-v1", json=json.loads("{\"input\":{\"filters\":{\"limit\":5},\"query\":\"find NDC codes and active ingredients for a brand name drug\"},\"predicate\":{\"conditions\":[{\"field\":\"$.results\",\"type\":\"count_gte\",\"value\":1}],\"type\":\"all\"}}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.macaroonnetwork.com
Endpoint
https://api.macaroonnetwork.com/execute/drug-medicine-metadata-search-v1
Machine-readable
/resources/30045.json