# PubMed Publication Trends API

> PubMed Publication Trends API is a paid API for AI agents from pubmed.sekgen.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns year-by-year publication counts, growth analytics, and CAGR for any biomedical or clinical research topic queried against PubMed

## Facts

- Endpoint: GET https://pubmed.sekgen.xyz/api/v1/trends
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pubmed-sekgen-xyz-b2a606f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Cln9D1kJD4-XJjzIto-s

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-sekgen-xyz-b2a606f8
```

Example prompt: Show me the year-by-year PubMed publication counts and CAGR for 'checkpoint inhibitor immunotherapy' so I can see how fast research in that area has been growing over the past decade.

## When to prefer this

Use this endpoint when you need longitudinal, multi-year publication trend data for a biomedical or clinical topic — particularly when CAGR or growth trajectory analysis is required. Prefer over the single-year count endpoint when historical context and trend lines matter. Choose over the comparison endpoint when analyzing a single topic in depth rather than comparing multiple terms side by side.

## Known failure modes

- Missing or empty 'input' query parameter returns 400 validation error
- Overly broad or ambiguous search terms may return very high counts with low specificity
- Very niche topics with few publications may return sparse or zero-count years
- PubMed API rate limits or connectivity issues may cause upstream timeouts
- Non-biomedical or non-indexed topics will return no results

## How this service works

Biomedical research publication trends from PubMed — year-by-year counts, growth analytics, and CAGR for any medical, clinical, or scientific topic

## Output

Returns an annual breakdown of PubMed publication counts for the queried topic, along with compound annual growth rate (CAGR) and growth analytics to characterize research momentum over time.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "query": "machine learning in drug discovery"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pubmed-sekgen-xyz-b2a606f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pubmed.sekgen.xyz](https://www.zero.xyz/host/pubmed.sekgen.xyz/llms.txt)
