LeagueGameFinder Request



Base URL http://stats.nba.com/stats/leaguegamefinder
Default Response Format JSON
Domain Stats
Section Stats
Category Games
Request Class JasonRoman\NbaApi\Request\Stats\Stats\Games\LeagueGameFinderRequest

Runnable Example:

<?php

require_once 'vendor/autoload.php'; // skip this if using a framework / autoloading elsewhere

use JasonRoman\NbaApi\Client\Client;
use JasonRoman\NbaApi\Request\Stats\Stats\Games\LeagueGameFinderRequest;

$client = new Client();

$request  = LeagueGameFinderRequest::fromArrayWithExamples();
$response = $client->request($request);
The following code will run and return data, as it uses both example and default values. The code shows every available parameter that can be set on this request.
<?php

require_once 'vendor/autoload.php'; // skip this if using a framework / autoloading elsewhere

use JasonRoman\NbaApi\Client\Client;
use JasonRoman\NbaApi\Request\Stats\Stats\Games\LeagueGameFinderRequest;

$client = new Client();

$request = LeagueGameFinderRequest::fromArray([
    'playerOrTeam'  => 'T',
    'leagueId'      => '00',
    'season'        => '2015-16',
    'seasonType'    => 'Regular Season',
    'teamId'        => 1610612745,
    'vsTeamId'      => null,
    'playerId'      => 201935,
    'outcome'       => null,
    'location'      => null,
    'dateFrom'      => null,
    'dateTo'        => null,
    'vsConference'  => null,
    'vsDivision'    => null,
    'conference'    => null,
    'division'      => null,
    'seasonSegment' => null,
    'poRound'       => 0,
    'starterBench'  => null,
    'gtPts'         => null,
    'gtReb'         => null,
    'gtAst'         => null,
    'gtStl'         => null,
    'gtBlk'         => null,
    'gtOReb'        => null,
    'gtDReb'        => null,
    'gtDD'          => null,
    'gtTD'          => null,
    'gtMinutes'     => null,
    'gtTov'         => null,
    'gtPF'          => null,
    'gtFGM'         => null,
    'gtFGA'         => null,
    'gtFG_Pct'      => null,
    'gtFTM'         => null,
    'gtFTA'         => null,
    'gtFT_Pct'      => null,
    'gtFG3M'        => null,
    'gtFG3A'        => null,
    'gtFG3_Pct'     => null,
    'ltPts'         => null,
    'ltReb'         => null,
    'ltAst'         => null,
    'ltStl'         => null,
    'ltBlk'         => null,
    'ltOReb'        => null,
    'ltDReb'        => null,
    'ltDD'          => null,
    'ltTD'          => null,
    'ltMinutes'     => null,
    'ltTov'         => null,
    'ltPF'          => null,
    'ltFGM'         => null,
    'ltFGA'         => null,
    'ltFG_Pct'      => null,
    'ltFTM'         => null,
    'ltFTA'         => null,
    'ltFT_Pct'      => null,
    'ltFG3M'        => null,
    'ltFG3A'        => null,
    'ltFG3_Pct'     => null,
    'eqPts'         => null,
    'eqReb'         => null,
    'eqAst'         => null,
    'eqStl'         => null,
    'eqBlk'         => null,
    'eqOReb'        => null,
    'eqDReb'        => null,
    'eqDD'          => null,
    'eqTD'          => null,
    'eqMinutes'     => null,
    'eqTov'         => null,
    'eqPF'          => null,
    'eqFGM'         => null,
    'eqFGA'         => null,
    'eqFG_Pct'      => null,
    'eqFTM'         => null,
    'eqFTA'         => null,
    'eqFT_Pct'      => null,
    'eqFG3M'        => null,
    'eqFG3A'        => null,
    'eqFG3_Pct'     => null,
]);

$response = $client->request($request);

 Example URL:

Click the icon to copy the URL to your clipboard, or click the link below to open the raw result in a new window.

http://stats.nba.com/stats/leaguegamefinder/?playerOrTeam=T&leagueId=00&season=2015-16&seasonType=Regular+Season&teamId=1610612745&vsTeamId=&playerId=201935&outcome=&location=&dateFrom=&dateTo=&vsConference=&vsDivision=&conference=&division=&seasonSegment=&poRound=0&starterBench=&gtPts=&gtReb=&gtAst=&gtStl=&gtBlk=&gtOReb=&gtDReb=&gtDD=&gtTD=&gtMinutes=&gtTov=&gtPF=&gtFGM=&gtFGA=&gtFG_Pct=&gtFTM=&gtFTA=&gtFT_Pct=&gtFG3M=&gtFG3A=&gtFG3_Pct=&ltPts=&ltReb=&ltAst=&ltStl=&ltBlk=&ltOReb=&ltDReb=&ltDD=&ltTD=&ltMinutes=&ltTov=&ltPF=&ltFGM=&ltFGA=&ltFG_Pct=&ltFTM=&ltFTA=&ltFT_Pct=&ltFG3M=&ltFG3A=&ltFG3_Pct=&eqPts=&eqReb=&eqAst=&eqStl=&eqBlk=&eqOReb=&eqDReb=&eqDD=&eqTD=&eqMinutes=&eqTov=&eqPF=&eqFGM=&eqFGA=&eqFG_Pct=&eqFTM=&eqFTA=&eqFT_Pct=&eqFG3M=&eqFG3A=&eqFG3_Pct=


PHP Result:

Click the button to return the result as a PHP array and PHP object.

