Site
Home / Forum / Developers / Proper way to fetch players...

Proper way to fetch players...


Posted: 22 Sep 2024 16:00
sgtslaughta


Posts: 2
Joined: 2024

For team (https://www.thesportsdb.com/team/137123-England-Rugby), I am attempting to get all the players (the webpage shows many listed in the browser). When using '/api/v1/json/3/lookup_all_players.php?id=137123', nothing is returned. Is it because those players have England listed as their 2nd team? How can I search that value? Thanks

Posted: 22 Sep 2024 21:50

zag


Posts: 3,511
Joined: 2020

For team (https://www.thesportsdb.com/team/137123-England-Rugby), I am attempting to get all the players (the webpage shows many listed in the browser). When using '/api/v1/json/3/lookup_all_players.php?id=137123', nothing is returned. Is it because those players have England listed as their 2nd team? How can I search that value? Thanks

Yes that call only lists the players who have a primary (1st) team.

Posted: 23 Sep 2024 17:17
sgtslaughta


Posts: 2
Joined: 2024

Thank you, what would you recommend to get a list of players that have the team ID as their 2nd and 3rd teams?

Posted: 24 Sep 2024 15:50

zag


Posts: 3,511
Joined: 2020

Thank you, what would you recommend to get a list of players that have the team ID as their 2nd and 3rd teams?

We don't support that currently. Mainly because the 2nd and 3rd teams are always changing and are not guaranteed to be up to date such as national teams.

If more people help with keeping that data up-to-date I would consider adding it.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 4 (Total: 4)