Site
Home / Forum / Developers / Usual way to fetch mtaches

Usual way to fetch mtaches


Posted: 11 May 2021 21:43
ichemmer
Posts: 13
Joined: 2021-05-11

At the moment i work on an addon for my forum.
To have some data to play with i have imported the data for a league from here with CSV.
Unfortunately it misses the the match_times.

Later i will try to use your api to fetch data directly to the tables, bit for testing i would like to have a csv.
Is there a way to get a league with the match_times, please?

Posted: 12 May 2021 20:31

zag
Posts: 3,329
Joined: 2020-03-23

You will need to use the API for this, as the CSV function is just for exporting data really.

Posted: 14 May 2021 02:36
ichemmer
Posts: 13
Joined: 2021-05-11

Thank you.

I have imported the countries by manual work.
From there i can import leagues now.
Also i can import teams.

Here i get data for the german Bundesliga:
https://www.thesportsdb.com/api/v1/json/1/lookuptable.php?l=4331&s=2020-2021

But here i get nothing for the german DFB Cup:
https://www.thesportsdb.com/api/v1/json/1/lookuptable.php?l=4485&s=2020-2021

When i try to fetch data for the teams, i get only 50 from 64 teams
https://www.thesportsdb.com/api/v1/json/1/lookup_all_teams.php?id=4485

I would like to pay when i am finished with programing, but what can we do with this 50 teams instead of 64?

Also i have a problem with the matches. I guess we have around 230+x matches in our leagues, but i can import only 100.
This is the reason why i have used the CSV; but then i need to walk through all matches to fetch the times.

Is there a way to fetch all matches for a league, please?


Posted: 14 May 2021 07:40

zag
Posts: 3,329
Joined: 2020-03-23

Yes free users are limited to 50 teams sorry. Patreon supporters are unlimited.

There is also no table for cup competitions.

Posted: 14 May 2021 13:59
ichemmer
Posts: 13
Joined: 2021-05-11

So the problem with the 64/50 is solved. Nice.
What's about the 100/230+ matches in aleague?
There is also no limit for paying clients?

Posted: 14 May 2021 14:19

zag
Posts: 3,329
Joined: 2020-03-23

So the problem with the 64/50 is solved. Nice.
What's about the 100/230+ matches in aleague?
There is also no limit for paying clients?

Correct no limits.


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