Subpage under development, new version coming soon!
Thema: »news XML Data Improvements
I don't think you can filter by country
However, you can easily get all the transfers quickly, I do it in a loop:
https://sokker.org/api/transfer?filter[limit]=200&filter[offset]=X
with X starting at 0 and then X += 195 until you get 0 transfers in response, then I remove all the duplicates from the list where I store them, and after that I put new ones in db.
I change offset by less than 200 to be sure that I won't miss any transfers (they change positions when other transfers finish / new transfers appear)
However, you can easily get all the transfers quickly, I do it in a loop:
https://sokker.org/api/transfer?filter[limit]=200&filter[offset]=X
with X starting at 0 and then X += 195 until you get 0 transfers in response, then I remove all the duplicates from the list where I store them, and after that I put new ones in db.
I change offset by less than 200 to be sure that I won't miss any transfers (they change positions when other transfers finish / new transfers appear)
What a nice api, spamming all available data :-)
Thanks for your answers guys ;-)
Thanks for your answers guys ;-)
kryminator an
juytt
just in case any of You don't know - here is new API swagger-like page: https://sokker.org/apidoc.html
This is not the thread about SO, try reading it here:
forum_topic/ID_forum/1259/ID_topic/3481864/pg/6
@kryminator thx! Finally an api to get the tactics of the team :D But I miss NT tactics there :/
(Edith war hier)
forum_topic/ID_forum/1259/ID_topic/3481864/pg/6
@kryminator thx! Finally an api to get the tactics of the team :D But I miss NT tactics there :/
(Edith war hier)
Just don't expect, every endpoint contains everything one would expect. Some probably don't work, some might be lacking some data returned (e.g. /lineup doesn't seems to return a lineup but does return some minor things), some might be stubs only. However, those which are used in sokker should work, except maybe deleting guestbook entries, but there is a task to fix it.
ramonymous an
juytt
If I use the following endpoint for a junior-league, it still returns max. 12 teams, regardless of the actual number of teams in the respective league:
/league/{leagueId}/table
This bug has existed eversince: Wouldn't this be very easy to fix?
.
(Edith war hier)
/league/{leagueId}/table
This bug has existed eversince: Wouldn't this be very easy to fix?
.
(Edith war hier)
maybe it would be but no one cares about junior leagues
junior leagues are just failure from the beginning, they never worked
but that EP has also a 'limit' filter, did You try that?
junior leagues are just failure from the beginning, they never worked
but that EP has also a 'limit' filter, did You try that?
nevermind, I have already checked on my junior league, it works, e.g. https://sokker.org/api/league/40532/table?filter%5Blimit%5D=99
here You have endpoints list:
https://sokker.org/apidoc.html
when You click on some endpoint you can further click schema to see some minor, but useful details
here You have endpoints list:
https://sokker.org/apidoc.html
when You click on some endpoint you can further click schema to see some minor, but useful details
Great, thank you very much :-). The endpoints list already helped me collecting data for my website in a simpler way. Btw: I now removed the login for sokker-manager.net (except for one section).
does anyone know how to use filter ids on endpoint GET /team/:teamId/player?
in the apidoc page I linked earlier, related description doesnt say much and examples there are non-existent
in the apidoc page I linked earlier, related description doesnt say much and examples there are non-existent
Edit: oh, filter ids. Didn't read it carefully :P
(Edith war hier)
(Edith war hier)