# MedlinePlus API

> MedlinePlus returns health-topic information and lab test explanations as a workflow and API.

MedlinePlus provides health-topic overviews and related topics; enter a condition or symptom, and optionally choose a language. Explain lab test describes what a test measures, why it may be ordered, preparation, risks, and results; enter a test name.

- Page: https://fous.com/workflows/medlineplus
- Handle: `@medlineplus`
- Category: [Health](https://fous.com/workflows/category/health)
- Source website: https://medlineplus.gov
- Last verified: Sep 29, 2026
- Fous is not affiliated with MedlinePlus.

## Methods

### Explain lab test

Operation `explain_lab_test`, version 1. 1 credit per call.

Explain what a MedlinePlus medical test measures, why it may be ordered, how it is done, preparation, risks, and what results mean. Only tests with a matching MedlinePlus Medical Tests page are available.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `test` | string | yes | `"A1C"` | Test name on a lab form or report, for example A1C, CBC, or TSH. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "test"
  ],
  "properties": {
    "test": {
      "type": "string",
      "description": "Test name on a lab form or report, for example A1C, CBC, or TSH.",
      "examples": [
        "A1C",
        "CBC",
        "TSH"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "test": "A1C"
    },
    {
      "test": "CBC"
    },
    {
      "test": "TSH"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `risks` | string or null | `"There is very little risk to having a blood test. You may have slight pain or bruising at the spot where the needle was` | Risks of the test. |
| `used_for` | string or null | `"A complete blood count is often part of a routine checkup . It is also used to monitor a condition or treatment that ma` | What the test is used for. |
| `page_link` | string | `"https://medlineplus.gov/lab-tests/hemoglobin-a1c-hba1c-test/"` | MedlinePlus test page. |
| `test_name` | string | `"Hemoglobin A1C (HbA1c) Test"` | MedlinePlus name of the test. |
| `what_it_is` | string or null |  | What the test is and measures. |
| `other_names` | array |  | Other names listed on the test page. |
| `what_happens` | string or null | `"A health care professional will take a blood sample from a vein in your arm, using a small needle. After the needle is ` | What happens during the test. |
| `how_to_prepare` | string or null | `"Certain medicines such as opioids and some HIV medicines may affect your results, so tell your provider about everythin` | How to prepare. |
| `what_results_mean` | string or null |  | Explanation of results. |
| `why_you_might_need_it` | string or null | `"Your health care provider may have ordered a complete blood count as part of your checkup or to monitor your overall he` | Reasons the test may be ordered. |

**Example input**

```json
{
  "test": "A1C"
}
```

**Example output**

```json
{
  "risks": "There is very little risk to having a blood test. You may have slight pain or bruising at the spot where the needle was put in, but most symptoms go away quickly.",
  "used_for": "Your blood glucose level changes all the time. If you're checking it at home, you are measuring what your blood glucose level is at that time. An A1C test gives you an average level of your blood gluc…",
  "page_link": "https://medlineplus.gov/lab-tests/hemoglobin-a1c-hba1c-test/",
  "test_name": "Hemoglobin A1C (HbA1c) Test",
  "what_it_is": "A hemoglobin A1C (HbA1C) test is a blood test that shows your average level of blood glucose , also called blood sugar, over the past two to three months.\nGlucose is a type of sugar in your blood that…",
  "other_names": [
    "HbA1C",
    "A1C",
    "glycohemoglobin"
  ],
  "what_happens": "A health care professional will take a blood sample from a vein in your arm, using a small needle. After the needle is inserted, a small amount of blood will be collected into a test tube or vial. You…",
  "how_to_prepare": "Certain medicines such as opioids and some HIV medicines may affect your results, so tell your provider about everything you take. But don't stop taking any medicines unless your provider tells you to…",
  "what_results_mean": "A1C results tell you what percentage of your hemoglobin is coated with glucose. The ranges are just a guide to what is normal. What's normal for you depends on your health, age, and other factors. Ask…",
  "why_you_might_need_it": "The Centers for Disease Control (CDC) recommends A1C testing for diabetes and prediabetes if:\n• You are over age 45. If your results are normal, your provider will tell you how often you should be tes…"
}
```

### Get health topic

Operation `get_health_topic`, version 1. 1 credit per call.

Get a MedlinePlus health-topic overview and related topics for a condition or symptom. Encyclopedia sections are included only when a matching article is linked from that topic; unavailable sections are null.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `topic` | string | yes | `"shingles"` | Condition or symptom to look up, for example shingles or back pain. |
| `language` | string | no | `"spanish"` | Language of the overview, for example spanish. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "minLength": 1,
      "description": "Condition or symptom to look up, for example shingles or back pain.",
      "examples": [
        "shingles",
        "back pain"
      ]
    },
    "language": {
      "enum": [
        "english",
        "spanish"
      ],
      "type": "string",
      "default": "english",
      "description": "Language of the overview, for example spanish.",
      "examples": [
        "spanish"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "topic": "shingles"
    },
    {
      "topic": "shingles",
      "language": "spanish"
    },
    {
      "topic": "back pain"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `title` | string | `"Back Pain"` | MedlinePlus topic title. |
| `causes` | string or null |  | Causes from a matching medical encyclopedia article. |
| `summary` | string or null |  | Plain-text health topic overview. |
| `symptoms` | string or null |  | Symptoms from a matching medical encyclopedia article. |
| `page_link` | string | `"https://medlineplus.gov/backpain.html"` | MedlinePlus health topic page. |
| `treatment` | string or null |  | Treatment from a matching medical encyclopedia article. |
| `prevention` | string or null |  | Prevention from a matching medical encyclopedia article. |
| `other_names` | array |  | Other names of the health topic. |
| `related_topics` | array |  | Related MedlinePlus health topics. |
| `related_topics[].link` | string | `"https://medlineplus.gov/backinjuries.html"` |  |
| `related_topics[].name` | string | `"Back Injuries"` |  |
| `exams_and_tests` | string or null |  | Exams and tests from a matching medical encyclopedia article. |
| `when_to_contact_a_doctor` | string or null |  | When to contact a medical professional from a matching medical encyclopedia article. |

**Example input**

```json
{
  "topic": "back pain"
}
```

**Example output**

```json
{
  "title": "Back Pain",
  "causes": null,
  "summary": "If you've ever groaned, \"Oh, my aching back!\", you are not alone. Back pain is one of the most common medical problems, affecting 8 out of 10 people at some point during their lives. Back pain can ran…",
  "symptoms": null,
  "page_link": "https://medlineplus.gov/backpain.html",
  "treatment": null,
  "prevention": null,
  "other_names": [
    "Pain, Back",
    "Low Back Pain",
    "Lumbago"
  ],
  "related_topics": [
    {
      "link": "https://medlineplus.gov/backinjuries.html",
      "name": "Back Injuries"
    },
    {
      "link": "https://medlineplus.gov/guidetogoodposture.html",
      "name": "Guide to Good Posture"
    },
    {
      "link": "https://medlineplus.gov/herniateddisk.html",
      "name": "Herniated Disk"
    }
  ],
  "exams_and_tests": null,
  "when_to_contact_a_doctor": null
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@medlineplus",
  "visibility": "public",
  "operation": "explain_lab_test",
  "version": 1,
  "input": {
    "test": "A1C"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@medlineplus\",\n  \"visibility\": \"public\",\n  \"operation\": \"explain_lab_test\",\n  \"version\": 1,\n  \"input\": {\n    \"test\": \"A1C\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@medlineplus",
  "visibility": "public",
  "operation": "explain_lab_test",
  "version": 1,
  "input": {
    "test": "A1C"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@medlineplus","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Research condition causes, symptoms, and treatment options
- Find related health topics for a condition
- Explain what a lab test measures
- Help patients prepare for a medical test
- Clarify what test results may mean

## FAQ

### Is Fous affiliated with MedlinePlus?

No. Fous is not affiliated with MedlinePlus. This workflow reads the public medlineplus.gov website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a MedlinePlus account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from medlineplus.gov when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What are the symptoms and treatments for a condition?

Get health topic returns an overview and, when linked information is available, symptoms, treatment, causes, and other details.

### What does a lab test measure?

Explain lab test describes what the test measures, what it is used for, and why it might be needed.

### How should someone prepare for a test?

Explain lab test returns preparation guidance, risks, and an explanation of what results mean.

## Related

- [WebMD API](https://fous.com/workflows/webmd.md): Plain-language health condition and symptom guides from WebMD.
- [Mayo Clinic API](https://fous.com/workflows/mayo-clinic.md): Mayo Clinic provides health information from public condition pages, including condition overviews and, where available, diagnosis, treatment, home care, alternative medicine, and appointment preparation.
- [PubMed API](https://fous.com/workflows/pubmed.md): PubMed searches medical and life-science articles by topic and retrieves one article’s abstract and publication details; abstracts and free full-text links may be unavailable.
- [NLM Clinical Tables API](https://fous.com/workflows/nlm-clinical-tables.md): NLM Clinical Tables provides public clinical terminology tables, with diagnosis searches that may miss relevant codes and code explanations checked against current NLM and official classification sources.
- [NHS API](https://fous.com/workflows/nhs.md): NHS provides condition and medicine guidance, with condition dates reflecting the latest pages used, and nearby England service listings ordered by distance; availability details may be missing.
- [World Health Organization API](https://fous.com/workflows/world-health-organization.md): The World Health Organization provides public health information, latest outbreak reports, country health statistics with up to 10 years of history when available, and topic fact sheets.
- [ClinicalTrials.gov API](https://fous.com/workflows/clinicaltrials-gov.md): ClinicalTrials.gov helps users find studies and view public trial records, including sponsor-run or funded studies; site distances are approximate, and contacts, eligibility, or exact dates may be missing.
- [Drugs.com API](https://fous.com/workflows/drugs-com.md): Drugs.com provides public medicine guides, interaction and food or lifestyle warnings for 2–10 medicines, pill matches by imprint, color, or shape, and listed US cash prices by strength, form, and quantity.
- [All Health workflows](https://fous.com/workflows/category/health)
