npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/sportsdata_mlb_v3_play_by_play

v3.0.0

Published

DataFire integration for MLB v3 Play-by-Play

Downloads

6

Readme

@datafire/sportsdata_mlb_v3_play_by_play

Client library for MLB v3 Play-by-Play

Installation and Usage

npm install --save @datafire/sportsdata_mlb_v3_play_by_play
let sportsdata_mlb_v3_play_by_play = require('@datafire/sportsdata_mlb_v3_play_by_play').create({
  apiKeyHeader: "",
  apiKeyQuery: ""
});

.then(data => {
  console.log(data);
});

Description

MLB play-by-play API.

Actions

PlayByPlay

Play By Play

sportsdata_mlb_v3_play_by_play.PlayByPlay({
  "format": "",
  "gameid": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.
    • gameid required string: The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905

Output

PlayByPlayDelta

Play By Play Delta

sportsdata_mlb_v3_play_by_play.PlayByPlayDelta({
  "format": "",
  "date": "",
  "minutes": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.
    • date required string: The date of the game(s).
    • minutes required string: Only returns plays that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are:

Output

Definitions

Game

  • Game object
    • Attendance integer
    • AwayRotationNumber integer
    • AwayTeam string
    • AwayTeamErrors integer
    • AwayTeamHits integer
    • AwayTeamID integer
    • AwayTeamMoneyLine integer
    • AwayTeamProbablePitcherID integer
    • AwayTeamRuns integer
    • AwayTeamStartingPitcher string
    • AwayTeamStartingPitcherID integer
    • Balls integer
    • Channel string
    • CurrentHitter string
    • CurrentHitterID integer
    • CurrentHittingTeamID integer
    • CurrentPitcher string
    • CurrentPitcherID integer
    • CurrentPitchingTeamID integer
    • DateTime string
    • Day string
    • DueUpHitterID1 integer
    • DueUpHitterID2 integer
    • DueUpHitterID3 integer
    • ForecastDescription string
    • ForecastTempHigh integer
    • ForecastTempLow integer
    • ForecastWindChill integer
    • ForecastWindDirection integer
    • ForecastWindSpeed integer
    • GameEndDateTime string
    • GameID integer
    • GlobalAwayTeamID integer
    • GlobalGameID integer
    • GlobalHomeTeamID integer
    • HomeRotationNumber integer
    • HomeTeam string
    • HomeTeamErrors integer
    • HomeTeamHits integer
    • HomeTeamID integer
    • HomeTeamMoneyLine integer
    • HomeTeamProbablePitcherID integer
    • HomeTeamRuns integer
    • HomeTeamStartingPitcher string
    • HomeTeamStartingPitcherID integer
    • Inning integer
    • InningDescription string
    • InningHalf string
    • Innings array
    • IsClosed boolean
    • LastPlay string
    • LosingPitcher string
    • LosingPitcherID integer
    • NeutralVenue boolean
    • Outs integer
    • OverUnder number
    • PointSpread number
    • PointSpreadAwayTeamMoneyLine integer
    • PointSpreadHomeTeamMoneyLine integer
    • RescheduledFromGameID integer
    • RescheduledGameID integer
    • RunnerOnFirst boolean
    • RunnerOnSecond boolean
    • RunnerOnThird boolean
    • SavingPitcher string
    • SavingPitcherID integer
    • Season integer
    • SeasonType integer
    • StadiumID integer
    • Status string
    • Strikes integer
    • Updated string
    • WinningPitcher string
    • WinningPitcherID integer

Inning

  • Inning object
    • AwayTeamRuns integer
    • GameID integer
    • HomeTeamRuns integer
    • InningID integer
    • InningNumber integer

Pitch

  • Pitch object
    • Ball boolean
    • BallsBeforePitch integer
    • Foul boolean
    • HitterID integer
    • Looking boolean
    • Outs integer
    • PitchID integer
    • PitchNumberThisAtBat integer
    • PitcherID integer
    • PlayID integer
    • Strike boolean
    • StrikesBeforePitch integer
    • Swinging boolean

Play

  • Play object
    • AtBat boolean
    • AwayTeamRuns integer
    • Balls integer
    • Description string
    • Error boolean
    • Hit boolean
    • HitterBatHand string
    • HitterID integer
    • HitterName string
    • HitterPosition string
    • HitterTeamID integer
    • HomeTeamRuns integer
    • InningBatterNumber integer
    • InningHalf string
    • InningID integer
    • InningNumber integer
    • NumberOfOutsOnPlay integer
    • Out boolean
    • Outs integer
    • PitchNumberThisAtBat integer
    • PitcherID integer
    • PitcherName string
    • PitcherTeamID integer
    • PitcherThrowHand string
    • Pitches array
    • PlayID integer
    • PlayNumber integer
    • Result string
    • Runner1ID integer
    • Runner2ID integer
    • Runner3ID integer
    • RunsBattedIn integer
    • Sacrifice boolean
    • Strikeout boolean
    • Strikes integer
    • Updated string
    • Walk boolean

PlayByPlay

  • PlayByPlay object