playerOrTeam

Required? Yes
Type string
Choices: P
T

leagueId

Required? No
Type string
Default Value 00
Choices: 00
01
10
14
15
16
20

season

Required? No
Type string
Default Value 2018-19
Regex Format: /^\d{4}-\d{2}$/

seasonType

Required? No
Type string
Default Value Regular Season
Choices: Pre Season
Regular Season
Playoffs
All-Star

teamId

Required? No
Type int
Range: Min: 1
Max: 2147483647

vsTeamId

Required? No
Type int
Range: Min: 1
Max: 2147483647

playerId

Required? No
Type int
Range: Min: 1
Max: 2147483647

outcome

Required? No
Type string
Choices: W
L

location

Required? No
Type string
Choices: Home
Road

dateFrom

Required? No
Type \DateTime

dateTo

Required? No
Type \DateTime

vsConference

Required? No
Type string
Choices: East
West

vsDivision

Required? No
Type string
Choices: Atlantic
Central
Northwest
Pacific
Southeast
Southwest
East
West

conference

Required? No
Type string
Choices: East
West

division

Required? No
Type string
Choices: Atlantic
Central
Northwest
Pacific
Southeast
Southwest
East
West

seasonSegment

Required? No
Type string
Choices: Pre All-Star
Post All-Star

poRound

Required? No
Type int
Range: Min: 0
Max: 4

starterBench

Required? No
Type string
Choices: Bench
Starters

gtPts

Required? No
Type int
Range: Min: 0

gtReb

Required? No
Type int
Range: Min: 0

gtAst

Required? No
Type int
Range: Min: 0

gtStl

Required? No
Type int
Range: Min: 0

gtBlk

Required? No
Type int
Range: Min: 0

gtOReb

Required? No
Type int
Range: Min: 0

gtDReb

Required? No
Type int
Range: Min: 0

gtDD

Required? No
Type int
Range: Min: 0

gtTD

Required? No
Type int
Range: Min: 0

gtMinutes

Required? No
Type int
Range: Min: 0

gtTov

Required? No
Type int
Range: Min: 0

gtPF

Required? No
Type int
Range: Min: 0

gtFGM

Required? No
Type int
Range: Min: 0

gtFGA

Required? No
Type int
Range: Min: 0

gtFG_Pct

Required? No
Type int
Range: Min: 0

gtFTM

Required? No
Type int
Range: Min: 0

gtFTA

Required? No
Type int
Range: Min: 0

gtFT_Pct

Required? No
Type int
Range: Min: 0

gtFG3M

Required? No
Type int
Range: Min: 0

gtFG3A

Required? No
Type int
Range: Min: 0

gtFG3_Pct

Required? No
Type int
Range: Min: 0

ltPts

Required? No
Type int
Range: Min: 1

ltReb

Required? No
Type int
Range: Min: 1

ltAst

Required? No
Type int
Range: Min: 1

ltStl

Required? No
Type int
Range: Min: 1

ltBlk

Required? No
Type int
Range: Min: 1

ltOReb

Required? No
Type int
Range: Min: 1

ltDReb

Required? No
Type int
Range: Min: 1

ltDD

Required? No
Type int
Range: Min: 1

ltTD

Required? No
Type int
Range: Min: 1

ltMinutes

Required? No
Type int
Range: Min: 1

ltTov

Required? No
Type int
Range: Min: 1

ltPF

Required? No
Type int
Range: Min: 1

ltFGM

Required? No
Type int
Range: Min: 1

ltFGA

Required? No
Type int
Range: Min: 1

ltFG_Pct

Required? No
Type int
Range: Min: 1

ltFTM

Required? No
Type int
Range: Min: 1

ltFTA

Required? No
Type int
Range: Min: 1

ltFT_Pct

Required? No
Type int
Range: Min: 1

ltFG3M

Required? No
Type int
Range: Min: 1

ltFG3A

Required? No
Type int
Range: Min: 1

ltFG3_Pct

Required? No
Type int
Range: Min: 1

eqPts

Required? No
Type int
Range: Min: 0

eqReb

Required? No
Type int
Range: Min: 0

eqAst

Required? No
Type int
Range: Min: 0

eqStl

Required? No
Type int
Range: Min: 0

eqBlk

Required? No
Type int
Range: Min: 0

eqOReb

Required? No
Type int
Range: Min: 0

eqDReb

Required? No
Type int
Range: Min: 0

eqDD

Required? No
Type int
Range: Min: 0

eqTD

Required? No
Type int
Range: Min: 0

eqMinutes

Required? No
Type int
Range: Min: 0

eqTov

Required? No
Type int
Range: Min: 0

eqPF

Required? No
Type int
Range: Min: 0

eqFGM

Required? No
Type int
Range: Min: 0

eqFGA

Required? No
Type int
Range: Min: 0

eqFG_Pct

Required? No
Type int
Range: Min: 0

eqFTM

Required? No
Type int
Range: Min: 0

eqFTA

Required? No
Type int
Range: Min: 0

eqFT_Pct

Required? No
Type int
Range: Min: 0

eqFG3M

Required? No
Type int
Range: Min: 0

eqFG3A

Required? No
Type int
Range: Min: 0

eqFG3_Pct

Required? No
Type int
Range: Min: 0

Change any of the filterable values here and submit the form to get results with your chosen filters. This will also give you the corresponding URL as well as the code used to generate the result.



This site has no official affiliation with the National Basketball Association or any other 3rd-party entities listed on this site.
© 2018 Jason Roman