Site
Home / Forum / Developers / I got first 50 results, how to get all or next 50 ?

I got first 50 results, how to get all or next 50 ?


Posted: 14 Jan 2020 20:26

geost77
Posts: 2
Joined: Jan 2020

Hi all,

I am still testing. And oneof my tests was to get teams here:
https://www.thesportsdb.com/api/v1/json ... hp?id=4479

This return first 50 teams only, while when I check page for that same division - there are lot more than 50, after last one API returl "Delaware":
https://www.thesportsdb.com/league/4479-NCAA-Division-1

How to change API url call to get them all/next 50 ? I see nothing about that in API examples or any DOCs.

Posted: 14 Jan 2020 22:43

zag
Posts: 1,558
Joined: Oct 2016

If you are using the test key then its indeed limited to 50 results.

Patreon supporters don't have the same limits.

NCAA division is quite unique as there are so many teams! Most other leagues should be fine in testing.

Posted: 16 Jan 2020 09:19

geost77
Posts: 2
Joined: Jan 2020

Thanks for clarification. I will get real key (Patreon) later, as for now I was just testing. And wanted to be sure it works. If real key have no such limitation - perfetc, as in general I am interested exactly of that NCAA division.

Posted: 04 Feb 2020 06:06

etzool
Posts: 3
Joined: Feb 2020

I went through the source looking for pagination, but that doesn't seem to be supported either.

So to clarify... [i:2sh8a0s1]access to the API[/i:2sh8a0s1] is technically free for non-subscribers, but you can't actually get full sets of results on some/many/most calls?

Posted: 04 Feb 2020 06:17

etzool
Posts: 3
Joined: Feb 2020

I see now what's published is a client, not the server source (would just edit that last post, but I can't do that until/unless it's approved). So never mind on that count.

I also see that pagination has been shot down, which is really weird for any kind of API, but I guess that's just how it is.

Posted: 04 Feb 2020 11:17

zag
Posts: 1,558
Joined: Oct 2016

I also see that pagination has been shot down, which is really weird for any kind of API, but I guess that's just how it is.

Yeh i'm not a fan of Pagination, I prefer all results to be returned. Of course when I designed the API the site was a lot smaller!!

The API has been designed to be as simple as possible to use, with a nice free tier for anyone to get started

Posted: 04 Feb 2020 23:17

etzool
Posts: 3
Joined: Feb 2020

The API and site will always remain free at point of access. If you love our service and find this site useful you can sign up as a Patreon supporter for $5 or more to get special features such as livescores. You can cancel anytime. This allows us to pay for the servers and bandwidth and develop new features.
...pretty clearly implies that free users can use the endpoints that aren't marked as special features. If you don't want to change that copy to make it more clear that "free at point of access" does not mean "fully functioning," it seems to me you should at least document the hard result limits.

Posted: 05 Feb 2020 08:42

zag
Posts: 1,558
Joined: Oct 2016

Good point, I will do.

For a little history, those hard limits used to apply to both free and supporter tiers.

Its only now that we have huge NHL seasons or NCAA team lists that we actually hit those limits

Some supporters requested we make it unlimited so we did.


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