Is there a way to use the blue alliance API to find the total amount of matches at an event?
“/event/{event_key}/matches” and count the number of elements returned in the API call. Should get you the answer. And you can add a filter in your code to count array elements that are labelled quals or playoff
also is there a way to create python code that updates data as soon as TBA data updates at an event?
Could be a better solution that I don’t know about, but the way I would do that would be to just keep making API calls. Request the data you want every x amount of time.
ok, thanks
You should be able to use the Cache-Control
header (and should unless you just ignore 304 codes) to determine how long your data is valid for.
You probably want to look into webhooks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.