Parent_ID - can't find leagues

Firstly - love the API. Very clear structure.

I am struggling though to find the area where the ParentIDs are defined. They relate to competition but I cant find the area where I can query that.

Thanks

Hey,

I’m glad to hear you’re liking the API!

I’m not quite sure I understand your question. Do you mean you’re struggling to find the ID for something like Seria A, Premier League or other competitions?

I can find the ID - but can’t see what that links to. so what call would i use to bring back what league the parent id 30371165 refers to. I can work it out by taking the full slug in events and trimming it but there must be a cleaner way?

You can get the name of the competition by calling the parent id in GET /v3/events/

say https://api.smarkets.com/v3/events/30371165/

1 Like

Thanks!!