GitPedia

Transfermarkt api

API service to get data from Transfermarkt

From felipeall·Updated June 13, 2026·View on GitHub·

This project provides a lightweight and easy-to-use interface for extracting data from [Transfermarkt](https://www.transfermarkt.com/) by applying web scraping processes and offering a RESTful API service via FastAPI. With this service, developers can seamlessly integrate Transfermarkt data into their applications, websites, or data analysis pipelines. The project is written primarily in Python, distributed under the MIT License license, first published in 2023. Key topics include: fastapi, football, players, scraper, soccer.

Latest release: v3.0.0
December 29, 2024View Changelog →

transfermarkt-api

This project provides a lightweight and easy-to-use interface for extracting data from Transfermarkt
by applying web scraping processes and offering a RESTful API service via FastAPI. With this service, developers can
seamlessly integrate Transfermarkt data into their applications, websites, or data analysis pipelines.

Please note that the deployed application is used only for testing purposes and has a rate limiting
feature enabled. If you'd like to customize it, consider hosting in your own cloud service.

API Swagger

https://transfermarkt-api.fly.dev/

Running Locally

bash
# Clone the repository $ git clone https://github.com/felipeall/transfermarkt-api.git # Go to the project's root folder $ cd transfermarkt-api # Instantiate a Poetry virtual env $ poetry shell # Install the dependencies $ poetry install --no-root # (optional) Append the current directory to PYTHONPATH $ export PYTHONPATH=$PYTHONPATH:$(pwd) # Start the API server $ python app/main.py # Access the API local page $ open http://localhost:8000/

Running via Docker

bash
# Clone the repository $ git clone https://github.com/felipeall/transfermarkt-api.git # Go to the project's root folder $ cd transfermarkt-api # Build the Docker image $ docker build -t transfermarkt-api . # Instantiate the Docker container $ docker run -d -p 8000:8000 transfermarkt-api # Access the API local page $ open http://localhost:8000/

Environment Variables

VariableDescriptionDefault
RATE_LIMITING_ENABLEEnable rate limiting feature for API callsfalse
RATE_LIMITING_FREQUENCYDelay allowed between each API call. See slowapi for more2/3seconds

Contributors

Showing top 4 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from felipeall/transfermarkt-api via the GitHub API.Last fetched: 6/15/2026