NBA Historical Data Resource API

NBA Historical Data Resource API

NBA Historical Data Resource provides data on the performance of all teams in the National Basketball Association (NBA) since 1950. This API is an excellent resource for basketball fans, analysts, and researchers who want to know more about the history of the NBA and the performance of its teams.

API description

About the API: 

The API provides access to a wealth of information, such as the total number of field goals, three-pointers, double-doubles, free throws ratio, assists, and much more. In addition, the API provides the same information about the team's overall performance such as steal percentage, and defensive rebounding, including block percentage.

The API also provides information on wins, losses, team stadium, and opponent stats. This API is dedicated to the greatest analyzers of this great sport. The API is easy to use and is accessible via a RESTful API. This means that developers can easily integrate the API into their applications and websites, allowing users to access the data and use it in their own research and analysis. The API returns data in a standardized format, making it easy for developers to work with the data and perform custom analysis.

In conclusion, NBA Historical Data Resource API provides a complete overview of the performance of all NBA teams since 1950. Whether you are a fan of the sport or a researcher looking to study the history of the NBA, this API is a valuable resource that provides access to a wealth of information about the teams, players, and coaches that have shaped the league.

 

What your API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Analyzing team performance: Developers can use the API to analyze the performance of different NBA teams over the years and compare their success.

  2. Creating team performance visualizations: By accessing the data, developers can create interactive visualizations that show how teams have performed over the years.

  3. Building historical databases: Developers can use the API to build historical databases of team statistics, providing a valuable resource for researchers and fans of the sport.

  4. Developing prediction models: By analyzing team and player performance data, developers can build predictive models that forecast future performance.

  5. Comparing teams across different eras: The API provides data on teams dating back to 1950, allowing developers to compare teams across different eras and determine how the game has changed over time.

     

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations.

API Documentation

Endpoints


To use this endpoint all you have to do is to insert in the parameter the year in which you want to retrieve statistics, you will get as an answer the most complete statistics about teams, general statistics, team statistics, opponents statistics, shooting statistics.



                                                                            
GET https://zylalabs.com/api/1438/nba+historical+data+resource+api/1189/get+stats
                                                                            
                                                                        

Get stats - Endpoint Features
Object Description
leagueYear [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"leagueYear":1951,"lastUpdated":"2023-01-15T02:44:34.953Z","stats":{"Syracuse Nationals":{"Per Game":{"Team":"Syracuse Nationals","G":"66","MP":"","FG":"28.5","FGA":"81.3","FG%":".351","3P":"","3PA":"","3P%":"","2P":"28.5","2PA":"81.3","2P%":".351","FT":"29.0","FTA":"39.9","FT%":".726","ORB":"","DRB":"","TRB":"49.4","AST":"22.6","STL":"","BLK":"","TOV":"","PF":"30.2","PTS":"86.1"},"Per Game Opponent":{"Team":"Syracuse Nationals","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"85.5"},"Team Totals":{"Team":"Syracuse Nationals","G":"66","MP":"","FG":"1884","FGA":"5365","FG%":".351","3P":"","3PA":"","3P%":"","2P":"1884","2PA":"5365","2P%":".351","FT":"1912","FTA":"2634","FT%":".726","ORB":"","DRB":"","TRB":"3259","AST":"1493","STL":"","BLK":"","TOV":"","PF":"1995","PTS":"5680"},"Opponent Totals":{"Team":"Syracuse Nationals","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5645"},"Advanced":{"Team":"Syracuse Nationals","Age":"","W":"32","L":"34","PW":"34","PL":"32","MOV":"0.53","SOS":"0.09","SRS":"0.62","ORtg":"86.4","DRtg":"85.9","NRtg":"+0.5","Pace":"98.1","FTr":".491","3PAr":"","TS%":".435","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"State Fair Coliseum","Attend.":"","Attend./G":""}},"New York Knicks":{"Per Game":{"Team":"New York Knicks","G":"66","MP":"","FG":"30.9","FGA":"81.5","FG%":".379","3P":"","3PA":"","3P%":"","2P":"30.9","2PA":"81.5","2P%":".379","FT":"24.1","FTA":"33.8","FT%":".714","ORB":"","DRB":"","TRB":"51.8","AST":"23.5","STL":"","BLK":"","TOV":"","PF":"27.4","PTS":"85.8"},"Per Game Opponent":{"Team":"New York Knicks","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"85.4"},"Team Totals":{"Team":"New York Knicks","G":"66","MP":"","FG":"2037","FGA":"5380","FG%":".379","3P":"","3PA":"","3P%":"","2P":"2037","2PA":"5380","2P%":".379","FT":"1592","FTA":"2231","FT%":".714","ORB":"","DRB":"","TRB":"3421","AST":"1551","STL":"","BLK":"","TOV":"","PF":"1810","PTS":"5666"},"Opponent Totals":{"Team":"New York Knicks","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5639"},"Advanced":{"Team":"New York Knicks","Age":"","W":"36","L":"30","PW":"34","PL":"32","MOV":"0.41","SOS":"0.07","SRS":"0.49","ORtg":"88.0","DRtg":"87.6","NRtg":"+0.4","Pace":"94.8","FTr":".415","3PAr":"","TS%":".445","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"Madison Square Garden (III)","Attend.":"","Attend./G":""}},"Philadelphia Warriors":{"Per Game":{"Team":"Philadelphia Warriors","G":"66","MP":"","FG":"30.1","FGA":"85.8","FG%":".350","3P":"","3PA":"","3P%":"","2P":"30.1","2PA":"85.8","2P%":".350","FT":"25.2","FTA":"33.0","FT%":".763","ORB":"","DRB":"","TRB":"54.3","AST":"21.7","STL":"","BLK":"","TOV":"","PF":"25.9","PTS":"85.4"},"Per Game Opponent":{"Team":"Philadelphia Warriors","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"81.6"},"Team Totals":{"Team":"Philadelphia Warriors","G":"66","MP":"","FG":"1985","FGA":"5665","FG%":".350","3P":"","3PA":"","3P%":"","2P":"1985","2PA":"5665","2P%":".350","FT":"1664","FTA":"2181","FT%":".763","ORB":"","DRB":"","TRB":"3586","AST":"1432","STL":"","BLK":"","TOV":"","PF":"1710","PTS":"5634"},"Opponent Totals":{"Team":"Philadelphia Warriors","G":"66","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5386"},"Advanced":{"Team":"Philadelphia Warriors","Age":"","W":"40","L":"26","PW":"43","PL":"23","MOV":"3.76","SOS":"-0.36","SRS":"3.40","ORtg":"84.8","DRtg":"81.0","NRtg":"+3.8","Pace":"99.3","FTr":".385","3PAr":"","TS%":".425","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"Philadelphia Arena","Attend.":"","Attend./G":""}},"Boston Celtics":{"Per Game":{"Team":"Boston Celtics","G":"69","MP":"","FG":"29.9","FGA":"81.3","FG%":".368","3P":"","3PA":"","3P%":"","2P":"29.9","2PA":"81.3","2P%":".368","FT":"25.4","FTA":"35.0","FT%":".725","ORB":"","DRB":"","TRB":"50.7","AST":"22.9","STL":"","BLK":"","TOV":"","PF":"27.3","PTS":"85.2"},"Per Game Opponent":{"Team":"Boston Celtics","G":"69","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"85.5"},"Team Totals":{"Team":"Boston Celtics","G":"69","MP":"","FG":"2065","FGA":"5607","FG%":".368","3P":"","3PA":"","3P%":"","2P":"2065","2PA":"5607","2P%":".368","FT":"1751","FTA":"2415","FT%":".725","ORB":"","DRB":"","TRB":"3499","AST":"1579","STL":"","BLK":"","TOV":"","PF":"1881","PTS":"5881"},"Opponent Totals":{"Team":"Boston Celtics","G":"69","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5899"},"Advanced":{"Team":"Boston Celtics","Age":"","W":"39","L":"30","PW":"34","PL":"35","MOV":"-0.26","SOS":"-0.15","SRS":"-0.41","ORtg":"87.3","DRtg":"87.6","NRtg":"-0.3","Pace":"95.9","FTr":".431","3PAr":"","TS%":".441","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"Boston Garden","Attend.":"197,888","Attend./G":""}},"Rochester Royals":{"Per Game":{"Team":"Rochester Royals","G":"68","MP":"","FG":"29.9","FGA":"79.1","FG%":".378","3P":"","3PA":"","3P%":"","2P":"29.9","2PA":"79.1","2P%":".378","FT":"24.9","FTA":"33.1","FT%":".753","ORB":"","DRB":"","TRB":"44.3","AST":"20.1","STL":"","BLK":"","TOV":"","PF":"22.6","PTS":"84.6"},"Per Game Opponent":{"Team":"Rochester Royals","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"81.7"},"Team Totals":{"Team":"Rochester Royals","G":"68","MP":"","FG":"2032","FGA":"5377","FG%":".378","3P":"","3PA":"","3P%":"","2P":"2032","2PA":"5377","2P%":".378","FT":"1692","FTA":"2248","FT%":".753","ORB":"","DRB":"","TRB":"3015","AST":"1368","STL":"","BLK":"","TOV":"","PF":"1534","PTS":"5756"},"Opponent Totals":{"Team":"Rochester Royals","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5553"},"Advanced":{"Team":"Rochester Royals","Age":"","W":"41","L":"27","PW":"42","PL":"26","MOV":"2.99","SOS":"-0.44","SRS":"2.54","ORtg":"89.3","DRtg":"86.2","NRtg":"+3.1","Pace":"92.3","FTr":".418","3PAr":"","TS%":".452","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"Edgerton Park Arena","Attend.":"","Attend./G":""}},"Tri-Cities Blackhawks":{"Per Game":{"Team":"Tri-Cities Blackhawks","G":"68","MP":"","FG":"29.2","FGA":"88.8","FG%":".329","3P":"","3PA":"","3P%":"","2P":"29.2","2PA":"88.8","2P%":".329","FT":"25.8","FTA":"35.7","FT%":".723","ORB":"","DRB":"","TRB":"54.6","AST":"21.7","STL":"","BLK":"","TOV":"","PF":"30.8","PTS":"84.3"},"Per Game Opponent":{"Team":"Tri-Cities Blackhawks","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"88.1"},"Team Totals":{"Team":"Tri-Cities Blackhawks","G":"68","MP":"","FG":"1988","FGA":"6041","FG%":".329","3P":"","3PA":"","3P%":"","2P":"1988","2PA":"6041","2P%":".329","FT":"1754","FTA":"2425","FT%":".723","ORB":"","DRB":"","TRB":"3715","AST":"1476","STL":"","BLK":"","TOV":"","PF":"2092","PTS":"5730"},"Opponent Totals":{"Team":"Tri-Cities Blackhawks","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5988"},"Advanced":{"Team":"Tri-Cities Blackhawks","Age":"","W":"25","L":"43","PW":"24","PL":"44","MOV":"-3.79","SOS":"0.56","SRS":"-3.22","ORtg":"80.8","DRtg":"84.4","NRtg":"-3.6","Pace":"103.9","FTr":".401","3PAr":"","TS%":".403","eFG%":"","TOV%":"","ORB%":"","FT/FGA":"","DRB%":"","Arena":"Wharton Field House","Attend.":"","Attend./G":""}},"Fort Wayne Pistons":{"Per Game":{"Team":"Fort Wayne Pistons","G":"68","MP":"","FG":"29.4","FGA":"87.2","FG%":".338","3P":"","3PA":"","3P%":"","2P":"29.4","2PA":"87.2","2P%":".338","FT":"25.3","FTA":"35.1","FT%":".720","ORB":"","DRB":"","TRB":"54.8","AST":"16.8","STL":"","BLK":"","TOV":"","PF":"28.8","PTS":"84.1"},"Per Game Opponent":{"Team":"Fort Wayne Pistons","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"86.0"},"Team Totals":{"Team":"Fort Wayne Pistons","G":"68","MP":"","FG":"2002","FGA":"5927","FG%":".338","3P":"","3PA":"","3P%":"","2P":"2002","2PA":"5927","2P%":".338","FT":"1718","FTA":"2387","FT%":".720","ORB":"","DRB":"","TRB":"3725","AST":"1142","STL":"","BLK":"","TOV":"","PF":"1961","PTS":"5722"},"Opponent Totals":{"Team":"Fort Wayne Pistons","G":"68","MP":"","FG":"","FGA":"","FG%":"","3P":"","3PA":"","3P%":"","2P":"","2PA":"","2P%":"","FT":"","FTA":"","FT%":"","ORB":"","DRB":"","TRB":"","AST":"","STL":"","BLK":"","TOV":"","PF":"","PTS":"5849"},"Advanced":{"Team":"Fort Wayne Pistons","Age":"","W":"32","L":"36","PW":"29","PL":"39","MOV":"-1.87","SOS"...
                                                                                                                                                                                                                    
                                                                                                    

Get stats - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1438/nba+historical+data+resource+api/1189/get+stats?leagueYear=1951' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the NBA Historical Data Resource API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
508ms

Category:


Tags: