nflmeta
Official Python SDK for the NFLMeta API.
Install
pip install nflmeta
Quickstart
from nflmeta import NFLMetaClient
client = NFLMetaClient(api_key="YOUR_KEY")
team = client.teams.get("PIT", season=2025)
player = client.players.identity("josh-allen-1996")
usage = client.usage.get()
print(team.data["displayName"])
print(player.data["display_name"])
print(usage.data["quota_remaining"])
What The SDK Does
- sends
X-NFLMeta-Keyautomatically when you provideapi_key - preserves the API envelope shape:
data, optionalmeta, plus parsed rate-limit headers - throws typed HTTP errors for common failure cases
- exposes the main public API surfaces as resource clients instead of forcing raw URL construction
- still gives you a low-level
client.get(path, query={...})escape hatch for any route not wrapped yet
Configuration
client = NFLMetaClient(
api_key="YOUR_KEY",
base_url="https://nflmeta.org",
timeout=10.0,
)
You can also pass default headers or a custom transport(url, headers, timeout) callable if you want the SDK to run through your own HTTP layer in tests or internal tooling.
Resource Coverage
The Python SDK wraps the same main surfaces as the TypeScript package:
healthusagemetadataseasonsteamsplayersgamesplayoff_gamesstandingsplayoffssuper_bowlshistoryhall_of_famecontributorsexecutivesstaffcoachesassetsall_star_gamesstats.playersreference
Errors
NFLMetaBadRequestErrorNFLMetaUnauthorizedErrorNFLMetaNotFoundErrorNFLMetaRateLimitErrorNFLMetaTimeoutErrorNFLMetaError
Escape Hatch
raw = client.get("/api/v1/reference/team-colors", query={"limit": 10})
print(raw.data)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nflmeta-0.1.0.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nflmeta-0.1.0.tar.gz.
File metadata
- Download URL: nflmeta-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d6f19e58d4fd2c357de2430485ab8e4941e634dc1459c68548966a87b0bd86
|
|
| MD5 |
462eb8a92c9981d193cd2828197da2ef
|
|
| BLAKE2b-256 |
cb2b688cc4fff3fcfeda8b465086d648ae90a4aa97a4ccbe278694fb9727a575
|
File details
Details for the file nflmeta-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nflmeta-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9164aeaaa8bc8682553a3049a78b99355bbaf00641377d50699e70992df23f83
|
|
| MD5 |
483f9ba172d8e65ddc5aacb7ed12512b
|
|
| BLAKE2b-256 |
46c6205ae55d57a1f69ea5d07b793f7ac1999dff12e29a76e04610781c89f5cf
|