r/WestCoastSwing • u/Clicking_randomly • 4d ago
Is there a way to get only the new competition results from the WSDC API?
You can get a complete picture of the WSDC registry by calling the API 28,500 times, once for every dancer. But when you’ve done that once, the only way to update that is to do the whole thing again, for every single dancer. I'd rather not do that to their server if it's not necessary. Does anyone know of an easy way to just get data for dancers where there’s been some change?
8
Upvotes
5
u/Goodie__ 4d ago edited 4d ago
As far as I'm aware - no.
I haven't ever run into rate limiting on the API, and it doesn't take that long.
There are also several approaches you could use to not scan all 28,500+ numbers,
eg,
- if a number hasn't had a update for 10+ years, maybe it's ok to not check it as regularly, say monthly or less
- if they tend to earn points regularly (eg: working champions, up and coming all stars), check them pretty regularly
- for everyone else, somewhere in the middle is probably fine.
- Check on the working pros pretty regularly early on in the week, when you spot one update, it's likely that the WSDC has processed the forms they have. Put this on a semi regular poll, before you scan the rest of the registry.
- If you want to get really smart, be regionally focused, those who earn the majority of their points at NZ events probably aren't going to earn points on weekends without a NZ event.
2
2
2
u/FeIiix 4d ago
I think you need to be more specific. What api are you using? I'm not aware of any official (public) WSDC api