Skip to main content

Python API wrapper for Transfermarkt undocumented API

Project description

TMKT - Transfermarkt API Wrapper

A Python wrapper for the Transfermarkt API, providing easy access to football (soccer) data including players, clubs, competitions, transfers, and more.

Features

  • Player Data: Transfers, injuries, profiles
  • Club Data: Squads, stadiums, transfers
  • Competition Data: Tables, participating clubs
  • Search Functionality: Players, clubs, leagues
  • Clean Data Parsing: Automatic HTML-to-text conversion for search results

Installation

pip install transfermarkt-wrapper

Example usage

from tmkt import TMKT
import asyncio

import json

async def main():
    async with TMKT() as tmkt:
        # Search for a league
        leagues = await tmkt.league_search("Premier League")
        print(json.dumps(leagues, indent = 4))

        # Get player data
        player = await tmkt.get_player(433177)  # Bukayo Saka
        print(json.dumps(player, indent = 4))

asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transfermarkt_wrapper-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transfermarkt_wrapper-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file transfermarkt_wrapper-0.0.1.tar.gz.

File metadata

  • Download URL: transfermarkt_wrapper-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for transfermarkt_wrapper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 906490c98d17d25519bb5ec1aafba2348663673db1754ddeffc766ba87958ee6
MD5 160483c9e04bee5000bdc1e46d7ae011
BLAKE2b-256 d2520364debb6e88d7792a60c2695e712c176396bd427ed939198850f15fe5bb

See more details on using hashes here.

File details

Details for the file transfermarkt_wrapper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for transfermarkt_wrapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a14f3d42c54edec9c2ea6b4927576fdc34ab01a79e48d9b4010da85e7926abec
MD5 6ad255e742a6630ad9bcf06b43388cab
BLAKE2b-256 4ecb527a4768578f08d0ae1226b89da1dd79bcd055c3c56f0a3bfca27d523c58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page