felipeall / transfermarkt-api Goto Github PK
View Code? Open in Web Editor NEWAPI service to get data from Transfermarkt
Home Page: https://transfermarkt-api.fly.dev
License: MIT License
API service to get data from Transfermarkt
Home Page: https://transfermarkt-api.fly.dev
License: MIT License
Hi @felipeall,
I wanted to ask if there's away to add a fullname property to the payload for a player's profile (or to point me to another endpoint if it's supported elsewhere ?), or if I'm missing some field somewhere.
For example for this player I couldn't get the player's firstname from the payload. So far the only way I found to get the fullname is by querrying the club's players' endpoint, but that's not always feasible.
Thanks in advance.
Retrieving the marketValueHistory of a player via https://github.com/felipeall/transfermarkt-api/blob/main/app/api/endpoints/players.py#L29 is not be working any more.
It seems that no high charts page exists any more in the HTML response, which is where the code expects the market value history information to live: https://github.com/felipeall/transfermarkt-api/blob/main/app/services/players/market_value.py#L56
Thanks for this great repo.
It seems the API is broken now when I access it via https://transfermarkt-api.vercel.app/competitions/GB1/clubs, see:
.
The recent release of the Get Player Stats endpoint, returns a 500 status code when searching for a goalkeeper.
Because the Player Stats information on Transfermarkt is ordered differently for goalkeepers in comparison to other players. Goalkeepers have two extra columns:
Examples:
Goalkeeper: https://www.transfermarkt.com/-/leistungsdatendetails/spieler/50219
Field player: https://www.transfermarkt.com/-/leistungsdatendetails/spieler/137576
Proposal:
Enable code to handle Goalkeepers by also extracting Goals Conceded and Clean Sheets when avaiable. Do this by first recognizing whether player is a Goalkeeper or Field Player, before extraction.
Hi!
Thanks for creating such a great tool and making it available for everyone (:
I'm wondering if you have in plan to add an API to request Player Achievements. I'm working on a quiz app and this would be highly appreciated.
I saw that you already started the work to create an endpoint to retrieve statistics for a player: https://github.com/felipeall/transfermarkt-api/tree/feature/player-stats
What work still needs to be done to complete this? Do you need any help on this?
Curl
curl -X 'GET'
'https://transfermarkt-api.vercel.app/competitions/search/LaLiga?page_number=1'
-H 'accept: application/json'
Request URL
https://transfermarkt-api.vercel.app/competitions/search/LaLiga?page_number=1
Server response
Code Details
500
Undocumented
Error: response status is 500
Response body
Download
{
"error": {
"code": "500",
"message": "A server error has occurred"
}
}
Hello, i've been experimenting your api on python for a few days and liked it a lot. found it would be cool to add a Transfer History feature.
Hi,
Player transfer data doesn't appear to work. It only seems to show youth clubs information.
Thanks :)
Hi, thank you very much for making this. There are many tools out there, this I think this looks fresh and pretty useful!
What do you think about adding these two endpoints?
By adding these two endpoints I think the value of this app increases quite a lot
Hi!
Thanks a lot for making this project, I have fun playing with your api ;)
It seems there is some issue with players/{playerId}/profile
and players/{playerId}/stats
endpoints (response status is 404):
{
"detail": "Invalid request (url: https://www.transfermarkt.com/-/profil/spieler/1)"
}
All the best!
Is there a way of getting live scores from live matches?
Hey -- first of all, thanks for this. Awesome work.
I'd like to point out an issue i've run into. It seems that the player list for any team is always incomplete. For example, using Austin FC as a reference - it will scrape 21 names with the following python code:
`import requests
import csv
url = 'http://localhost:8000/clubs/72309/players?season_id=2023'
headers = {'accept': 'application/json'}
response = requests.get(url, headers=headers)
data = response.json()`
In Transfermarkt, it seems to stop right at Memo Rodriguez:
This is replicable with other teams as well. Is there something that I am doing wrong?
I appreciate your time working on this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.