I’m trying to understand how to navigate the events tree. I get the top-level events through a simple get requests. I would have expected to simply add the “slug” to the request route, so for instance for tennis events I would have added /sport/tennis, but this doesn’t seem to work.
Perhaps more generally, I’d like to understand the syntax of the get requests with filters
You can simply append
parent_id to filter events by sports or competitions.
For example, use
https://api.smarkets.com/v3/events/?state=upcoming&type_domain=tennis for tennis
Parent ID for Champions League is
25363462 so you can use
https://api.smarkets.com/v3/events/?state=upcoming&parent_id=25363462 to get all upcoming matches in this competition
I hope that answers your question but let me know if not.