FIRST-Tech-Challenge / FIRST-Tech-Challenge/scorekeeper

API: Get teams by country or home region

Open
#705 0 comments 1 reaction 0 assignees View on GitHub
enhancement ftc-events
Dominant language
No language data
Stars
110
Forks
26
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I was trying to get all the teams from Israel from the API. It looks like there is no query param that can get me all the teams by a country or home region, only by state.

**Describe the solution you'd like**
I would like to have a new query param(s) for `Team Listings`

`http://ftc-api.firstinspires.org/v2.0/{season}/teams?country=Israel`
`http://ftc-api.firstinspires.org/v2.0/{season}/teams?homeRegion=IL`

**Describe alternatives you've considered**
I tried to get the teams by state, but in Israel the states are just one or two letters represents the general area of where the team is located and does not really means anything... Also I feel like this solution is not really scallable because I can't really know what states are here in Israel (What states are registered in _FIRST_ systems)...

**Additional context**
I found the following webpage on the ftc-events`https://ftc-events.firstinspires.org/2023/region/IL` and I feel like it fits exactly my needs, I just could not figure out how to get the same data using the API

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.