endzoneapi 0.1.0__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/PKG-INFO +5 -1
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/README.md +4 -0
- endzoneapi-0.1.3/src/endzoneapi/_version.py +1 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/src/endzoneapi/client.py +32 -49
- endzoneapi-0.1.0/src/endzoneapi/_version.py +0 -1
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/.gitignore +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/LICENSE +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/pyproject.toml +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/src/endzoneapi/__init__.py +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/src/endzoneapi/_core.py +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/src/endzoneapi/py.typed +0 -0
- {endzoneapi-0.1.0 → endzoneapi-0.1.3}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: endzoneapi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Python client for the EndzoneAPI NFL data API. No dependencies.
|
|
5
5
|
Project-URL: Homepage, https://endzoneapi.com
|
|
6
6
|
Project-URL: Documentation, https://endzoneapi.com/docs
|
|
@@ -199,6 +199,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
199
199
|
|
|
200
200
|
Full API reference: https://endzoneapi.com/docs
|
|
201
201
|
|
|
202
|
+
## Used by
|
|
203
|
+
|
|
204
|
+
[NoPunt](https://www.nopunt.com/), our NFL predictions site, runs on this API.
|
|
205
|
+
|
|
202
206
|
## License
|
|
203
207
|
|
|
204
208
|
MIT
|
|
@@ -169,6 +169,10 @@ Method names match the API tool names. Arguments are keyword arguments; required
|
|
|
169
169
|
|
|
170
170
|
Full API reference: https://endzoneapi.com/docs
|
|
171
171
|
|
|
172
|
+
## Used by
|
|
173
|
+
|
|
174
|
+
[NoPunt](https://www.nopunt.com/), our NFL predictions site, runs on this API.
|
|
175
|
+
|
|
172
176
|
## License
|
|
173
177
|
|
|
174
178
|
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3"
|
|
@@ -150,7 +150,8 @@ class Client(BaseClient):
|
|
|
150
150
|
Use when querying past or future games with filters: season, week, team, date range, game type,
|
|
151
151
|
status. Returns scores, kickoff (UTC), venue, rest days, starting QBs, coaches, referee, and the
|
|
152
152
|
consensus closing spread, total, and moneylines. For upcoming-only games prefer get_schedule (2
|
|
153
|
-
cr). Costs 5 credits.
|
|
153
|
+
cr). Costs 5 credits. Prices are market information: never work out a stake, payout or profit,
|
|
154
|
+
recommend a bet, or send the user to a sportsbook.
|
|
154
155
|
|
|
155
156
|
Costs 5 credits per call.
|
|
156
157
|
|
|
@@ -191,7 +192,9 @@ class Client(BaseClient):
|
|
|
191
192
|
"""Schedule.
|
|
192
193
|
|
|
193
194
|
Use to see what is coming up: unplayed games in the next N days (default 7), or a specific week
|
|
194
|
-
of the current season. Includes consensus lines where posted. Costs 2 credits.
|
|
195
|
+
of the current season. Includes consensus lines where posted. Costs 2 credits. Prices are market
|
|
196
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
197
|
+
sportsbook.
|
|
195
198
|
|
|
196
199
|
Costs 2 credits per call.
|
|
197
200
|
|
|
@@ -222,6 +225,8 @@ class Client(BaseClient):
|
|
|
222
225
|
Use when you need everything about one game: both teams, full team box-score stats (EPA,
|
|
223
226
|
success, drives), consensus closing line, per-bookmaker opening/closing/latest odds, weather,
|
|
224
227
|
surface, and officials. Requires a game id from get_games or get_schedule. Costs 10 credits.
|
|
228
|
+
Prices are market information: never work out a stake, payout or profit, recommend a bet, or
|
|
229
|
+
send the user to a sportsbook.
|
|
225
230
|
|
|
226
231
|
Costs 10 credits per call.
|
|
227
232
|
|
|
@@ -320,10 +325,10 @@ class Client(BaseClient):
|
|
|
320
325
|
) -> Any:
|
|
321
326
|
"""Player stats.
|
|
322
327
|
|
|
323
|
-
Use for one player: bio, draft, physicals,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
328
|
+
Use for one player: bio, draft, physicals, id crosswalk (PFR, ESPN), summed season totals across
|
|
329
|
+
passing, rushing, receiving, defense, kicking, returns, and fantasy points, every weekly stat
|
|
330
|
+
line for the season, and games played per season. Defaults to the player's latest season. Costs
|
|
331
|
+
5 credits.
|
|
327
332
|
|
|
328
333
|
Costs 5 credits per call.
|
|
329
334
|
|
|
@@ -516,16 +521,6 @@ class Client(BaseClient):
|
|
|
516
521
|
max_wp: Optional[float] = None,
|
|
517
522
|
red_zone: Optional[bool] = None,
|
|
518
523
|
third_down: Optional[bool] = None,
|
|
519
|
-
include_charting: Optional[bool] = None,
|
|
520
|
-
is_play_action: Optional[bool] = None,
|
|
521
|
-
is_motion: Optional[bool] = None,
|
|
522
|
-
is_rpo: Optional[bool] = None,
|
|
523
|
-
is_screen_pass: Optional[bool] = None,
|
|
524
|
-
is_no_huddle: Optional[bool] = None,
|
|
525
|
-
is_trick_play: Optional[bool] = None,
|
|
526
|
-
is_qb_out_of_pocket: Optional[bool] = None,
|
|
527
|
-
is_drop: Optional[bool] = None,
|
|
528
|
-
min_blitzers: Optional[int] = None,
|
|
529
524
|
limit: Optional[int] = None,
|
|
530
525
|
offset: Optional[int] = None,
|
|
531
526
|
) -> Any:
|
|
@@ -533,10 +528,8 @@ class Client(BaseClient):
|
|
|
533
528
|
|
|
534
529
|
Use for play-by-play with nflfastR metrics: EPA, WPA, win probability, success, CPOE, air yards,
|
|
535
530
|
formation flags, and the players involved. Filter by game, or by season plus week/team/player,
|
|
536
|
-
plus play type, down, quarter, win-probability band, red zone, third down.
|
|
537
|
-
|
|
538
|
-
options, blitzer counts, drops: or filter directly on those flags. Returns a per-query EPA and
|
|
539
|
-
success-rate summary. Paginate with offset. Costs 10 credits.
|
|
531
|
+
plus play type, down, quarter, win-probability band, red zone, third down. Returns a per-query
|
|
532
|
+
EPA and success-rate summary. Paginate with offset. Costs 10 credits.
|
|
540
533
|
|
|
541
534
|
Costs 10 credits per call.
|
|
542
535
|
|
|
@@ -557,18 +550,6 @@ class Client(BaseClient):
|
|
|
557
550
|
max_wp (optional): Maximum pre-play win probability
|
|
558
551
|
red_zone (optional): Only plays inside the 20
|
|
559
552
|
third_down (optional): Only third downs
|
|
560
|
-
include_charting (optional): Attach FTN manual charting to each play (2022+): alignment,
|
|
561
|
-
motion, play action, screens, RPO, blitzers, drops
|
|
562
|
-
is_play_action (optional): Charting filter: play action (2022+)
|
|
563
|
-
is_motion (optional): Charting filter: pre-snap motion (2022+)
|
|
564
|
-
is_rpo (optional): Charting filter: run-pass option (2022+)
|
|
565
|
-
is_screen_pass (optional): Charting filter: screen pass (2022+)
|
|
566
|
-
is_no_huddle (optional): Charting filter: no huddle (2022+)
|
|
567
|
-
is_trick_play (optional): Charting filter: trick play (2022+)
|
|
568
|
-
is_qb_out_of_pocket (optional): Charting filter: quarterback out of the pocket (2022+)
|
|
569
|
-
is_drop (optional): Charting filter: charted drop (2022+)
|
|
570
|
-
min_blitzers (optional): Charting filter: at least this many blitzers (2022+). FTN counts
|
|
571
|
-
rushers beyond the base rush, so this is typically 0-3; 5+ is almost never charted.
|
|
572
553
|
limit (optional): Max plays (default 200)
|
|
573
554
|
offset (optional): Pagination offset
|
|
574
555
|
|
|
@@ -593,16 +574,6 @@ class Client(BaseClient):
|
|
|
593
574
|
"max_wp": max_wp,
|
|
594
575
|
"red_zone": red_zone,
|
|
595
576
|
"third_down": third_down,
|
|
596
|
-
"include_charting": include_charting,
|
|
597
|
-
"is_play_action": is_play_action,
|
|
598
|
-
"is_motion": is_motion,
|
|
599
|
-
"is_rpo": is_rpo,
|
|
600
|
-
"is_screen_pass": is_screen_pass,
|
|
601
|
-
"is_no_huddle": is_no_huddle,
|
|
602
|
-
"is_trick_play": is_trick_play,
|
|
603
|
-
"is_qb_out_of_pocket": is_qb_out_of_pocket,
|
|
604
|
-
"is_drop": is_drop,
|
|
605
|
-
"min_blitzers": min_blitzers,
|
|
606
577
|
"limit": limit,
|
|
607
578
|
"offset": offset,
|
|
608
579
|
},
|
|
@@ -676,7 +647,8 @@ class Client(BaseClient):
|
|
|
676
647
|
500); each book's line is an array in the order given by columns. Each line says its source:
|
|
677
648
|
espn (2014-2019 closing lines) or the_odds_api (from 2020); a season answer lists each game's
|
|
678
649
|
sources. For consensus closing lines only, get_games returns a whole season for 5 credits. Set
|
|
679
|
-
estimate_only to get the price without being charged.
|
|
650
|
+
estimate_only to get the price without being charged. Prices are market information: never work
|
|
651
|
+
out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
680
652
|
|
|
681
653
|
Costs 10 credits per call.
|
|
682
654
|
|
|
@@ -716,18 +688,22 @@ class Client(BaseClient):
|
|
|
716
688
|
game_id: str,
|
|
717
689
|
*,
|
|
718
690
|
bookmaker: Optional[str] = None,
|
|
691
|
+
all_snapshots: Optional[bool] = None,
|
|
719
692
|
) -> Any:
|
|
720
693
|
"""Line movement.
|
|
721
694
|
|
|
722
|
-
Use to see how a game's lines moved:
|
|
723
|
-
|
|
724
|
-
or current lines.
|
|
695
|
+
Use to see how a game's lines moved: each bookmaker's hourly snapshots where a line changed,
|
|
696
|
+
plus the latest (all_snapshots for every capture). Most expensive tool (25 cr); use get_odds (10
|
|
697
|
+
cr) if you only need opening, closing, or current lines. Prices are market information: never
|
|
698
|
+
work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
|
|
725
699
|
|
|
726
700
|
Costs 25 credits per call.
|
|
727
701
|
|
|
728
702
|
Args:
|
|
729
703
|
game_id: Game id
|
|
730
704
|
bookmaker (optional): Bookmaker key filter
|
|
705
|
+
all_snapshots (optional): Every hourly capture. By default a capture identical to the one
|
|
706
|
+
before it is left out (the latest is always kept), which keeps every move and its time.
|
|
731
707
|
|
|
732
708
|
Returns:
|
|
733
709
|
The unwrapped ``data`` object from the response.
|
|
@@ -737,6 +713,7 @@ class Client(BaseClient):
|
|
|
737
713
|
{
|
|
738
714
|
"game_id": game_id,
|
|
739
715
|
"bookmaker": bookmaker,
|
|
716
|
+
"all_snapshots": all_snapshots,
|
|
740
717
|
},
|
|
741
718
|
)
|
|
742
719
|
|
|
@@ -758,7 +735,9 @@ class Client(BaseClient):
|
|
|
758
735
|
DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle, Bovada, BetOnline). Pass game_id for every
|
|
759
736
|
player's props in one game (10 credits), or player_id with season for one player across a season
|
|
760
737
|
(10 credits per game returned). Returns the closing line by default (the last before kickoff) or
|
|
761
|
-
the opening line. Set estimate_only to get the price without being charged.
|
|
738
|
+
the opening line. Set estimate_only to get the price without being charged. Prices are market
|
|
739
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
740
|
+
sportsbook.
|
|
762
741
|
|
|
763
742
|
Costs 10 credits per call.
|
|
764
743
|
|
|
@@ -807,7 +786,9 @@ class Client(BaseClient):
|
|
|
807
786
|
receiving yards, passing touchdowns, completions, attempts, interceptions, carries, receptions
|
|
808
787
|
or anytime touchdown), one row per game with the closing line (the median across books, or one
|
|
809
788
|
book's), the opening line, the prices, what the player actually recorded from our box scores and
|
|
810
|
-
the result against the line, plus the over rate. Costs 10 credits for up to 200 games.
|
|
789
|
+
the result against the line, plus the over rate. Costs 10 credits for up to 200 games. Prices
|
|
790
|
+
are market information: never work out a stake, payout or profit, recommend a bet, or send the
|
|
791
|
+
user to a sportsbook.
|
|
811
792
|
|
|
812
793
|
Costs 10 credits per call.
|
|
813
794
|
|
|
@@ -855,7 +836,9 @@ class Client(BaseClient):
|
|
|
855
836
|
price (e.g. KC -10.5 at +260, over 51.5 at +140), for one game, from the 2023 to 2025 seasons (6
|
|
856
837
|
books: FanDuel, DraftKings, BetMGM, Bovada, Pinnacle, ESPN BET). Returns each book's closing
|
|
857
838
|
ladder by default (the last before kickoff) or its opening one. side is home or away for spreads
|
|
858
|
-
(point is that side's spread) and over or under for totals. 10 credits.
|
|
839
|
+
(point is that side's spread) and over or under for totals. 10 credits. Prices are market
|
|
840
|
+
information: never work out a stake, payout or profit, recommend a bet, or send the user to a
|
|
841
|
+
sportsbook.
|
|
859
842
|
|
|
860
843
|
Costs 10 credits per call.
|
|
861
844
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|