FPL API
This is a simple python API wrapper for the Fantasy Premier League game. It scrapes the official FPL site to retrieve data and present it in JSON format.
Documentation
The API design is inspired by the Fantasy Premier League API Endpoints: A Detailed Guide by Frenzel Timothy. The guide shows all endpoint that are implemented in this API wrapper.
Installation
Run the following command to download the most recent release:
pip install git+https://github.com/C-Roensholt/fpl-api.git
To install a specific version:
pip install git+https://github.com/C-Roensholt/fpl-api.git@v0.0.1
Usage
A basic example of how to use the API could be:
from fplapi import fplAPI
# Initialize API connection
client = fplAPI()
# Extract metadata
fpl_data = client.get_fpl_data()
fixtures = client.get_fixtures()
# Get first 10 players data
player_detailed_data_list = []
for player in fpl_data["elements"][:10]:
player_detailed_data = client.get_player_detailed_data(element_id=player["id"])
player_detailed_data_list.append(player_detailed_data)
Metadata
Release files for fpl-api 0.0.4
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 |
|---|---|---|---|---|
| fpl-api-0.0.4.tar.gz | 2.5 kB | Without provenance | Details for fpl-api-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fpl_api-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for fpl_api-0.0.4-py3-none-any.whl |
Total release size: 5.1 kB
Release files / fpl-api-0.0.4.tar.gz
| Download URL | fpl-api-0.0.4.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0aa1f3df2177d804203e60dbd8bd2afa01a5e2654e0080f801b121b9f3542391
|
|
BLAKE2b-256 checksum How to use checksums |
610b61456afe9e920af2fbaae0581d4c75540dbfe145df55669de9ccc4321fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / fpl_api-0.0.4-py3-none-any.whl
| Download URL | fpl_api-0.0.4-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
670bfe57d4885c2cd4da8827732f89696e82a4aff0d3940b580a4baf451cac8c
|
|
BLAKE2b-256 checksum How to use checksums |
e0d40400ab064376e7e83b10bc9aee41c24a435cb3d8cf222cb2818790762ed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for fpl-api 0.0.4
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.