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.

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":2022,"lastUpdated":"2023-03-02T01:45:07.457Z","stats":{"Minnesota Timberwolves":{"Per Game":{"Team":"Minnesota Timberwolves","G":"82","MP":"241.2","FG":"41.6","FGA":"91.0","FG%":".457","3P":"14.8","3PA":"41.3","3P%":".358","2P":"26.8","2PA":"49.7","2P%":".540","FT":"18.0","FTA":"23.1","FT%":".778","ORB":"11.2","DRB":"32.9","TRB":"44.2","AST":"25.7","STL":"8.8","BLK":"5.6","TOV":"14.3","PF":"21.8","PTS":"115.9"},"Per Game Opponent":{"Team":"Minnesota Timberwolves","G":"82","MP":"241.2","FG":"40.2","FGA":"87.4","FG%":".460","3P":"13.1","3PA":"37.3","3P%":".350","2P":"27.2","2PA":"50.0","2P%":".543","FT":"19.8","FTA":"25.4","FT%":".780","ORB":"11.0","DRB":"34.9","TRB":"45.9","AST":"26.2","STL":"7.2","BLK":"4.8","TOV":"16.3","PF":"20.9","PTS":"113.3"},"Team Totals":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG":"3411","FGA":"7458","FG%":".457","3P":"1211","3PA":"3386","3P%":".358","2P":"2200","2PA":"4072","2P%":".540","FT":"1474","FTA":"1894","FT%":".778","ORB":"921","DRB":"2700","TRB":"3621","AST":"2106","STL":"721","BLK":"460","TOV":"1175","PF":"1786","PTS":"9507"},"Opponent Totals":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG":"3298","FGA":"7163","FG%":".460","3P":"1071","3PA":"3062","3P%":".350","2P":"2227","2PA":"4101","2P%":".543","FT":"1624","FTA":"2081","FT%":".780","ORB":"904","DRB":"2858","TRB":"3762","AST":"2149","STL":"593","BLK":"397","TOV":"1339","PF":"1715","PTS":"9291"},"Advanced":{"Team":"Minnesota Timberwolves","Age":"24.2","W":"46","L":"36","PW":"48","PL":"34","MOV":"2.63","SOS":"-0.10","SRS":"2.53","ORtg":"114.3","DRtg":"111.7","NRtg":"+2.6","Pace":"100.9","FTr":".254","3PAr":".454","TS%":".573","eFG%":".535","TOV%":"14.2","ORB%":"24.4","FT/FGA":".227","DRB%":"74.9","Arena":"Target Center","Attend.":"657,148","Attend./G":"16,028"},"Per 100 Possessions":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG":"41.0","FGA":"89.7","FG%":".457","3P":"14.6","3PA":"40.7","3P%":".358","2P":"26.5","2PA":"49.0","2P%":".540","FT":"17.7","FTA":"22.8","FT%":".778","ORB":"11.1","DRB":"32.5","TRB":"43.5","AST":"25.3","STL":"8.7","BLK":"5.5","TOV":"14.1","PF":"21.5","PTS":"114.3"},"Opponent Per 100 Possessions":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG":"39.7","FGA":"86.1","FG%":".460","3P":"12.9","3PA":"36.8","3P%":".350","2P":"26.8","2PA":"49.3","2P%":".543","FT":"19.5","FTA":"25.0","FT%":".780","ORB":"10.9","DRB":"34.4","TRB":"45.2","AST":"25.8","STL":"7.1","BLK":"4.8","TOV":"16.1","PF":"20.6","PTS":"111.7"},"Shooting":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG%":".457","Dist.":"14.5","2P":".519","0-3":".677","3-10":".413","10-16":".432","16-3P":".366","3P":".797","%FGA":".278","Md.":"0","%3PA":".222","3P%":".394","Att.":"19"},"Opponent Shooting":{"Team":"Minnesota Timberwolves","G":"82","MP":"19780","FG%":".460","Dist.":"14.3","2P":".558","0-3":".707","3-10":".407","10-16":".395","16-3P":".422","3P":".846","%FGA":".269","Md.":"1070","%3PA":".287","3P%":".377"}},"Memphis Grizzlies":{"Per Game":{"Team":"Memphis Grizzlies","G":"82","MP":"241.2","FG":"43.5","FGA":"94.4","FG%":".461","3P":"11.5","3PA":"32.7","3P%":".353","2P":"32.0","2PA":"61.7","2P%":".519","FT":"17.0","FTA":"23.1","FT%":".734","ORB":"14.1","DRB":"35.0","TRB":"49.2","AST":"26.0","STL":"9.8","BLK":"6.5","TOV":"13.2","PF":"19.8","PTS":"115.6"},"Per Game Opponent":{"Team":"Memphis Grizzlies","G":"82","MP":"241.2","FG":"40.3","FGA":"88.6","FG%":".455","3P":"12.0","3PA":"34.5","3P%":".349","2P":"28.3","2PA":"54.2","2P%":".522","FT":"17.3","FTA":"22.4","FT%":".771","ORB":"10.0","DRB":"33.0","TRB":"43.0","AST":"25.0","STL":"7.2","BLK":"6.0","TOV":"15.1","PF":"19.8","PTS":"109.9"},"Team Totals":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG":"3571","FGA":"7739","FG%":".461","3P":"945","3PA":"2679","3P%":".353","2P":"2626","2PA":"5060","2P%":".519","FT":"1393","FTA":"1898","FT%":".734","ORB":"1159","DRB":"2873","TRB":"4032","AST":"2131","STL":"800","BLK":"533","TOV":"1082","PF":"1620","PTS":"9480"},"Opponent Totals":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG":"3305","FGA":"7269","FG%":".455","3P":"987","3PA":"2828","3P%":".349","2P":"2318","2PA":"4441","2P%":".522","FT":"1417","FTA":"1837","FT%":".771","ORB":"821","DRB":"2706","TRB":"3527","AST":"2047","STL":"588","BLK":"496","TOV":"1235","PF":"1625","PTS":"9014"},"Advanced":{"Team":"Memphis Grizzlies","Age":"24.0","W":"56","L":"26","PW":"55","PL":"27","MOV":"5.68","SOS":"-0.32","SRS":"5.37","ORtg":"114.6","DRtg":"109.0","NRtg":"+5.6","Pace":"100.3","FTr":".245","3PAr":".346","TS%":".553","eFG%":".523","TOV%":"13.3","ORB%":"30.0","FT/FGA":".195","DRB%":"77.8","Arena":"FedEx Forum","Attend.":"646,785","Attend./G":"15,775"},"Per 100 Possessions":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG":"43.2","FGA":"93.6","FG%":".461","3P":"11.4","3PA":"32.4","3P%":".353","2P":"31.8","2PA":"61.2","2P%":".519","FT":"16.8","FTA":"23.0","FT%":".734","ORB":"14.0","DRB":"34.7","TRB":"48.8","AST":"25.8","STL":"9.7","BLK":"6.4","TOV":"13.1","PF":"19.6","PTS":"114.6"},"Opponent Per 100 Possessions":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG":"40.0","FGA":"87.9","FG%":".455","3P":"11.9","3PA":"34.2","3P%":".349","2P":"28.0","2PA":"53.7","2P%":".522","FT":"17.1","FTA":"22.2","FT%":".771","ORB":"9.9","DRB":"32.7","TRB":"42.7","AST":"24.8","STL":"7.1","BLK":"6.0","TOV":"14.9","PF":"19.7","PTS":"109.0"},"Shooting":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG%":".461","Dist.":"12.9","2P":".504","0-3":".674","3-10":".423","10-16":".410","16-3P":".382","3P":".854","%FGA":".272","Md.":"0","%3PA":".231","3P%":".368","Att.":"14"},"Opponent Shooting":{"Team":"Memphis Grizzlies","G":"82","MP":"19780","FG%":".455","Dist.":"13.9","2P":".536","0-3":".653","3-10":".413","10-16":".432","16-3P":".407","3P":".815","%FGA":".272","Md.":"1070","%3PA":".177","3P%":".391"}},"Milwaukee Bucks":{"Per Game":{"Team":"Milwaukee Bucks","G":"82","MP":"240.9","FG":"41.8","FGA":"89.4","FG%":".468","3P":"14.1","3PA":"38.4","3P%":".366","2P":"27.8","2PA":"51.0","2P%":".544","FT":"17.8","FTA":"22.9","FT%":".776","ORB":"10.2","DRB":"36.5","TRB":"46.7","AST":"23.9","STL":"7.6","BLK":"4.0","TOV":"13.4","PF":"18.2","PTS":"115.5"},"Per Game Opponent":{"Team":"Milwaukee Bucks","G":"82","MP":"240.9","FG":"41.4","FGA":"90.6","FG%":".456","3P":"14.5","3PA":"40.6","3P%":".356","2P":"26.9","2PA":"50.0","2P%":".537","FT":"15.0","FTA":"19.9","FT%":".751","ORB":"9.9","DRB":"34.2","TRB":"44.1","AST":"25.9","STL":"7.4","BLK":"4.4","TOV":"13.0","PF":"19.7","PTS":"112.1"},"Team Totals":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG":"3429","FGA":"7331","FG%":".468","3P":"1153","3PA":"3151","3P%":".366","2P":"2276","2PA":"4180","2P%":".544","FT":"1459","FTA":"1881","FT%":".776","ORB":"840","DRB":"2990","TRB":"3830","AST":"1960","STL":"623","BLK":"326","TOV":"1100","PF":"1494","PTS":"9470"},"Opponent Totals":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG":"3391","FGA":"7431","FG%":".456","3P":"1186","3PA":"3328","3P%":".356","2P":"2205","2PA":"4103","2P%":".537","FT":"1227","FTA":"1634","FT%":".751","ORB":"812","DRB":"2805","TRB":"3617","AST":"2122","STL":"606","BLK":"357","TOV":"1070","PF":"1612","PTS":"9195"},"Advanced":{"Team":"Milwaukee Bucks","Age":"28.5","W":"51","L":"31","PW":"49","PL":"33","MOV":"3.35","SOS":"-0.14","SRS":"3.22","ORtg":"115.1","DRtg":"111.8","NRtg":"+3.3","Pace":"99.9","FTr":".257","3PAr":".430","TS%":".580","eFG%":".536","TOV%":"11.6","ORB%":"23.0","FT/FGA":".165","DRB%":"78.6","Arena":"Fiserv Forum","Attend.":"715,581","Attend./G":"17,453"},"Per 100 Possessions":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG":"41.7","FGA":"89.1","FG%":".468","3P":"14.0","3PA":"38.3","3P%":".366","2P":"27.7","2PA":"50.8","2P%":".544","FT":"17.7","FTA":"22.9","FT%":".776","ORB":"10.2","DRB":"36.3","TRB":"46.6","AST":"23.8","STL":"7.6","BLK":"4.0","TOV":"13.4","PF":"18.2","PTS":"115.1"},"Opponent Per 100 Possessions":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG":"41.2","FGA":"90.3","FG%":".456","3P":"14.4","3PA":"40.5","3P%":".356","2P":"26.8","2PA":"49.9","2P%":".537","FT":"14.9","FTA":"19.9","FT%":".751","ORB":"9.9","DRB":"34.1","TRB":"44.0","AST":"25.8","STL":"7.4","BLK":"4.3","TOV":"13.0","PF":"19.6","PTS":"111.8"},"Shooting":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG%":".468","Dist.":"15.1","2P":".461","0-3":".717","3-10":".420","10-16":".446","16-3P":".395","3P":".789","%FGA":".251","Md.":"0","%3PA":".241","3P%":".393","Att.":"11"},"Opponent Shooting":{"Team":"Milwaukee Bucks","G":"82","MP":"19755","FG%":".456","Dist.":"15.6","2P":".517","0-3":".697","3-10":".438","10-16":".444","16-3P":".417","3P":".829","%FGA":".234","Md.":"984","%3PA":".210","3P%":".359"}},"Charlotte Hornets":{"Per Game":{"Team":"Charlotte Hornets","G":"82","MP":"242.4","FG":"42.8","FGA":"91.4","FG%":".468","3P":"13.9","3PA":"38.2","3P%":".365","2P":"28.8","2PA":"53.3","2P%":".542","FT":"15.8","FTA":"21.4","FT%":".740","ORB":"10.8","DRB":"33.7","TRB":"44.6","AST":"28.1","STL":"8.6","BLK":"4.9","TOV":"13.3","PF":"19.9","PTS":"115.3"},"Per Game Opponent":{"Team":"Charlotte Hornets","G":"82","MP":"242.4","FG":"42.0","FGA":"90.1","FG%":".466","3P":"14.0","3PA":"38.7","3P%":".362","2P":"28.0","2PA":"51.4","2P%":".544","FT":"16.9","FTA":"22.1","FT%":".763","ORB":"11.4","DRB":"35.6","TRB":"47.0","AST":"26.5","STL":"7.5","BLK":"4.6","TOV":"15.0","PF":"19.6","PTS":"114.9"},"Team Totals":{"Team":"Charlotte Hornets","G":"82","MP":"19880","FG":"3508","FGA":"7497","FG%":".468","3P":"1143","3PA":"3130","3P%":".365","2P":"2365","2PA":"4367","2P%":".542","FT":"1298","FTA":"1753","FT%":".740","ORB":"888","DRB":"2767","TRB":"3655","AST":"2302","STL":"707","BLK":"402","TOV":"1087","PF":"1629","PTS":"9457"},"Opponent Totals":{"Team":"Charlotte Hornets","G":"82","MP":"19880","FG":"3444","FGA":"7388","FG%":".466","3P":"1148","3PA":"3170","3P%":".362","2P":"2296","2PA":"4218","2P%":".544","FT":"1385","FTA":"1815","FT%":".763","ORB":"931","DRB":"2920","TRB":"3851","AS...
                                                                                                                                                                                                                    
                                                                                                    

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
  • Specialized Customer Support
  • Real-Time API Monitoring

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 like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
274ms

Category:


Related APIs