# OSF Healthcare Records Search

> OSF Healthcare Records Search is a paid API for AI agents from api.osf-master-server.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Search provenance-stamped US healthcare and clinical data — including ClinicalTrials.gov studies, provider NPI records, and drug information — returning verified public-domain records with source attribution.

## Facts

- Endpoint: GET https://api.osf-master-server.com/x402/healthcare/records/%7Bquery%7D
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/osf-healthcare-records-search-4b867e32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MrxcqLt9sSamp1fpBeFqx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability osf-healthcare-records-search-4b867e32
```

Example prompt: Search OSF's verified healthcare records for clinical trials involving semaglutide — I need the trial identifiers, study titles, and source attribution for any matches you find.

## When to prefer this

Choose this endpoint when you need verifiable, provenance-stamped healthcare and clinical data from authoritative US government sources (ClinicalTrials.gov, NPI registry) and require source attribution for each record. It is ideal for agents operating in regulated or research contexts where data lineage matters, and when micropayment-per-record pricing is preferable to a subscription. Prefer this over general web search when you need structured, machine-readable healthcare records with traceable provenance.

## Known failure modes

- No matches found for the query keyword — result status indicates no records
- Invalid or malformed query string causes a 400-level error
- Payment not completed or insufficient USDC balance triggers an x402 payment required response
- Query too vague returns too many or irrelevant matches
- NPI or NCT identifier not found in the indexed dataset

## How this service works

OSF is a live marketplace of provenance stamped public domain government and scientific data, built for autonomous agents that pay per record over x402 micropayments on Base. A paid MCP server in the official MCP Registry, discoverable on the Coinbase CDP Bazaar.

## Output

A JSON object containing a result status (e.g. MATCHES_FOUND), an array of matched records each with a source database name (e.g. CLINICALTRIALS), a numeric record ID, a standardized identifier (e.g. NCT number), and a name or title for the study or record, plus a total match count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Keyword(s): provider name or NPI, drug name or RxCUI, condition, sponsor, or NCT id. E.g. 'cardiology TX' or 'semaglutide'."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "MATCHES_FOUND",
  "matches": [
   {
    "source": "CLINICALTRIALS",
    "record_id": 12345,
    "identifier": "NCT05355701",
    "name_or_title": "A Study of PF-07799933 in Advanced Solid Tumors"
   }
  ],
  "match_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/osf-healthcare-records-search-4b867e32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.osf-master-server.com](https://www.zero.xyz/host/api.osf-master-server.com/llms.txt)
