API-FOOTBALL

부분 유료
Verified
분류별 API-SPORTS | 업데이트됨 לפני 7 ימים | Sports
인기

10 / 10

지연 시간

367ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

Player current team

Rapid account: Adrenalinemedia
adrenalinemedia
לפני שנתיים

Hello,

Player is associated with more than one teams… Just an example, Griffiths (player id - 1136) played for 7 teams…

How to get the current team a player is playing?

Please let us know. Thanks in advance.

Rapid account: Api Sports
api-sports Commented לפני שנתיים

Hi,

You have the endpoint “players/squads” for that : https://www.api-football.com/documentation-v3#operation/get-players-squads

{
get: "players/squads"
parameters: {

player: "1136"

}
errors: [

]
results: 1
paging: {

current: 1
total: 1

}
response: [
{
team: {

id: 253
name: "Dundee"
logo: "https://media.api-sports.io/football/teams/253.png"

}
players: [
{

                id: 1136
                name: "L. Griffiths"
                age: 31
                number: 29
                position: "Attacker"
                photo: "https://media.api-sports.io/football/players/1136.png"
            }
        ]
    }
]

}

Best

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입