NBA Players And Teams API

This API will provide you with information about players and teams from NBA.

About the API:

This API will provide you with the Players and Teams from NBA with additional information.

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?

This API is ideal for those who want to receive data about players and teams from NBA.

Also, it can be used for entertainment and news purposes.

Are there any limitations to your plans?

  • Basic Plan: 20,000 API Calls.

  • Pro Plan: 100,000 API Calls.

  • Pro Plus Plan: 200,000 API Calls.

  • Premium Plan: 500,000 API Calls.

API Documentation

Endpoints


All players from all seasons are returned by this endpoint.



                                                                            
GET https://zylalabs.com/api/836/nba+players+and+teams+api/603/fetch+all+players
                                                                            
                                                                        

Fetch All Players - Endpoint Features

Object Description
page [Optional] Provide page number utilized for pagination.
per_page [Optional] Provide the number of results returned per call utilized for pagination.
search [Optional] Filters by players based on their names. For example, β€œmark” will return players who have 'mark' in their first or last name.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            <!doctype html>
<html>
  <head>
    <link href="images/favicon-856c619d.ico" rel="icon" type="image/ico" />
    <meta charset="utf-8">







    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>BALLDONTLIE API</title>

    <style media="screen">
      .highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .gh {
  color: #999999;
}
.highlight .sr {
  color: #f6aa11;
}
.highlight .go {
  color: #888888;
}
.highlight .gp {
  color: #555555;
}
.highlight .gs {
}
.highlight .gu {
  color: #aaaaaa;
}
.highlight .nb {
  color: #f6aa11;
}
.highlight .cm {
  color: #75715e;
}
.highlight .cp {
  color: #75715e;
}
.highlight .c1 {
  color: #75715e;
}
.highlight .cs {
  color: #75715e;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
  color: #75715e;
}
.highlight .err {
  color: #960050;
}
.highlight .gr {
  color: #960050;
}
.highlight .gt {
  color: #960050;
}
.highlight .gd {
  color: #49483e;
}
.highlight .gi {
  color: #49483e;
}
.highlight .ge {
  color: #49483e;
}
.highlight .kc {
  color: #66d9ef;
}
.highlight .kd {
  color: #66d9ef;
}
.highlight .kr {
  color: #66d9ef;
}
.highlight .no {
  color: #66d9ef;
}
.highlight .kt {
  color: #66d9ef;
}
.highlight .mf {
  color: #ae81ff;
}
.highlight .mh {
  color: #ae81ff;
}
.highlight .il {
  color: #ae81ff;
}
.highlight .mi {
  color: #ae81ff;
}
.highlight .mo {
  color: #ae81ff;
}
.highlight .m, .highlight .mb, .highlight .mx {
  color: #ae81ff;
}
.highlight .sc {
  color: #ae81ff;
}
.highlight .se {
  color: #ae81ff;
}
.highlight .ss {
  color: #ae81ff;
}
.highlight .sd {
  color: #e6db74;
}
.highlight .s2 {
  color: #e6db74;
}
.highlight .sb {
  color: #e6db74;
}
.highlight .sh {
  color: #e6db74;
}
.highlight .si {
  color: #e6db74;
}
.highlight .sx {
  color: #e6db74;
}
.highlight .s1 {
  color: #e6db74;
}
.highlight .s, .highlight .sa, .highlight .dl {
  color: #e6db74;
}
.highlight .na {
  color: #a6e22e;
}
.highlight .nc {
  color: #a6e22e;
}
.highlight .nd {
  color: #a6e22e;
}
.highlight .ne {
  color: #a6e22e;
}
.highlight .nf, .highlight .fm {
  color: #a6e22e;
}
.highlight .vc {
  color: #ffffff;
}
.highlight .nn {
  color: #ffffff;
}
.highlight .ni {
  color: #ffffff;
}
.highlight .bp {
  color: #ffffff;
}
.highlight .vg {
  color: #ffffff;
}
.highlight .vi {
  color: #ffffff;
}
.highlight .nv, .highlight .vm {
  color: #ffffff;
}
.highlight .w {
  color: #ffffff;
}
.highlight {
  color: #ffffff;
}
.highlight .n, .highlight .py, .highlight .nx {
  color: #ffffff;
}
.highlight .nl {
  color: #f92672;
}
.highlight .ow {
  color: #f92672;
}
.highlight .nt {
  color: #f92672;
}
.highlight .k, .highlight .kv {
  color: #f92672;
}
.highlight .kn {
  color: #f92672;
}
.highlight .kp {
  color: #f92672;
}
.highlight .o {
  color: #f92672;
}
    </style>
    <style media="print">
      * {
        -webkit-transition:none!important;
        transition:none!important;
      }
      .highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
  color: #586e75;
}
.highlight .err {
  color: #002b36;
  background-color: #dc322f;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #657b83;
}
.highlight .cp {
  color: #b58900;
}
.highlight .nt {
  color: #b58900;
}
.highlight .o, .highlight .ow {
  color: #93a1a1;
}
.highlight .p, .highlight .pi {
  color: #93a1a1;
}
.highlight .gi {
  color: #859900;
}
.highlight .gd {
  color: #dc322f;
}
.highlight .gh {
  color: #268bd2;
  background-color: #002b36;
  font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
  color: #6c71c4;
}
.highlight .kc {
  color: #cb4b16;
}
.highlight .kt {
  color: #cb4b16;
}
.highlight .kd {
  color: #cb4b16;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
  color: #859900;
}
.highlight .sa {
  color: #6c71c4;
}
.highlight .sr {
  color: #2aa198;
}
.highlight .si {
  color: #d33682;
}
.highlight .se {
  color: #d33682;
}
.highlight .nn {
  color: #b58900;
}
.highlight .nc {
  color: #b58900;
}
.highlight .no {
  color: #b58900;
}
.highlight .na {
  color: #268bd2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #859900;
}
.highlight .ss {
  color: #859900;
}
    </style>
    <link href="stylesheets/screen-a4600c6c.css" rel="stylesheet" media="screen" />
    <link href="stylesheets/print-966d6edc.css" rel="stylesheet" media="print" />
      <script src="javascripts/all-024da600.js"></script>

    <script>
      $(function() { setupCodeCopy(); });
    </script>
  </head>

  <body class="index" data-languages="[&quot;shell&quot;]">
    <a href="#" id="nav-button">
      <span>
        NAV
        <img src="images/navbar-cad8cdcb.png" alt="" />
      </span>
    </a>
    <div class="toc-wrapper">
      <img src="images/logo-7953a1bb.png" class="logo" alt="" />
        <div class="lang-selector">
              <a href="#" data-language-name="shell">shell</a>
        </div>
        <div class="search">
          <input type="text" class="search" id="input-search" placeholder="Search">
        </div>
        <ul class="search-results"></ul>
      <ul id="toc" class="toc-list-h1">
          <li>
            <a href="#introduction" class="toc-h1 toc-link" data-title="Introduction">Introduction</a>
          </li>
          <li>
            <a href="#account-tiers" class="toc-h1 toc-link" data-title="Account Tiers">Account Tiers</a>
          </li>
          <li>
            <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
          </li>
          <li>
            <a href="#pagination" class="toc-h1 toc-link" data-title="Pagination">Pagination</a>
          </li>
          <li>
            <a href="#errors" class="toc-h1 toc-link" data-title="Errors">Errors</a>
          </li>
          <li>
            <a href="#teams" class="toc-h1 toc-link" data-title="Teams">Teams</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-teams" class="toc-h2 toc-link" data-title="Get All Teams">Get All Teams</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-team" class="toc-h2 toc-link" data-title="Get a Specific Team">Get a Specific Team</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#players" class="toc-h1 toc-link" data-title="Players">Players</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-players" class="toc-h2 toc-link" data-title="Get All Players">Get All Players</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-player" class="toc-h2 toc-link" data-title="Get a Specific Player">Get a Specific Player</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#games" class="toc-h1 toc-link" data-title="Games">Games</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#attributes" class="toc-h2 toc-link" data-title="Attributes">Attributes</a>
                  </li>
                  <li>
                    <a href="#get-all-games" class="toc-h2 toc-link" data-title="Get All Games">Get All Games</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-game" class="toc-h2 toc-link" data-title="Get a Specific Game">Get a Specific Game</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#stats" class="toc-h1 toc-link" data-title="Stats">Stats</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-stats" class="toc-h2 toc-link" data-title="Get All Stats">Get All Stats</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#season-averages" class="toc-h1 toc-link" data-title="Season Averages">Season Averages</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-averages" class="toc-h2 toc-link" data-title="Get Averages">Get Averages</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#advanced-stats" class="toc-h1 toc-link" data-title="Advanced Stats">Advanced Stats</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#attributes-2" class="toc-h2 toc-link" data-title="Attributes">Attributes</a>
                  </li>
                  <li>
                    <a href="#get-all-advanced-stats" class="toc-h2 toc-link" data-title="Get All Advanced Stats">Get All Advanced Stats</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#box-scores" class="toc-h1 toc-link" data-title="Box Scores">Box Scores</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-live-box-scores" class="toc-h2 toc-link" data-title="Get Live Box Scores">Get Live Box Scores</a>
                  </li>
                  <li>
                    <a href="#get-box-scores" class="toc-h2 toc-link" data-title="Get Box Scores">Get Box Scores</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#active-players" class="toc-h1 toc-link" data-title="Active Players">Active Players</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-active-players" class="toc-h2 toc-link" data-title="Get All Active Players">Get All Active Players</a>
                  </li>
              </ul>
          </...
                                                                                                                                                                                                                    
                                                                                                    

