Cancer.gov Naaccr API

NAACCR Documentation

Operations 3

GET /rest/naaccr/{version} Return all NAACCR item identifiers and names #
GET /rest/naaccr/{version}/{id} Return a single NAACCR item by XML ID or item number #
GET /rest/naaccr/versions Return a list of information about all supported NAACCR versions #

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-naaccr-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-naaccr-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEER* Naaccr 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: naaccr
  description: NAACCR Documentation
paths:
  /rest/naaccr/{version}:
    get:
      tags:
      - naaccr
      summary: Return all NAACCR item identifiers and names
      operationId: getAllFieldNames
      parameters:
      - name: version
        in: path
        description: Record layout version
        required: true
        schema:
          type: string
      - name: version_implemented
        in: query
        description: Version field was added to NAACCR standard.
        required: false
        schema:
          type: string
      - name: q
        in: query
        description: Search query. Should be URL encoded.
        required: false
        schema:
          type: string
      - name: count
        in: query
        description: The number of data items to return. If not specified, all items will be returned.
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NaaccrItemInfo'
        '400':
          description: Invalid version
  /rest/naaccr/{version}/{id}:
    get:
      tags:
      - naaccr
      summary: Return a single NAACCR item by XML ID or item number
      operationId: getNaaccrFieldById
      parameters:
      - name: version
        in: path
        description: Record layout version
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: NAACCR XML ID or item number
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NaaccrItemDto'
        '404':
          description: Unknown NAACCR ID or number
  /rest/naaccr/versions:
    get:
      tags:
      - naaccr
      summary: Return a list of information about all supported NAACCR versions
      operationId: getVersions_1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NaaccrVersion'
components:
  schemas:
    NaaccrItemDto:
      type: object
      properties:
        item_number:
          type: string
        item_name:
          type: string
        item_data_type:
          type: string
        item_length:
          type: string
        year_implemented:
          type: string
        version_implemented:
          type: string
        xml_naaccr_id:
          type: string
        xml_parent_id:
          type: string
        record_types:
          type: array
          items:
            type: string
        section:
          type: string
        source_of_standard:
          type: string
        date_created:
          type: string
          format: date-time
        date_modified:
          type: string
          format: date-time
        description:
          type: string
        general_notes:
          type: string
        clarification:
          type: string
        rationale:
          type: string
        npcr_collect:
          type: string
        coc_collect:
          type: string
        seer_collect:
          type: string
        cccr_collect:
          type: string
        alternate_names:
          type: array
          items:
            type: string
        format:
          type: string
        code_note:
          type: string
        code_description:
          type: string
        allowable_values:
          type: string
        allowed_codes:
          type: array
          items:
            $ref: '#/components/schemas/AllowedCode'
        year_retired:
          type: string
        version_retired:
          type: string
    NaaccrVersion:
      type: object
      properties:
        version:
          type: string
        year_implemented:
          type: integer
          format: int32
        date_of_publication:
          type: string
          format: date-time
    NaaccrItemInfo:
      type: object
      properties:
        id:
          type: string
        item:
          type: string
        name:
          type: string
    AllowedCode:
      type: object
      properties:
        code:
          type: string
        description:
          type: string
  securitySchemes:
    apiKeyScheme:
      type: apiKey
      name: X-SEERAPI-Key
      in: header