crawlora-yahoo-sports — Yahoo Sports API client for Python
Python client for Crawlora's hosted Yahoo Sports API. It exposes 53 API endpoints covering league, team, player, game, schedule, standings, rankings, and fantasy sports data. Requests go to Crawlora; the package does not run a browser or scrape
Yahoo Sports 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
Yahoo Sports or its owners.
Install
python -m pip install crawlora-yahoo-sports
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_yahoo_sports import YahooSportsClient
api_key = os.environ.get("CRAWLORA_API_KEY")
if not api_key:
raise RuntimeError("Set CRAWLORA_API_KEY before running this example.")
with YahooSportsClient(api_key=api_key) as client:
result_1 = client.dropdown_catalog()
print(result_1)
result_2 = client.game(league='nfl')
print(result_2)
The package also exports Client as an alias for YahooSportsClient. Operation
methods are available directly in snake_case and through the yahoo-sports
group. The async package client is AsyncYahooSportsClient; 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_yahoo_sports 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.dropdown_catalog()
print(result_1)
asyncio.run(main())
See the runnable example for a complete usage example.
Supported Yahoo Sports API endpoints
This package exposes every route below through direct snake_case methods and the yahoo-sports group. See the endpoint and parameter reference for complete input details.
| Method | Endpoint | API operation | Description |
|---|---|---|---|
GET |
/yahoo-sports/college-rankings |
yahoo-sports-college-rankings |
Yahoo Sports college football and basketball rankings |
GET |
/yahoo-sports/draft |
yahoo-sports-draft |
Yahoo Sports NFL and NBA Draft hub |
GET |
/yahoo-sports/dropdown-catalog |
yahoo-sports-dropdown-catalog |
Yahoo Sports team and category dropdown data |
GET |
/yahoo-sports/game |
yahoo-sports-game |
Yahoo Sports game boxscore |
GET |
/yahoo-sports/golf-leaderboard |
yahoo-sports-golf-leaderboard |
Yahoo Sports golf tournament leaderboard |
GET |
/yahoo-sports/golf-player |
yahoo-sports-golf-player |
Yahoo Sports golf player profile |
GET |
/yahoo-sports/golf-player-news |
yahoo-sports-golf-player-news |
Yahoo Sports golf player news |
GET |
/yahoo-sports/golf-players |
yahoo-sports-golf-players |
Yahoo Sports golf player directory |
GET |
/yahoo-sports/golf-schedule |
yahoo-sports-golf-schedule |
Yahoo Sports golf tournament schedule |
GET |
/yahoo-sports/home |
yahoo-sports-home |
Yahoo Sports home-page stories |
GET |
/yahoo-sports/injury-report |
yahoo-sports-injury-report |
Yahoo Sports injury report |
GET |
/yahoo-sports/league-schedule |
yahoo-sports-league-schedule |
Yahoo Sports league schedule games |
GET |
/yahoo-sports/leagues |
yahoo-sports-leagues |
Yahoo Sports league catalog |
GET |
/yahoo-sports/mma-fight-card |
yahoo-sports-mma-fight-card |
Yahoo Sports MMA fight card |
GET |
/yahoo-sports/mma-schedule |
yahoo-sports-mma-schedule |
Yahoo Sports MMA event schedule |
GET |
/yahoo-sports/more-news |
yahoo-sports-more-news |
Yahoo Sports More News feed |
GET |
/yahoo-sports/motorsports-race |
yahoo-sports-motorsports-race |
Yahoo Sports motorsports race results |
GET |
/yahoo-sports/motorsports-schedule |
yahoo-sports-motorsports-schedule |
Yahoo Sports motorsports season schedule |
GET |
/yahoo-sports/navigation |
yahoo-sports-navigation |
Yahoo Sports section navigation |
GET |
/yahoo-sports/network-catalog |
yahoo-sports-network-catalog |
Yahoo Sports Network and Watch catalog |
GET |
/yahoo-sports/news |
yahoo-sports-news |
Yahoo Sports league news |
GET |
/yahoo-sports/newsletter-archive |
yahoo-sports-newsletter-archive |
Yahoo Sports newsletter article archive |
GET |
/yahoo-sports/newsletters |
yahoo-sports-newsletters |
Yahoo Sports newsletter catalog |
GET |
/yahoo-sports/odds-featured |
yahoo-sports-odds-featured |
Yahoo Sports featured odds games |
GET |
/yahoo-sports/odds-game |
yahoo-sports-odds-game |
Yahoo Sports game odds markets |
GET |
/yahoo-sports/odds-games |
yahoo-sports-odds-games |
Yahoo Sports current game IDs for an odds league |
GET |
/yahoo-sports/odds-trending |
yahoo-sports-odds-trending |
Yahoo Sports trending odds games |
GET |
/yahoo-sports/olympics-medals |
yahoo-sports-olympics-medals |
Yahoo Sports Olympics medal count |
GET |
/yahoo-sports/player |
yahoo-sports-player |
Yahoo Sports player detail |
GET |
/yahoo-sports/player-search |
yahoo-sports-player-search |
Yahoo Sports player search |
GET |
/yahoo-sports/playoff-bracket |
yahoo-sports-playoff-bracket |
Yahoo Sports playoff bracket data |
GET |
/yahoo-sports/playoff-bracket-catalog |
yahoo-sports-playoff-bracket-catalog |
Yahoo Sports playoff bracket season options |
GET |
/yahoo-sports/rss-catalog |
yahoo-sports-rss-catalog |
Yahoo Sports RSS feed catalog |
GET |
/yahoo-sports/rss-feed |
yahoo-sports-rss-feed |
Yahoo Sports RSS feed |
GET |
/yahoo-sports/schedule-catalog |
yahoo-sports-schedule-catalog |
Yahoo Sports league schedule filter catalog |
GET |
/yahoo-sports/scoreboard |
yahoo-sports-scoreboard |
Yahoo Sports scoreboard |
GET |
/yahoo-sports/section-stream |
yahoo-sports-section-stream |
Yahoo Sports public section article stream |
GET |
/yahoo-sports/soccer-scoreboard |
yahoo-sports-soccer-scoreboard |
Yahoo Sports all-competition soccer scoreboard |
GET |
/yahoo-sports/sportsbook-catalog |
yahoo-sports-sportsbook-catalog |
Yahoo Sports odds page filter catalog |
GET |
/yahoo-sports/standings |
yahoo-sports-standings |
Yahoo Sports standings |
GET |
/yahoo-sports/stats |
yahoo-sports-stats |
Yahoo Sports league stats table |
GET |
/yahoo-sports/stats-catalog |
yahoo-sports-stats-catalog |
Yahoo Sports stats league catalog |
GET |
/yahoo-sports/stats-discovery |
yahoo-sports-stats-discovery |
Yahoo Sports stats tabs and filters |
GET |
/yahoo-sports/team |
yahoo-sports-team |
Yahoo Sports team detail |
GET |
/yahoo-sports/team-roster |
yahoo-sports-team-roster |
Yahoo Sports team roster |
GET |
/yahoo-sports/team-schedule |
yahoo-sports-team-schedule |
Yahoo Sports team schedule |
GET |
/yahoo-sports/tennis-rankings |
yahoo-sports-tennis-rankings |
Yahoo Sports tennis rankings |
GET |
/yahoo-sports/tennis-schedule |
yahoo-sports-tennis-schedule |
Yahoo Sports tennis tournament schedule |
GET |
/yahoo-sports/tennis-scoreboard |
yahoo-sports-tennis-scoreboard |
Yahoo Sports tennis scoreboard |
GET |
/yahoo-sports/topic-news |
yahoo-sports-topic-news |
Yahoo Sports topic news |
GET |
/yahoo-sports/video-headlines |
yahoo-sports-video-headlines |
Yahoo Sports video headlines |
GET |
/yahoo-sports/video-list-catalog |
yahoo-sports-video-list-catalog |
Yahoo Sports video-list catalog |
GET |
/yahoo-sports/watch-schedule |
yahoo-sports-watch-schedule |
Yahoo Sports TV schedule |
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-yahoo-sports 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_yahoo_sports-0.1.0.tar.gz | 44.5 kB | Without provenance | Details for crawlora_yahoo_sports-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crawlora_yahoo_sports-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crawlora_yahoo_sports-0.1.0-py3-none-any.whl |
Total release size: 89.0 kB
Release files / crawlora_yahoo_sports-0.1.0.tar.gz
| Download URL | crawlora_yahoo_sports-0.1.0.tar.gz |
|---|---|
| Size | 44.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa06933e208c540d75fc8214b3d2de1908e493c15a98bb01ddef89959922e72d
|
|
BLAKE2b-256 checksum How to use checksums |
ffd89c10912e7693ce3f4a871b4e8393e3afef7a1741fced2174769754648f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / crawlora_yahoo_sports-0.1.0-py3-none-any.whl
| Download URL | crawlora_yahoo_sports-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
597494fd5aaf02064a3d345036e09ce9d4cbc1b3ae184130d839e77a1a720639
|
|
BLAKE2b-256 checksum How to use checksums |
49d1c412a2dfc7bd502fbc2aae763d57fad4e04025bccfb3144d49bab606e866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for crawlora-yahoo-sports 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.