Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apisports-football

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apisports-football

Asynchronous wrapper for football API from API-SPORTS

  • 1.0.4.1
  • PyPI
  • Socket score

Maintainers
1

apisports_football

PyPI version python

Russian version

It's a handy API wrapper that makes it easy to work with https://www.api-football.com/.

Official documentation: https://www.api-football.com/documentation-v3

Installing

  • With git
git clone https://github.com/h3ave/apisports_football
cd apisports_football
pip install -r requirements.txt
  • With pip
pip install apisports-football

Dependencies

  • Python >= 3.7
  • aiohttp
  • pydantic
  • typing-extensions

Getting API Key

Register on API-Sports.

Go to profile and copy key from API-Key field.

Usage example

import asyncio
from apisports_football import Wrapper

api = Wrapper('TOKEN_HERE')

async def main() -> None:
    data = await api.leagues().get(
        country = 'Spain',
        season = 2024
    )
    print(data)

if __name__ == '__main__':
    asyncio.run(main())

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc