All Projects → MySportsFeeds → mysportsfeeds-node

MySportsFeeds / mysportsfeeds-node

Licence: MIT License
NodeJS wrapper for the MySportsFeeds Sports Data API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mysportsfeeds-node

mysportsfeeds-api
Feature requests for the MySportsFeeds Sports Data API.
Stars: ✭ 44 (-29.03%)
Mutual labels:  nba, nfl, dfs, mlb, nba-stats, nhl, sports-stats, nba-stats-api, sports-data
mysportsfeeds-r
R wrapper functions for the MySportsFeeds Sports Data API
Stars: ✭ 27 (-56.45%)
Mutual labels:  nba, nfl, mlb, nba-stats, nhl, sports-stats, sports-data
mysportsfeeds-python
Python wrapper for the MySportsFeeds Sports Data API
Stars: ✭ 77 (+24.19%)
Mutual labels:  mlb, nba-stats, sports-stats, sports-data, nhl-api
scrapeOP
A python package for scraping oddsportal.com
Stars: ✭ 99 (+59.68%)
Mutual labels:  nba, nfl, sports-data
nflreadr
Efficiently download nflverse data
Stars: ✭ 38 (-38.71%)
Mutual labels:  nfl, sports-data
boxball
Prebuilt Docker images with Retrosheet's complete baseball history data for many analytical frameworks. Includes Postgres, cstore_fdw, MySQL, SQLite, Clickhouse, Drill, Parquet, and CSV.
Stars: ✭ 79 (+27.42%)
Mutual labels:  sports-stats, sports-data
NBA-Machine-Learning-Sports-Betting
NBA sports betting using machine learning
Stars: ✭ 150 (+141.94%)
Mutual labels:  nba, sports-data
nhl-twitter-bot
🚨 Hockey Game Bot is a Python application that sends important NHL events to social media platforms in (near) real time.
Stars: ✭ 18 (-70.97%)
Mutual labels:  nhl, nhl-api
LazyMan-iOS
A simple app that lets you stream every live and archived NHL and MLB game from any of your iOS devices.
Stars: ✭ 73 (+17.74%)
Mutual labels:  mlb, nhl
cfbscrapR
A scraping and aggregating package using the CollegeFootballData API
Stars: ✭ 25 (-59.68%)
Mutual labels:  sports-stats, sports-data
openrowingmonitor
A free and open source performance monitor for rowing machines
Stars: ✭ 29 (-53.23%)
Mutual labels:  sports-stats, sports-data
NBA-analytics
Short, offhand analyses of the NBA
Stars: ✭ 37 (-40.32%)
Mutual labels:  nba, nba-stats
nba-stats-client
🏀 JavaScript Client for stats from NBA.com
Stars: ✭ 29 (-53.23%)
Mutual labels:  nba, nba-stats
flask-react-d3-celery
A full-stack dockerized web application to visualize Formula 1 race statistics from 2016 to present, with a Python Flask server and a React front-end with d3.js as data visualization tool.
Stars: ✭ 20 (-67.74%)
Mutual labels:  sports-stats, sports-data
nhlplaybyplay-node
Fetch and Convert NHL Play by Play game data
Stars: ✭ 13 (-79.03%)
Mutual labels:  nhl, nhl-api
nba-smart-contracts
Smart contracts and transactions for Topshot, the official NBA digital collectibles game on the Flow Blockchain
Stars: ✭ 316 (+409.68%)
Mutual labels:  nba
replay-table
A javascript library for visualizing sport season results with interactive standings
Stars: ✭ 67 (+8.06%)
Mutual labels:  sports-stats
pathfinding-visualizer
A web app to help visualizing typical graph searching algorithms
Stars: ✭ 16 (-74.19%)
Mutual labels:  dfs
nba-analysis
Using machine learning libraries to analyze NBA data
Stars: ✭ 14 (-77.42%)
Mutual labels:  nba
scoreboard
CRG Derby Scoreboard
Stars: ✭ 83 (+33.87%)
Mutual labels:  sports-data

mysportsfeeds-node

MySportsFeeds NodeJS Wrapper brought to you by @MySportsFeeds.

Makes use of the MySportsFeeds API - a flexible, developer-friendly Sports Data API.

Free for Non-Commercial Use.

##Install

$ npm install mysportsfeeds-node

If you haven't signed up for API access, do so here https://www.mysportsfeeds.com

##Usage

Create main MySportsFeeds object with API version and verbosity as input parameters

For v1.x feed requests (free non-commercial access available):

var MySportsFeeds = require("mysportsfeeds-node");

var msf = new MySportsFeeds("1.2", true);

For v2.0 feed requests (donation required for non-commercial access):

var MySportsFeeds = require("mysportsfeeds-node");

var msf = new MySportsFeeds("2.0", true);

If you're using mysportsfeeds-node from a browser environment (like browserify), specify "null" as the 3rd argument to avoid attempts to save the results locally.

var msf = new MySportsFeeds("1.2", true, null);

Authenticate for v1.x (uses your MySportsFeeds account password)

msf.authenticate("<YOUR_API_KEY>", "<YOUR_ACCOUNT_PASSWORD>");

Authenticate for v2.0 (simply uses "MYSPORTSFEEDS" as the password)

msf.authenticate("<YOUR_API_KEY>", "MYSPORTSFEEDS");

Start making requests, specifying: league, season, feed, format, and any other applicable params for the feed

Example (v1.x): Get all NBA 2016-2017 regular season gamelogs for Stephen Curry, in JSON format

    var data = msf.getData('nba', '2016-2017-regular', 'player_gamelogs', 'json', {player: 'stephen-curry'});

Example (v1.x): Get all NFL 2015-2016 regular season seasonal stats totals for all Dallas Cowboys players, in JSON format

    var data = msf.getData('nfl', '2015-2016-regular', 'cumulative_player_stats', 'json', {team: 'dallas-cowboys'});

Example (v1.x): Get full game schedule for the MLB 2016 playoff season, in JSON format

    var data = msf.getData( 'mlb', '2016-playoff', 'full_game_schedule', 'json', {});

Example (v2.0): Get all NBA 2016-2017 regular season gamelogs for Stephen Curry, in JSON format

    var data = msf.getData('nba', '2016-2017-regular', 'seasonal_player_gamelogs', 'json', {player: 'stephen-curry'});

Example (v2.0): Get full game schedule and scores for the MLB 2016 playoff season, in JSON format

    var data = msf.getData( 'mlb', '2016-playoff', 'seasonal_games', 'json', {});

That's it! Returned data is also stored locally under "results/" by default, in appropriately named files.

Contributing

  1. Fork this repo
  2. Make desired code changes
  3. Add related tests
  4. Run tests with npm run test
  5. Create pull request against MySportsFeed:master
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].