45 coaches online • Server time: 12:18
Forum Chat
Log in
Recent Forum Topics goto Post Speccing and Playing...goto Post Southern Wastes Leag...goto Post Theory-craft League
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
gsverhoeven



Joined: Oct 12, 2020

Post   Posted: Oct 28, 2021 - 22:29 Reply with quote Back to top

Hi there. I want to do some data analysis on recent match outcomes on FUMBBL in the Competitive division (BB2020).
I use the API interface to fetch the data, however, whereas the old XML interface returns the division for individual teams (i.e. https://fumbbl.com/xml:team?id=57340) , the API interface does not (https://fumbbl.com/api/team/get/57340).

It seems that division ID is only present when I request all the teams of a single coach (i.e. https://fumbbl.com/api/coach/teams/Christer). However, this means I have to fetch, for each coach that played in the last few weeks, ALL of their teams, potentially going years back, and keep only those teams (with their division ID) that i am actually interested in. This feels wasteful.

Am i missing something here? I am tempted to switch to the XML interface for this, but the API interface works really well so maybe division ID can be added to the team model in the API?
Christer



Joined: Aug 02, 2003

Post   Posted: Oct 29, 2021 - 11:00
FUMBBL Staff
Reply with quote Back to top

I can certainly add the division to the team endpoint. I can also add it to the match/list endpoint (which I'm surprised you don't mention as it should be the starting point for something like this).

As long as you ensure local caching so you don't repeatedly pull the same data over and over again and have some kind of throttling on the requests, it's not exactly the end of the world if you request all teams for a given coach, and only refresh if you encounter a new team id you haven't seen before.

Either way, feel free to get in touch with me on Discord to ask about API-related stuff.
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic