Cancer.gov Surgery API

SEER Site-Specific Surgery Codes

Operations 2

GET /rest/surgery/{year}/tables Return all the available table titles for the specified year #
GET /rest/surgery/{year}/table Return a single surgery table #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cancer-gov-surgery-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cancer-gov-surgery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEER* Surgery API
  description: 'SEER API is a RESTful Web service that supports various SEER Program data sets and mapping.


    This service is available to developers who wish to incorporate SEER resources into their own systems. These resources

    include databases and tools developed to enhance registry operations and quality improvement. The SEER API is designed

    for integration into registry computer systems and is not designed to be accessed by end-users.'
  termsOfService: /terms
  version: '1.0'
servers:
- url: https://api.seer.cancer.gov
  description: Generated server url
security:
- apiKeyScheme: []
tags:
- name: surgery
  description: SEER Site-Specific Surgery Codes
paths:
  /rest/surgery/{year}/tables:
    get:
      tags:
      - surgery
      summary: Return all the available table titles for the specified year
      operationId: getTableTitles
      parameters:
      - name: year
        in: path
        description: Year of the data; use "latest" for the latest available year.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
        '400':
          description: Invalid or unsupported year
  /rest/surgery/{year}/table:
    get:
      tags:
      - surgery
      summary: Return a single surgery table
      description: Either title or a site/histology combination must be supplied.
      operationId: getTable_1
      parameters:
      - name: year
        in: path
        description: Year of the data; use "latest" for the latest available year.
        required: true
        schema:
          type: string
      - name: title
        in: query
        description: Table title
        required: false
        schema:
          type: string
      - name: site
        in: query
        description: Primary site
        required: false
        schema:
          type: string
      - name: hist
        in: query
        description: Histology
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SurgeryTable'
        '400':
          description: Either title or site/histology must be supplied
components:
  schemas:
    SurgeryRow:
      type: object
      properties:
        code:
          type: string
        description:
          type: string
        level:
          type: integer
          format: int32
        line_break:
          type: boolean
    SurgeryTable:
      type: object
      properties:
        title:
          type: string
        site_inclusions:
          type: string
        hist_exclusions:
          type: string
        hist_inclusions:
          type: string
        pre_note:
          type: string
        post_note:
          type: string
        row:
          type: array
          items:
            $ref: '#/components/schemas/SurgeryRow'
  securitySchemes:
    apiKeyScheme:
      type: apiKey
      name: X-SEERAPI-Key
      in: header