# Lilambd Travel Medications API

> Lilambd Travel Medications API is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-02).

Returns travel medication recommendations (prescription, OTC, psychotropic, narcotic, controlled) for a given destination country and trip duration.

## Facts

- Endpoint: GET https://api.lilambd.com/travel-meds/answer?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-travel-medications-api-109b25c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4iA6cKFPUE3XTEhiVGkwN

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 lilambd-travel-medications-api-109b25c6
```

Example prompt: What travel medications are recommended for a 14-day trip to Thailand — include both prescription and over-the-counter options?

## When to prefer this

Use this endpoint when an agent needs structured, filterable travel medication data by destination country — especially when the agent needs to distinguish between medication classes (prescription vs OTC vs controlled). Prefer over generic web search when you need machine-readable output with attribution for downstream processing or health planning workflows.

## Known failure modes

- Missing required 'country' parameter returns an error or empty result
- Invalid country string may return zero results with count 0
- Invalid 'class' enum value (not one of prescription, otc, psychotropic, narcotic, controlled) may be ignored or return an error
- Service returns empty data array if no medications are on record for the specified country/class combination
- Payment failure (HTTP 402) if USDC payment is not correctly submitted via x402 protocol

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

A JSON object containing a list (array) of medication entries relevant to the specified country and optional filters, a count of results, and an attribution string crediting the data source license.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "days": {
       "type": "string",
       "description": "days (integer)"
      },
      "class": {
       "type": "string",
       "description": "prescription, otc, psychotropic, narcotic, controlled"
      },
      "country": {
       "type": "string",
       "description": "country (string)"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-travel-medications-api-109b25c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