Fetch All Players - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/836/nba+players+and+teams+api/603/fetch+all+players' --header 'Authorization: Bearer YOUR_API_KEY' 


    

This endpoint returns the player by filtering by ID. Filter by player ID. This can be found in the endpoint Fetch all players.



                                                                            
GET https://zylalabs.com/api/836/nba+players+and+teams+api/604/fetch+players+by+id
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"id":67,"first_name":"MarShon","height_feet":null,"height_inches":null,"last_name":"Brooks","position":"G","team":{"id":15,"abbreviation":"MEM","city":"Memphis","conference":"West","division":"Southwest","full_name":"Memphis Grizzlies","name":"Grizzlies"},"weight_pounds":null}
                                                                                                                                                                                                                    
                                                                                                    

Fetch players by ID - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/836/nba+players+and+teams+api/604/fetch+players+by+id&id=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Get all teams by using this endpoint.



                                                                            
GET https://zylalabs.com/api/836/nba+players+and+teams+api/605/fetch+all+teams
                                                                            
                                                                        

Fetch all teams - Endpoint Features

Object Description
page [Optional] Provide page number utilized for pagination.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            <!doctype html>
<html>
  <head>
    <link href="images/favicon-856c619d.ico" rel="icon" type="image/ico" />
    <meta charset="utf-8">







    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>BALLDONTLIE API</title>

    <style media="screen">
      .highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .gh {
  color: #999999;
}
.highlight .sr {
  color: #f6aa11;
}
.highlight .go {
  color: #888888;
}
.highlight .gp {
  color: #555555;
}
.highlight .gs {
}
.highlight .gu {
  color: #aaaaaa;
}
.highlight .nb {
  color: #f6aa11;
}
.highlight .cm {
  color: #75715e;
}
.highlight .cp {
  color: #75715e;
}
.highlight .c1 {
  color: #75715e;
}
.highlight .cs {
  color: #75715e;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
  color: #75715e;
}
.highlight .err {
  color: #960050;
}
.highlight .gr {
  color: #960050;
}
.highlight .gt {
  color: #960050;
}
.highlight .gd {
  color: #49483e;
}
.highlight .gi {
  color: #49483e;
}
.highlight .ge {
  color: #49483e;
}
.highlight .kc {
  color: #66d9ef;
}
.highlight .kd {
  color: #66d9ef;
}
.highlight .kr {
  color: #66d9ef;
}
.highlight .no {
  color: #66d9ef;
}
.highlight .kt {
  color: #66d9ef;
}
.highlight .mf {
  color: #ae81ff;
}
.highlight .mh {
  color: #ae81ff;
}
.highlight .il {
  color: #ae81ff;
}
.highlight .mi {
  color: #ae81ff;
}
.highlight .mo {
  color: #ae81ff;
}
.highlight .m, .highlight .mb, .highlight .mx {
  color: #ae81ff;
}
.highlight .sc {
  color: #ae81ff;
}
.highlight .se {
  color: #ae81ff;
}
.highlight .ss {
  color: #ae81ff;
}
.highlight .sd {
  color: #e6db74;
}
.highlight .s2 {
  color: #e6db74;
}
.highlight .sb {
  color: #e6db74;
}
.highlight .sh {
  color: #e6db74;
}
.highlight .si {
  color: #e6db74;
}
.highlight .sx {
  color: #e6db74;
}
.highlight .s1 {
  color: #e6db74;
}
.highlight .s, .highlight .sa, .highlight .dl {
  color: #e6db74;
}
.highlight .na {
  color: #a6e22e;
}
.highlight .nc {
  color: #a6e22e;
}
.highlight .nd {
  color: #a6e22e;
}
.highlight .ne {
  color: #a6e22e;
}
.highlight .nf, .highlight .fm {
  color: #a6e22e;
}
.highlight .vc {
  color: #ffffff;
}
.highlight .nn {
  color: #ffffff;
}
.highlight .ni {
  color: #ffffff;
}
.highlight .bp {
  color: #ffffff;
}
.highlight .vg {
  color: #ffffff;
}
.highlight .vi {
  color: #ffffff;
}
.highlight .nv, .highlight .vm {
  color: #ffffff;
}
.highlight .w {
  color: #ffffff;
}
.highlight {
  color: #ffffff;
}
.highlight .n, .highlight .py, .highlight .nx {
  color: #ffffff;
}
.highlight .nl {
  color: #f92672;
}
.highlight .ow {
  color: #f92672;
}
.highlight .nt {
  color: #f92672;
}
.highlight .k, .highlight .kv {
  color: #f92672;
}
.highlight .kn {
  color: #f92672;
}
.highlight .kp {
  color: #f92672;
}
.highlight .o {
  color: #f92672;
}
    </style>
    <style media="print">
      * {
        -webkit-transition:none!important;
        transition:none!important;
      }
      .highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
  color: #586e75;
}
.highlight .err {
  color: #002b36;
  background-color: #dc322f;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #657b83;
}
.highlight .cp {
  color: #b58900;
}
.highlight .nt {
  color: #b58900;
}
.highlight .o, .highlight .ow {
  color: #93a1a1;
}
.highlight .p, .highlight .pi {
  color: #93a1a1;
}
.highlight .gi {
  color: #859900;
}
.highlight .gd {
  color: #dc322f;
}
.highlight .gh {
  color: #268bd2;
  background-color: #002b36;
  font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
  color: #6c71c4;
}
.highlight .kc {
  color: #cb4b16;
}
.highlight .kt {
  color: #cb4b16;
}
.highlight .kd {
  color: #cb4b16;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
  color: #859900;
}
.highlight .sa {
  color: #6c71c4;
}
.highlight .sr {
  color: #2aa198;
}
.highlight .si {
  color: #d33682;
}
.highlight .se {
  color: #d33682;
}
.highlight .nn {
  color: #b58900;
}
.highlight .nc {
  color: #b58900;
}
.highlight .no {
  color: #b58900;
}
.highlight .na {
  color: #268bd2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #859900;
}
.highlight .ss {
  color: #859900;
}
    </style>
    <link href="stylesheets/screen-a4600c6c.css" rel="stylesheet" media="screen" />
    <link href="stylesheets/print-966d6edc.css" rel="stylesheet" media="print" />
      <script src="javascripts/all-024da600.js"></script>

    <script>
      $(function() { setupCodeCopy(); });
    </script>
  </head>

  <body class="index" data-languages="[&quot;shell&quot;]">
    <a href="#" id="nav-button">
      <span>
        NAV
        <img src="images/navbar-cad8cdcb.png" alt="" />
      </span>
    </a>
    <div class="toc-wrapper">
      <img src="images/logo-7953a1bb.png" class="logo" alt="" />
        <div class="lang-selector">
              <a href="#" data-language-name="shell">shell</a>
        </div>
        <div class="search">
          <input type="text" class="search" id="input-search" placeholder="Search">
        </div>
        <ul class="search-results"></ul>
      <ul id="toc" class="toc-list-h1">
          <li>
            <a href="#introduction" class="toc-h1 toc-link" data-title="Introduction">Introduction</a>
          </li>
          <li>
            <a href="#account-tiers" class="toc-h1 toc-link" data-title="Account Tiers">Account Tiers</a>
          </li>
          <li>
            <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
          </li>
          <li>
            <a href="#pagination" class="toc-h1 toc-link" data-title="Pagination">Pagination</a>
          </li>
          <li>
            <a href="#errors" class="toc-h1 toc-link" data-title="Errors">Errors</a>
          </li>
          <li>
            <a href="#teams" class="toc-h1 toc-link" data-title="Teams">Teams</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-teams" class="toc-h2 toc-link" data-title="Get All Teams">Get All Teams</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-team" class="toc-h2 toc-link" data-title="Get a Specific Team">Get a Specific Team</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#players" class="toc-h1 toc-link" data-title="Players">Players</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-players" class="toc-h2 toc-link" data-title="Get All Players">Get All Players</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-player" class="toc-h2 toc-link" data-title="Get a Specific Player">Get a Specific Player</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#games" class="toc-h1 toc-link" data-title="Games">Games</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#attributes" class="toc-h2 toc-link" data-title="Attributes">Attributes</a>
                  </li>
                  <li>
                    <a href="#get-all-games" class="toc-h2 toc-link" data-title="Get All Games">Get All Games</a>
                  </li>
                  <li>
                    <a href="#get-a-specific-game" class="toc-h2 toc-link" data-title="Get a Specific Game">Get a Specific Game</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#stats" class="toc-h1 toc-link" data-title="Stats">Stats</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-stats" class="toc-h2 toc-link" data-title="Get All Stats">Get All Stats</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#season-averages" class="toc-h1 toc-link" data-title="Season Averages">Season Averages</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-averages" class="toc-h2 toc-link" data-title="Get Averages">Get Averages</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#advanced-stats" class="toc-h1 toc-link" data-title="Advanced Stats">Advanced Stats</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#attributes-2" class="toc-h2 toc-link" data-title="Attributes">Attributes</a>
                  </li>
                  <li>
                    <a href="#get-all-advanced-stats" class="toc-h2 toc-link" data-title="Get All Advanced Stats">Get All Advanced Stats</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#box-scores" class="toc-h1 toc-link" data-title="Box Scores">Box Scores</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-live-box-scores" class="toc-h2 toc-link" data-title="Get Live Box Scores">Get Live Box Scores</a>
                  </li>
                  <li>
                    <a href="#get-box-scores" class="toc-h2 toc-link" data-title="Get Box Scores">Get Box Scores</a>
                  </li>
              </ul>
          </li>
          <li>
            <a href="#active-players" class="toc-h1 toc-link" data-title="Active Players">Active Players</a>
              <ul class="toc-list-h2">
                  <li>
                    <a href="#get-all-active-players" class="toc-h2 toc-link" data-title="Get All Active Players">Get All Active Players</a>
                  </li>
              </ul>
          </...
                                                                                                                                                                                                                    
                                                                                                    

