Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Latest commit

 

History

History
310 lines (226 loc) · 7.51 KB

DATA.md

File metadata and controls

310 lines (226 loc) · 7.51 KB

API: Data

  • The nba.data object provides access to endpoints from data.nba.net.
  • For this endpoint, if a method has a parameter, it is required.

Method Reference

Parameter Reference

  • date

    • "YYYYMMDD" (or "current" for the current date for every method but scoreboard)
  • year

    • "YYYY"
  • gameId

    • Can be found on the gamepage. Currently looking for a source for these IDs (or just a method for how they're formed, they seem to be completely random). A PR/contribution would be very appreciated.
  • period

    • 1
    • 2
    • 3
    • 4
    • 4+n for OTn (e.g. 5 for OT1)
  • personId

  • teamName

    • Via team page.

    • E.g. bulls for http://www.nba.com/teams/bulls.

    • Valid values for the 2016 season:

    • Western Conference Teams

      • Southwest

        • mavericks
        • rockets
        • grizzlies
        • pelicans
        • spurs
      • Northwest

        • nuggets
        • timberwolves
        • thunder
        • blazers
        • jazz
      • Pacific

        • warriors
        • clippers
        • lakers
        • suns
        • kings
    • Eastern Conference Teams

      • Atlantic

        • celtics
        • nets
        • knicks
        • sixers
        • raptors
      • Central

        • bulls
        • cavaliers
        • pistons
        • pacers
        • bucks
      • Southeast

        • hawks
        • hornets
        • heat
        • magic
        • wizards
    • Preseason only teams

    • fcbarcelona

    • san_lorenzo

    • maccabi_haifa

    • real_madrid

    • shanghai_sharks

Examples

See EXAMPLES.md.