# PubMed on Onekey > 5 endpoints for PubMed (5 stable, 0 beta), 1 to 5 credits each. Category: Science & research. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/pubmed Reference (Markdown): https://onekey.dev/docs/api/pubmed.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 5 mapped PubMed endpoints return each: - `content.id` (string): 4 - `entity.description` (string): 1 - `entity.name` (string): 1 - plus 2 platform-specific fields under `ext.` ## Endpoints ### pubmed.cited_by PubMed articles citing a PMID. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/pubmed/cited_by?pmid=33087721` with header `x-api-key: YOUR_API_KEY` - Parameters: - `pmid` (string, required): PubMed id (PMID) - Fields returned: `content.id` - Reference: https://onekey.dev/docs/api/pubmed/cited_by.md ### pubmed.database_info PubMed database statistics (record count, last update). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/pubmed/database_info` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.name`, `entity.description`, `ext.records`, `ext.lastUpdate` - Reference: https://onekey.dev/docs/api/pubmed/database_info.md ### pubmed.related PubMed articles related to a PMID. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/pubmed/related?pmid=33087721` with header `x-api-key: YOUR_API_KEY` - Parameters: - `pmid` (string, required): PubMed id (PMID) - Fields returned: `content.id` - Reference: https://onekey.dev/docs/api/pubmed/related.md ### pubmed.search Search PubMed; returns matching PMIDs. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/pubmed/search?q=crispr` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `content.id` - Reference: https://onekey.dev/docs/api/pubmed/search.md ### pubmed.search_recent Search PubMed sorted by publication date; returns PMIDs. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/pubmed/search_recent?q=crispr` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `content.id` - Reference: https://onekey.dev/docs/api/pubmed/search_recent.md ## Sample request ```bash curl "https://api.onekey.dev/v1/pubmed/database_info" \ -H "x-api-key: YOUR_API_KEY" ```