Fetch all teams - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/836/nba+players+and+teams+api/605/fetch+all+teams' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Filter your results, by teams ID. This can be found in the endpoint Fetch all teams.



                                                                            
GET https://zylalabs.com/api/836/nba+players+and+teams+api/606/fetch+teams+by+id
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            <!doctype html><html lang="en"><head><script async src="https://www.googletagmanager.com/gtag/js?id=AW-16760575486"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","AW-16760575486")</script><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.f34fac70.js"></script><link href="/static/css/main.b96ac4f1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
                                                                                                                                                                                                                    
                                                                                                    

Fetch teams by ID - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/836/nba+players+and+teams+api/606/fetch+teams+by+id&id=Required' --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 Players And Teams 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • 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

NBA Players And Teams API FAQs

Each endpoint returns JSON data. The "Fetch All Players" endpoint provides a list of players with details like ID, name, position, and team affiliation. The "Fetch players by ID" endpoint returns specific player details based on the provided ID. The "Fetch all teams" endpoint lists all teams with attributes such as ID, abbreviation, and conference. The "Fetch teams by ID" endpoint returns details for a specific team.

Key fields in the player response include "id," "first_name," "last_name," "position," "team," and "weight_pounds." For teams, key fields include "id," "abbreviation," "city," "conference," and "full_name." These fields provide essential information for identifying players and teams.

