Hacker News new | past | comments | ask | show | jobs | submit login

Funny you would mention that. A few weeks ago, I wrote a Python-based client library [0] for the website kicker.de [1]. It supports the NFL, too:

    import asyncio
    from kickerde_api_client import Api
    from kickerde_api_client.model import LeagueId

    api = Api()
    query = {'league': LeagueId.NFL, 'season': '2024/25'}
    season = asyncio.run(api.league_season(**query))
    
    print(season['longName'])             # 'National Football League'
    print(season['country']['longName'])  # 'USA'
    
    print([
        team['shortName']
        for team in season['teams'].values()
        if team['shortName'].startswith('B')
    ])                                    # ['Buffalo', 'Baltimore']
    
    day = season['gamedays'][18]
    print(str(day['dateFrom'].date()))    # '2025-01-05'
[0]: https://kickerde-api-client.readthedocs.io/en/stable/autoapi...

[1]: https://www.kicker.de/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: