---
title: "Indicate whether 2 morphologies (and diagnosis years) represent the same primary"
method: GET
path: "/rest/disease/{version}/same_primary"
tags: ["disease"]
---

# Indicate whether 2 morphologies (and diagnosis years) represent the same primary

`GET /rest/disease/{version}/same_primary`

## Request

- Base URL: `https://api.seer.cancer.gov`
- URL: `https://api.seer.cancer.gov/rest/disease/{version}/same_primary`
- Auth: API key in header `X-SEERAPI-Key`
- TypeScript: <https://skmtc.dev/cancer/apis/seer-api/docs/rest/disease/:version/same_primary/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `version` string, required

## Query parameters

- `d1` string, required
- `year1` string, required
- `d2` string, required
- `year2` string, required

## Response `200`

Success

- SamePrimaries
  - `disease1` string
  - `year1` integer
  - `disease2` string
  - `year2` integer
  - `is_same` boolean

## Other responses

- `404`: Unknown version

---

[API](https://skmtc.dev/cancer/apis/seer-api.md) - [All operations](https://skmtc.dev/cancer/apis/seer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cancer/apis/seer-api/revisions/2ab11538b3c7?raw)