The response data is structured in JSON format. For players, it includes an array of player objects, each containing fields like ID, name, position, and team details. For teams, it similarly returns an array of team objects with their respective attributes. This organization allows for easy parsing and access to specific data points.

The "Fetch All Players" endpoint provides comprehensive player data across all seasons. The "Fetch players by ID" endpoint offers detailed information for a specific player. The "Fetch all teams" endpoint lists all NBA teams, while the "Fetch teams by ID" endpoint gives detailed information about a specific team, including its conference and division.

The "Fetch players by ID" and "Fetch teams by ID" endpoints require an ID parameter to filter results. Users can customize their requests by specifying the player or team ID they wish to retrieve, ensuring they receive targeted data.

Users can utilize the returned data by accessing specific fields relevant to their needs. For example, developers can display player statistics on a sports website or create team profiles using the team data. The structured JSON format allows for easy integration into applications and websites.

Typical use cases include building sports analytics applications, creating fantasy basketball platforms, and developing news websites that cover NBA events. The API can also be used for educational purposes, such as teaching data handling and API integration.

Data accuracy is maintained through regular updates and quality checks. The API sources its data from reliable sports databases, ensuring that player and team information is current and accurate. Users can trust the data for analysis and reporting purposes.

General FAQs

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, refer to the β€˜X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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

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 3,600, it means 3,600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.

 Service Level
100%
 Response Time
166ms

Category:


Related APIs


You might also like