2022 tba api

I am looking into pulling the match specific score details from TBA for scouting purposes. Currently I am not finding the webhook to initiate the pull of match scoring detail. I have the overall match score but really would like to see climb points as well as balls scored. Based on the documentation i have looked at, I thought this webhook would work. https://www.thebluealliance.com/api/v3/event/2022mifor_qm1/score_breakdown
Has anyone had success?

1 Like
  1. That’s not a webhook, it’s an API endpoint. It’s a bit pendantic, but TBA also has webhooks and the confusion is occasional.

  2. You’re using the event endpoint router (or just path for this context), but that key itself pertains to the match endpoint. As such, you’d be looking at /api/v3/match/2022mifor_qm1 to get closer to what you want.

  3. score_breakdown is a subkey within the dictionary available for that endpoint. If you poke at the above, you can see it like so (and there are more endpoints):
    image

To see the full 2022 breakdowns in a friendlier format, you might want to take a look at the API Docs here (scroll to the bottom and click “Match_Score_Breakdown_2022_Alliance”)

Hope this helps!

2 Likes

You’re using /event but then putting in a match. Change /event to /match and remove /score_breakdwn

Edit: sniped by Kim’s much more comprehensive response

1 Like

You are a wizard. Should have come here a couple days ago. I knew it existed and therefore just enjoyed beating my head endlessly against a wall Thanks for the help!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.