---
title: "Return the site group for the site/histology/behavior combination based on a specified algorithm"
method: GET
path: "/rest/recode/sitegroup/{algorithm}"
tags: ["recode"]
---

# Return the site group for the site/histology/behavior combination based on a specified algorithm

`GET /rest/recode/sitegroup/{algorithm}`

## Request

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

Supported algorithms are SEER Site Recode ('seer'), International Classification of Childhood Cancer ('iccc') and Adolescents and Young Adults (AYA) Site Recode ('aya').

If no algorithm is supplied it will default to 'seer'.

## Path parameters

- `algorithm` string, required

## Query parameters

- `site` string, required
- `hist` string, required
- `behavior` string

## Response `200`

Success

- SiteRecode
  - `site` string
  - `hist` string
  - `behavior` string
  - `site_group` string

## Other responses

- `400`: Missing or invalid input

---

[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)
