Transfermarkt Scraper
ENDPOINTS
Player Details
Search
Advanced Player Search
Player Market Value History
Player Transfers
Player Season Stats
Player Match Log
Player National Team Career
Player Injuries
Player Achievements
Player Squad Numbers
Player Transfer Rumours
Player Upcoming Matches
Club Details
Club Squad
Club Transfers
Club Fixtures & Results
Club Squad Statistics
Club Staff
Club Stadium
Club Achievements
Club Historical Placements
Club Transfer Records
Club National Team Players
List Competitions
Competition Details
Competition Standings
Competition Top Scorers
Competition Matchday
Competition Fixtures
Competition Transfers
Competition Most Valuable Players
Competition Club Values
Competition Rumours
Match Details
Match Line-ups
Match Statistics
Manager Details
Manager Career
Manager Achievements
Latest Transfers
Transfer Records
Latest Rumours
Most Valuable Players
Latest Market Value Changes
Contracts Expiring
Free Agents
Most Valuable Clubs
FIFA World Ranking
Countries
Positions
/players/national-teamPlayer National Team Career
Caps, goals, debut and totals for every senior and youth national team the player played for.
QUERY PARAMS
Transfermarkt player ID or any transfermarkt.com player URL.
Examples:
- ID:
28003 - URL:
https://www.transfermarkt.com/lionel-messi/profil/spieler/28003
{
"player_id": 28003,
"count": 3,
"teams": [
{
"team": {
"id": 3437,
"name": "Argentina",
"short_name": "Argentina",
"link": "https://www.transfermarkt.com/argentina/startseite/verein/3437",
"crest": "https://img.a.transfermarkt.technology/flagge/original/9.png",
"country": {
"id": 9,
"name": "Argentina",
"code": "ARG"
},
"is_national_team": true
},
"debut": "2005-08-17",
"last_match": "2026-07-19",
"age_at_debut": 18,
"matches": 280,
"appearances": 207,
"starts": 185,
"minutes_played": 17120,
"goals": 125,
"assists": 68,
"own_goals": 0,
"penalty_goals": 25,
"yellow_cards": 9,
"second_yellow_cards": 0,
"red_cards": 2,
"substituted_in": 22,
"substituted_out": 27,
"in_squad_unused": 8,
"not_in_squad": 33,
"injured": 27,
"wins": 140,
"draws": 34,
"losses": 33,
"average_rating": null,
"minutes_per_goal": 137
},
{
"team": {
"id": 11940,
"name": "Argentina U20",
"short_name": "Argentina U20",
"link": "https://www.transfermarkt.com/argentina-u20/startseite/verein/11940",
"crest": "https://img.a.transfermarkt.technology/flagge/original/9.png",
"country": {
"id": 9,
"name": "Argentina",
"code": "ARG"
},
"is_national_team": true
},
"debut": "2004-06-29",
"last_match": "2005-07-01",
"age_at_debut": 17,
"matches": 18,
"appearances": 18,
"starts": 10,
"minutes_played": 1182,
"goals": 14,
"assists": 4,
"own_goals": 0,
"penalty_goals": 2,
"yellow_cards": 2,
"second_yellow_cards": 0,
"red_cards": 0,
"substituted_in": 8,
"substituted_out": 3,
"in_squad_unused": 0,
"not_in_squad": 0,
"injured": 0,
"wins": 13,
"draws": 4,
"losses": 1,
"average_rating": null,
"minutes_per_goal": 84
},
{
"team": {
"id": 53819,
"name": "Argentina Olympic Team",
"short_name": "Argentina",
"link": "https://www.transfermarkt.com/argentina-olympic-team/startseite/verein/53819",
"crest": "https://img.a.transfermarkt.technology/flagge/original/9.png",
"country": {
"id": 9,
"name": "Argentina",
"code": "ARG"
},
"is_national_team": true
},
"debut": "2008-08-07",
"last_match": "2008-08-23",
"age_at_debut": 21,
"matches": 6,
"appearances": 5,
"starts": 5,
"minutes_played": 480,
"goals": 2,
"assists": 3,
"own_goals": 0,
"penalty_goals": 0,
"yellow_cards": 1,
"second_yellow_cards": 0,
"red_cards": 0,
"substituted_in": 0,
"substituted_out": 3,
"in_squad_unused": 1,
"not_in_squad": 0,
"injured": 0,
"wins": 5,
"draws": 0,
"losses": 0,
"average_rating": null,
"minutes_per_goal": 240
}
]
}