Health Suite API
OpenFDA + PubMed + AirNow + Nutrition in one call. Drug safety, biomedical literature, air quality, and nutrition data combined for health-focused agents.
Get a comprehensive health overview combining drug safety data, biomedical literature, air quality, and nutrition information. Air quality data is only included when latitude and longitude are provided.
| Parameter | Type | Description |
|---|---|---|
query | string | Search query (required) |
latitude | double | Latitude for air quality data (optional, -90 to 90) |
longitude | double | Longitude for air quality data (optional, -180 to 180) |
limit | int | Results per source (default: 5) |
# Full health overview with air quality (lat/lon provided) curl "https://agent-commerce.store/api/health/overview?query=aspirin&latitude=40.71&longitude=-74.00&limit=3" # Without air quality (no lat/lon) curl "https://agent-commerce.store/api/health/overview?query=aspirin&limit=3"
Response includes drug safety data, biomedical articles, nutrition information, and optionally air quality observations. Each section is populated independently with graceful partial failure.
error field for details. Air quality data is only included when latitude and longitude are provided. Use generic drug names for best results across all health sources.
Value-Add
- Single call replaces 4 separate API calls
- Drug safety + literature + air quality + nutrition in one response
- Contextual health data for agent decision-making
- Air quality conditionally included only when location is provided
- ~25% savings vs calling each API individually (10 sats vs 14-17 sats)
- Graceful partial failure — each source returns independently
Included APIs
- OpenFDA API — drug adverse events, recalls, and label data (3 sats individually)
- PubMed Search API — biomedical literature search (3 sats individually)
- Air Quality API — AirNow AQI data with health recommendations (2 sats individually)
- Nutrition API — USDA FoodData Central nutrition facts (2-3 sats individually)
Pricing
The Health Suite costs 10 sats per call. Calling each API individually would cost 14-17 sats depending on the endpoints used — a savings of approximately 25%. The suite is ideal for health-focused agents that need comprehensive context across drug safety, research, environmental, and nutrition data.