API-FOOTBALL

फ्रीमियम
Verified
द्वारा API-SPORTS | अपडेट किया गया il y a 5 jours | Sports
लोकप्रियता

10 / 10

लेटेंसी

384ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Player current team

Rapid account: Adrenalinemedia
adrenalinemedia
il y a 2 ans

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 il y a 2 ans

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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें