Site
Home / Forum / Developers / List all teams by league AND season

List all teams by league AND season


Posted: 20 May 2020 14:01

chromeq
Posts: 8
Joined: May 2020

Due to issues with my current data provider I'm really interested in switching over to using your API.
I'm looking at your list all teams by league id: https://www.thesportsdb.com/api/v1/json ... hp?id=4328
It returns all 20 teams in the current season, but can there be a new option to pass &s=1819 where it will return the league teams for that season?

Also, can you tell me difference between the lookup_all_teams.php and search_all_teams.php endpoints?
Thanks

Posted: 20 May 2020 21:45

zag
Posts: 1,558
Joined: Oct 2016

Due to issues with my current data provider I'm really interested in switching over to using your API.
I'm looking at your list all teams by league id: https://www.thesportsdb.com/api/v1/json ... hp?id=4328
It returns all 20 teams in the current season, but can there be a new option to pass &s=1819 where it will return the league teams for that season?

Also, can you tell me difference between the lookup_all_teams.php and search_all_teams.php endpoints?
Thanks


I don't think we actually store teams per season but we might be able to work it out from the historical events. I will look into it but currently this is not available.

Lookup and search only differ by ID or name search. ID is a lot quicker and should be used if the ID is known.

Posted: 22 May 2020 10:02

chromeq
Posts: 8
Joined: May 2020

It would be great to work it out from historical data, perhaps the league table is the best hack I can use for now until it is available.
What tech and languages do you use cos I'd be glad to help out and contribute to the project.

Posted: 22 May 2020 11:00

zag
Posts: 1,558
Joined: Oct 2016

It would be great to work it out from historical data, perhaps the league table is the best hack I can use for now until it is available.
What tech and languages do you use cos I'd be glad to help out and contribute to the project.


Good old PHP and Mysql here

I'm currently playing with Laravel though.

We are always happy with any help, particularly any libraries for our API or importer scripts for events.

Posted: 22 May 2020 11:23

chromeq
Posts: 8
Joined: May 2020

Been a while since I PHP'd or SQL'd, more of a front end JS/Node guy here. But if I can knock off the rust then I'd happily attempt a few bits if your project is open source or have a github or trello to contribute to?

Posted: 22 May 2020 17:14

zag
Posts: 1,558
Joined: Oct 2016

Been a while since I PHP'd or SQL'd, more of a front end JS/Node guy here. But if I can knock off the rust then I'd happily attempt a few bits if your project is open source or have a github or trello to contribute to?

Thanks I will invite you to our Trello project management thing so you can look it over, maybe you can get some ideas from there.

The code isn't open source (yet), just because its quite a mess but there is lots of low hanging fruit that can be completed without the need for the main source.

The sites importers for example take standard CSV or JSON inputs for events.

Posted: 22 May 2020 21:00

zag
Posts: 1,558
Joined: Oct 2016

Link to our Trello

https://trello.com/b/PMumZYQg/thesportsdb


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 7 (Total: 7)