Medical Research

PubMed API

Seamlessly integrate medical and clinical research data into your applications with reliable structured JSON.

Overview

The PubMed API allows you to search the PubMed biomedical literature database programmatically. Retrieve article titles, authors, abstracts, PMIDs, and open-access indicators for healthcare apps, research platforms, and clinical decision support tools.

<100ms
Avg. Response Time
99.97%
Uptime Guarantee
35M+ citations
Coverage

API Endpoint

GEThttps://api.bitlore.in/search

Parameters

ParameterTypeRequiredDescription
qstringYesSearch term for biomedical literature
search_enginestringYesMust be "pubmed"
api_keystringYesYour API key for authentication
pageintegerNoPage number for pagination (default: 1)

Code Examples

import axios from 'axios';

const searchPubmed = async () => {
  try {
    const response = await axios.get('https://api.bitlore.in/search', {
      params: {
        search_engine: 'pubmed',
        q: 'machine learning',
        page: 1,
        api_key: 'YOUR_API_KEY'
      }
    });

    console.log('Results:', response.data);
    return response.data;
  } catch (error) {
    console.error('Error:', error.response?.data || error.message);
  }
};

searchPubmed();

Response Format

{
  "status": true,
  "message": "Task executed",
  "data": {
    "results": [
      {
        "title": "A guide to machine learning for biologists.",
        "link": "https://pubmed.ncbi.nlm.nih.gov/34518686/",
        "authors": "Greener JG, Kandathil SM, Moffat L, Jones DT.",
        "source": "Nat Rev Mol Cell Biol. 2022 Jan;23(1):40-55.",
        "snippet": "Overview of machine learning methods for biological data...",
        "pmid": "34518686",
        "is_free": false
      }
    ],
    "related_searches": [{ "title": "machine learning medicine" }],
    "current_page": 1,
    "total_pages": "18,573"
  }
}

Response Field Reference

Fields inside data.results[]:

FieldTypeDescription
titlestringArticle title
linkstring (URL)PubMed article URL
authorsstringAuthor list
sourcestringJournal and publication details
snippetstringAbstract excerpt
pmidstringPubMed unique identifier
is_freebooleanWhether full text is freely available

Pagination

Use the page parameter to fetch additional result pages. Default is page 1.

GET .../search?search_engine=pubmed&q=cancer+immunotherapy&page=2&api_key=YOUR_KEY

Error Handling

400 Bad Request

Invalid or missing parameters

401 Unauthorized

Invalid or missing API key

402 Payment Required

Quota exceeded — upgrade your plan

Rate Limits & Quotas

Limits depend on your plan. Free Developer tier: 50 calls. Production and above: 10,000+ calls per billing period.

View pricing →

Status Codes

200Success
400Bad Request
401Unauthorized
402Payment Required

Ready to integrate?

Get your free API key and start building.