# PubMed Trends API

> PubMed Trends API is a paid API for AI agents from pubmed-trends-x402.ben-miles2.workers.dev, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Analyzes and returns trending topics, keywords, or research themes from PubMed biomedical literature

## Facts

- Endpoint: POST https://pubmed-trends-x402.ben-miles2.workers.dev/api/v1/trends
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pubmed-trends-api-dfb5751f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xti7-dfaoRsAbI0KnE7PD

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 pubmed-trends-api-dfb5751f -d '<json body>'
```

Example prompt: What are the currently trending research topics on PubMed in the field of oncology? Pull the latest trend data so I can see what areas are getting the most attention in recent publications.

## When to prefer this

Use this endpoint when you need to identify what biomedical or medical research topics are currently trending or gaining traction in PubMed publications. Ideal for researchers, journalists, or analysts wanting a pulse on the latest hot topics in life sciences literature without manually scraping PubMed.

## Known failure modes

- Invalid or missing query parameters return 400 error
- Payment not included or invalid x402 payment header returns 402 Payment Required
- PubMed API upstream timeout or unavailability returns 503
- Rate limiting if too many requests in short period
- Empty results if query matches no trending content

## Output

Returns a list of trending research topics, keywords, or themes from PubMed literature, likely including trend scores, topic names, publication counts, or time-series data showing rising interest in specific biomedical subjects.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pubmed-trends-api-dfb5751f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pubmed-trends-x402.ben-miles2.workers.dev](https://www.zero.xyz/host/pubmed-trends-x402.ben-miles2.workers.dev/llms.txt)
