---
title: "Medicare Lab Tests by Segment and Category"
method: GET
path: "/healthcare/lab-tests/segments"
tags: ["Healthcare Providers"]
---

# Medicare Lab Tests by Segment and Category

`GET /healthcare/lab-tests/segments`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/healthcare/lab-tests/segments`
- Auth: API key in query parameter `apikey`

Medicare Part B lab tests (services, allowed and paid amounts) by lab segment (independent_lab, pathology_practice, physician_office, hospital_setting, other), test category (chemistry, hematology, immunology, microbiology, molecular_infectious, molecular_genetic, pla, pathology, toxicology, urinalysis, transfusion, collection), place of service, year or code, from 100% of claims of labs, doctors and suppliers. group_by=code adds the lab fee schedule rate and the 2016 private insurer median. /healthcare/lab-tests/private-prices gives private insurer prices next to the Medicare rate.

## Query parameters

- `group_by` string
- `year` integer
- `segment` string
- `category` string
- `q` string

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
