SportsDataIO · Capability

NBA API — NBA v3 Play-by-Play

NBA API — NBA v3 Play-by-Play. 3 operations. Lead operation: Play By Play [Live & Final]. Self-contained Naftiko capability covering one Sportsdataio business surface.

Run with Naftiko SportsdataioNBA v3 Play-by-Play

What You Can Do

GET
Nbav3pbpplaybyplaylivefinal — Play By Play [Live & Final]
/v1/v3/nba/pbp/{format}/playbyplay/{gameid}
GET
Nbav3pbpplaybyplaydelta — Play By Play Delta
/v1/v3/nba/pbp/{format}/playbyplaydelta/{date}/{minutes}
GET
Nbav3pbpplaybyplayfinal — Play By Play [Final]
/v1/v3/nba/pbp/{format}/playbyplayfinal/{gameid}

MCP Tools

play-play-live-final

Play By Play [Live & Final]

read-only idempotent
play-play-delta

Play By Play Delta

read-only idempotent
play-play-final

Play By Play [Final]

read-only idempotent

Capability Spec

nba-nba-v3-play-by-play.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NBA API — NBA v3 Play-by-Play
  description: 'NBA API — NBA v3 Play-by-Play. 3 operations. Lead operation: Play By Play [Live & Final]. Self-contained Naftiko
    capability covering one Sportsdataio business surface.'
  tags:
  - Sportsdataio
  - NBA v3 Play-by-Play
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPORTSDATAIO_API_KEY: SPORTSDATAIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: nba-nba-v3-play-by-play
    baseUri: https://api.sportsdata.io
    description: NBA API — NBA v3 Play-by-Play business capability. Self-contained, no shared references.
    resources:
    - name: v3-nba-pbp-format-PlayByPlay-gameid
      path: /v3/nba/pbp/{format}/PlayByPlay/{gameid}
      operations:
      - name: nbav3pbpplaybyplaylivefinal
        method: GET
        description: Play By Play [Live & Final]
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: format
          in: path
          type: string
          description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
          required: true
        - name: gameid
          in: path
          type: string
          description: The GameID of an NBA game.  GameIDs can be found in the Games API.  Valid entries are <code>14620</code>,
            <code>16905</code>, etc.
          required: true
    - name: v3-nba-pbp-format-PlayByPlayDelta-date-minutes
      path: /v3/nba/pbp/{format}/PlayByPlayDelta/{date}/{minutes}
      operations:
      - name: nbav3pbpplaybyplaydelta
        method: GET
        description: Play By Play Delta
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: format
          in: path
          type: string
          description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
          required: true
        - name: date
          in: path
          type: string
          description: The date of the game(s).
          required: true
        - name: minutes
          in: path
          type: string
          description: 'Only returns plays that have changed in the last X minutes.  You specify how many minutes in time
            to go back.  Valid entries are:'
          required: true
    - name: v3-nba-pbp-format-PlayByPlayFinal-gameid
      path: /v3/nba/pbp/{format}/PlayByPlayFinal/{gameid}
      operations:
      - name: nbav3pbpplaybyplayfinal
        method: GET
        description: Play By Play [Final]
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: format
          in: path
          type: string
          description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
          required: true
        - name: gameid
          in: path
          type: string
          description: The GameID of an NBA game.  GameIDs can be found in the Games API.  Valid entries are <code>14620</code>,
            <code>16905</code>, etc.
          required: true
    authentication:
      type: apikey
      key: Ocp-Apim-Subscription-Key
      value: '{{env.SPORTSDATAIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: nba-nba-v3-play-by-play-rest
    port: 8080
    description: REST adapter for NBA API — NBA v3 Play-by-Play. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v3/nba/pbp/{format}/playbyplay/{gameid}
      name: v3-nba-pbp-format-playbyplay-gameid
      description: REST surface for v3-nba-pbp-format-PlayByPlay-gameid.
      operations:
      - method: GET
        name: nbav3pbpplaybyplaylivefinal
        description: Play By Play [Live & Final]
        call: nba-nba-v3-play-by-play.nbav3pbpplaybyplaylivefinal
        with:
          format: rest.format
          gameid: rest.gameid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/nba/pbp/{format}/playbyplaydelta/{date}/{minutes}
      name: v3-nba-pbp-format-playbyplaydelta-date-minutes
      description: REST surface for v3-nba-pbp-format-PlayByPlayDelta-date-minutes.
      operations:
      - method: GET
        name: nbav3pbpplaybyplaydelta
        description: Play By Play Delta
        call: nba-nba-v3-play-by-play.nbav3pbpplaybyplaydelta
        with:
          format: rest.format
          date: rest.date
          minutes: rest.minutes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/nba/pbp/{format}/playbyplayfinal/{gameid}
      name: v3-nba-pbp-format-playbyplayfinal-gameid
      description: REST surface for v3-nba-pbp-format-PlayByPlayFinal-gameid.
      operations:
      - method: GET
        name: nbav3pbpplaybyplayfinal
        description: Play By Play [Final]
        call: nba-nba-v3-play-by-play.nbav3pbpplaybyplayfinal
        with:
          format: rest.format
          gameid: rest.gameid
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: nba-nba-v3-play-by-play-mcp
    port: 9090
    transport: http
    description: MCP adapter for NBA API — NBA v3 Play-by-Play. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: play-play-live-final
      description: Play By Play [Live & Final]
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nba-nba-v3-play-by-play.nbav3pbpplaybyplaylivefinal
      with:
        format: tools.format
        gameid: tools.gameid
      outputParameters:
      - type: object
        mapping: $.
    - name: play-play-delta
      description: Play By Play Delta
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nba-nba-v3-play-by-play.nbav3pbpplaybyplaydelta
      with:
        format: tools.format
        date: tools.date
        minutes: tools.minutes
      outputParameters:
      - type: object
        mapping: $.
    - name: play-play-final
      description: Play By Play [Final]
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nba-nba-v3-play-by-play.nbav3pbpplaybyplayfinal
      with:
        format: tools.format
        gameid: tools.gameid
      outputParameters:
      - type: object
        mapping: $.