Optum National Drug Code API

The National Drug Code API API from Optum — 1 operation(s) for national drug code api.

Operations 1

GET /api/optum/common/{code}/ndc Fetches the national drug code table data #

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/optum-national-drug-code-api-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 email required.

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

OpenAPI Specification

optum-national-drug-code-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Optum National Drug Code API
  version: v1.0
  contact:
    name: Ken Kracker
    email: ken.kracker@optum.com
  description: 'Operations tagged National Drug Code API across 2 of this provider''s published API definitions: optum-optum-common-facility-openapi.yml, optum-optum-common-physician-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /v1/optumcommonms
tags:
- name: National Drug Code API
paths:
  /api/optum/common/{code}/ndc:
    get:
      tags:
      - National Drug Code API
      summary: Fetches the national drug code table data
      operationId: fetchNationalDrugCodeList
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
        example: J0121
      - name: page
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 1
      - name: size
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 50
      - name: yyyy-MM-dd
        in: header
        description: Date for which historical data is required
        required: false
        schema:
          type: string
          format: yyyy-MM-dd
      responses:
        '200':
          description: Fetch national drug code list
          content:
            application/json:
              example:
                content:
                - ndc: '71715000101'
                  genericName: Omadacycline
                  brandName: NUZYRA
                  mfg: PARATEK PHARMACEUTICALS INC.
                - ndc: '71715000102'
                  genericName: Omadacycline
                  brandName: NUZYRA
                  mfg: PARATEK PHARMACEUTICALS INC.
                totalCount: 2
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                timestamp: '2024-08-22T07:29:21.890+00:00'
                status: 500
                error: Internal Server Error
                message: 'Request processing failed: java.lang.IllegalArgumentException: Page index must not be less than zero'
                path: /optumcommonms/api/optum/common/ndc/J0121
      security:
      - bearerAuth: []
    servers:
    - url: /v1/optumcommonms
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- optum-optum-common-facility-openapi.yml
- optum-optum-common-physician-openapi.yml
x-readme:
  explorer-enabled: true
  proxy-enabled: true