crawlora-fanduel — FanDuel API client for Python
Python client for Crawlora's hosted FanDuel API. It exposes 72 API endpoints covering public racing, casino catalogue, and research data. Requests go to Crawlora; the package does not run a browser or scrape
FanDuel locally. A Crawlora account and CRAWLORA_API_KEY are required,
and API use is billed under your Crawlora account. Crawlora is independent from and not endorsed by
FanDuel or its owners.
Install
python -m pip install crawlora-fanduel
Get an API key
Create an account at crawlora.net, then open the Crawlora console for API-key setup. Set your key in the shell before running the client:
export CRAWLORA_API_KEY="your-crawlora-api-key"
Use
Save this example as example.py, then run python example.py after installing the package and setting your API key.
import os
from crawlora_fanduel import FanDuelClient
api_key = os.environ.get("CRAWLORA_API_KEY")
if not api_key:
raise RuntimeError("Set CRAWLORA_API_KEY before running this example.")
with FanDuelClient(api_key=api_key) as client:
result_1 = client.casino_categories()
print(result_1)
result_2 = client.racing_tracks()
print(result_2)
The package also exports Client as an alias for FanDuelClient. Operation
methods are available directly in snake_case and through the fanduel
group. The async package client is AsyncFanDuelClient; see the online
endpoint and parameter reference and runnable example.
Async usage
The package also exports AsyncClient for asynchronous requests:
import asyncio
import os
from crawlora_fanduel import AsyncClient
async def main():
api_key = os.environ.get("CRAWLORA_API_KEY")
if not api_key:
raise RuntimeError("Set CRAWLORA_API_KEY before running this example.")
async with AsyncClient(api_key=api_key) as client:
result_1 = await client.casino_categories()
print(result_1)
asyncio.run(main())
See the runnable example for a complete usage example.
Supported FanDuel API endpoints
This package exposes every route below through direct snake_case methods and the fanduel group. See the endpoint and parameter reference for complete input details.
| Method | Endpoint | API operation | Description |
|---|---|---|---|
GET |
/fanduel/casino/categories |
fanduel-casino-categories |
FanDuel Casino categories |
GET |
/fanduel/casino/category |
fanduel-casino-category |
FanDuel Casino category games |
GET |
/fanduel/casino/game |
fanduel-casino-game |
FanDuel Casino game detail |
GET |
/fanduel/racing/carryover-pools |
fanduel-racing-carryover-pools |
FanDuel Racing carry-over pools |
GET |
/fanduel/racing/filters |
fanduel-racing-filters |
FanDuel Racing filter values |
GET |
/fanduel/racing/horse |
fanduel-racing-horse |
FanDuel Racing horse career |
GET |
/fanduel/racing/past-race |
fanduel-racing-past-race |
FanDuel Racing past race result |
GET |
/fanduel/racing/past-races |
fanduel-racing-past-races |
FanDuel Racing past races of a day |
GET |
/fanduel/racing/past-tracks |
fanduel-racing-past-tracks |
FanDuel Racing tracks with past results |
GET |
/fanduel/racing/race |
fanduel-racing-race |
FanDuel Racing race detail |
GET |
/fanduel/racing/races |
fanduel-racing-races |
FanDuel Racing races |
GET |
/fanduel/racing/results |
fanduel-racing-results |
FanDuel Racing results |
GET |
/fanduel/racing/search |
fanduel-racing-search |
FanDuel Racing search by name |
GET |
/fanduel/racing/track |
fanduel-racing-track |
FanDuel Racing track and its races |
GET |
/fanduel/racing/tracks |
fanduel-racing-tracks |
FanDuel Racing tracks today |
GET |
/fanduel/racing/wager-types |
fanduel-racing-wager-types |
FanDuel Racing wager types |
GET |
/fanduel/research |
fanduel-research |
FanDuel Research recent RSS items |
GET |
/fanduel/research/article |
fanduel-research-article |
FanDuel Research article |
GET |
/fanduel/research/articles |
fanduel-research-articles |
FanDuel Research articles |
GET |
/fanduel/research/author |
fanduel-research-author |
FanDuel Research author |
GET |
/fanduel/research/authors |
fanduel-research-authors |
FanDuel Research authors |
GET |
/fanduel/research/featured-articles |
fanduel-research-featured-articles |
FanDuel Research featured articles |
GET |
/fanduel/research/fixtures |
fanduel-research-fixtures |
FanDuel Research live fixtures |
GET |
/fanduel/research/nfl-schedule |
fanduel-research-nfl-schedule |
FanDuel Research NFL schedule |
GET |
/fanduel/research/player-news |
fanduel-research-player-news |
FanDuel Research player news and injuries |
GET |
/fanduel/research/podcasts/quick-picks-daily |
fanduel-research-quick-picks-daily |
FanDuel Research Quick Picks Daily episode archive |
GET |
/fanduel/research/projection-slates |
fanduel-research-projection-slates |
FanDuel Research projection slates |
GET |
/fanduel/research/projection-tables |
fanduel-research-projection-tables |
FanDuel Research projection tables |
GET |
/fanduel/research/projections |
fanduel-research-projections |
FanDuel Research fantasy projections |
GET |
/fanduel/research/sports |
fanduel-research-sports |
FanDuel Research sports and topics |
GET |
/fanduel/research/sub-categories |
fanduel-research-sub-categories |
FanDuel Research topics |
GET |
/fanduel/sportsbook/autocomplete |
fanduel-sportsbook-autocomplete |
FanDuel Sportsbook search suggestions |
GET |
/fanduel/sportsbook/builder |
fanduel-sportsbook-builder |
FanDuel Sportsbook bet builder |
GET |
/fanduel/sportsbook/builder/events |
fanduel-sportsbook-builder-events |
FanDuel Sportsbook bet builder events |
GET |
/fanduel/sportsbook/builder/quotes |
fanduel-sportsbook-builder-quotes |
FanDuel Sportsbook bet builder quotes |
GET |
/fanduel/sportsbook/competition |
fanduel-sportsbook-competition |
FanDuel Sportsbook competition schedule and futures |
GET |
/fanduel/sportsbook/event |
fanduel-sportsbook-event |
FanDuel Sportsbook event markets |
GET |
/fanduel/sportsbook/event/box-score |
fanduel-sportsbook-event-box-score |
FanDuel Sportsbook live box score |
GET |
/fanduel/sportsbook/event/play-by-play |
fanduel-sportsbook-event-play-by-play |
FanDuel Sportsbook live play-by-play |
GET |
/fanduel/sportsbook/event/players |
fanduel-sportsbook-event-players |
FanDuel Sportsbook event teams and player roster |
GET |
/fanduel/sportsbook/event/score |
fanduel-sportsbook-event-score |
FanDuel Sportsbook live score and status |
GET |
/fanduel/sportsbook/event/stats |
fanduel-sportsbook-event-stats |
FanDuel Sportsbook event betting splits and form |
GET |
/fanduel/sportsbook/events/status |
fanduel-sportsbook-events-status |
FanDuel Sportsbook events status |
GET |
/fanduel/sportsbook/home |
fanduel-sportsbook-home |
FanDuel Sportsbook homepage odds |
GET |
/fanduel/sportsbook/league |
fanduel-sportsbook-league |
FanDuel Sportsbook league page odds |
GET |
/fanduel/sportsbook/live |
fanduel-sportsbook-live |
FanDuel Sportsbook live betting events |
GET |
/fanduel/sportsbook/live-count |
fanduel-sportsbook-live-count |
FanDuel Sportsbook live event count |
GET |
/fanduel/sportsbook/live-data |
fanduel-sportsbook-live-data |
FanDuel Sportsbook live state for any sport |
GET |
/fanduel/sportsbook/live-scores |
fanduel-sportsbook-live-scores |
FanDuel Sportsbook live scores and stats for many events |
GET |
/fanduel/sportsbook/market-prices |
fanduel-sportsbook-market-prices |
FanDuel Sportsbook current market prices |
GET |
/fanduel/sportsbook/parlays |
fanduel-sportsbook-parlays |
FanDuel Sportsbook Parlay Hub |
GET |
/fanduel/sportsbook/player |
fanduel-sportsbook-player |
FanDuel Sportsbook player overview |
GET |
/fanduel/sportsbook/player/news |
fanduel-sportsbook-player-news |
FanDuel Sportsbook player news |
GET |
/fanduel/sportsbook/player/props |
fanduel-sportsbook-player-props |
FanDuel Sportsbook player props |
GET |
/fanduel/sportsbook/player/stats |
fanduel-sportsbook-player-stats |
FanDuel Sportsbook player statistics |
GET |
/fanduel/sportsbook/players |
fanduel-sportsbook-players |
FanDuel Sportsbook player directory |
GET |
/fanduel/sportsbook/promotions |
fanduel-sportsbook-promotions |
FanDuel Sportsbook promotions |
GET |
/fanduel/sportsbook/schedule |
fanduel-sportsbook-schedule |
FanDuel Sportsbook league schedule |
GET |
/fanduel/sportsbook/search |
fanduel-sportsbook-search |
FanDuel Sportsbook search |
GET |
/fanduel/sportsbook/search/tabs |
fanduel-sportsbook-search-tabs |
FanDuel Sportsbook grouped search |
GET |
/fanduel/sportsbook/sport |
fanduel-sportsbook-sport |
FanDuel Sportsbook sport page odds |
GET |
/fanduel/sportsbook/sports |
fanduel-sportsbook-sports |
FanDuel Sportsbook sports and league pages |
GET |
/fanduel/sportsbook/standings |
fanduel-sportsbook-standings |
FanDuel Sportsbook league standings |
GET |
/fanduel/sportsbook/stats |
fanduel-sportsbook-stats |
FanDuel Sportsbook betting splits and form for upcoming events |
GET |
/fanduel/sportsbook/team/depth-chart |
fanduel-sportsbook-team-depth-chart |
FanDuel Sportsbook team depth chart |
GET |
/fanduel/sportsbook/team/news |
fanduel-sportsbook-team-news |
FanDuel Sportsbook team news |
GET |
/fanduel/sportsbook/team/odds |
fanduel-sportsbook-team-odds |
FanDuel Sportsbook team odds page |
GET |
/fanduel/sportsbook/team/roster |
fanduel-sportsbook-team-roster |
FanDuel Sportsbook team roster and injuries |
GET |
/fanduel/sportsbook/team/schedule |
fanduel-sportsbook-team-schedule |
FanDuel Sportsbook team schedule and results |
GET |
/fanduel/sportsbook/team/stats |
fanduel-sportsbook-team-stats |
FanDuel Sportsbook team statistics |
GET |
/fanduel/sportsbook/teams |
fanduel-sportsbook-teams |
FanDuel Sportsbook team index |
GET |
/fanduel/sportsbook/trending |
fanduel-sportsbook-trending |
FanDuel Sportsbook trending searches |
Configuration
Pass your key through api_key or read CRAWLORA_API_KEY from the environment.
Keep credentials out of source control and logs. Requests go to Crawlora's
hosted API.
Metadata
Release files for crawlora-fanduel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crawlora_fanduel-0.1.0.tar.gz | 59.2 kB | Without provenance | Details for crawlora_fanduel-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crawlora_fanduel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crawlora_fanduel-0.1.0-py3-none-any.whl |
Total release size: 118.2 kB
Release files / crawlora_fanduel-0.1.0.tar.gz
| Download URL | crawlora_fanduel-0.1.0.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a7d26650976e869a7d9e02df379f31c63ffd5d8ca6c62a3969190bf55c2bc67
|
|
BLAKE2b-256 checksum How to use checksums |
0cafb5baaafd6f9d1870f7b8559126b7472851fe183fac8e7b459cc006eefbd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / crawlora_fanduel-0.1.0-py3-none-any.whl
| Download URL | crawlora_fanduel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 59.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d1c91918ab4f0ecf44230828f6f3dfe3c6180b95d41254df753d297f61defb6
|
|
BLAKE2b-256 checksum How to use checksums |
62485e96516e7ff6e2b11ae845c39a1f5a96765ca73614a92f71e7da1ac4c9b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for crawlora-fanduel 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.