jasonroman / nba-api
PHP Library to request data from various endpoints on NBA websites
Installs: 4 325
Dependents: 0
Suggesters: 0
Security: 0
Stars: 96
Watchers: 12
Forks: 14
Open Issues: 6
Requires
- php: >=7.0
- doctrine/annotations: >=1.4
- doctrine/cache: >=1.6
- guzzlehttp/guzzle: >=6.0
- symfony/finder: >=3.3
- symfony/intl: >=3.3
- symfony/validator: >=3.3
Requires (Dev)
- phpunit/phpunit: >=6.1
- symfony/var-dumper: >=3.4.x-dev
This package is not auto-updated.
Last update: 2024-10-27 04:33:31 UTC
README
This is a PHP library used to access data across various endpoints on NBA websites. The full documentation can be found at http://nbasense.com/nba-api/. This contains installation instructions, usage examples, and runnable/filterable reporting on all endpoints.
Troubleshooting
If you are having trouble retrieving requests that access stats.nba.com/stats/, it appears that the NBA has blocked off access to these endpoints on some level; this blocking seems to occur on many cloud hosting providers such as Amazon AWS, Digital Ocean, and Heroku.
In my testing, these endpoints have always worked when developing locally.