# The Blue Alliance API v3 API

> # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account).

The Blue Alliance API v3 is an open data API from thebluealliance.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 65 endpoints.

## At a glance

- Category: [Open Data](https://www.openparable.com/apis/category/open-data)
- Provider: thebluealliance.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://www.thebluealliance.com/api/v3
- Documentation: https://thebluealliance.com/
- OpenAPI description: https://api.apis.guru/v2/specs/thebluealliance.com/3.8.2/openapi.json
- Version: 3.8.2
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://www.thebluealliance.com/api/v3/status" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /district/{district_key}/events` — Gets a list of events in the given district.
- `GET /district/{district_key}/events/keys` — Gets a list of event keys for events in the given district.
- `GET /district/{district_key}/events/simple` — Gets a short-form list of events in the given district.
- `GET /district/{district_key}/rankings` — Gets a list of team district rankings for the given district.
- `GET /district/{district_key}/teams` — Gets a list of `Team` objects that competed in events in the given district.
- `GET /district/{district_key}/teams/keys` — Gets a list of `Team` objects that competed in events in the given district.
- `GET /district/{district_key}/teams/simple` — Gets a short-form list of `Team` objects that competed in events in the given district.
- `GET /districts/{year}` — Gets a list of districts and their corresponding district key, for the given year.
- `GET /event/{event_key}` — Gets an Event.
- `GET /event/{event_key}/alliances` — Gets a list of Elimination Alliances for the given Event.
- `GET /event/{event_key}/awards` — Gets a list of awards from the given event.
- `GET /event/{event_key}/district_points` — Gets a list of team rankings for the Event.
- `GET /event/{event_key}/insights` — Gets a set of Event-specific insights for the given Event.
- `GET /event/{event_key}/matches` — Gets a list of matches for the given event.
- `GET /event/{event_key}/matches/keys` — Gets a list of match keys for the given event.
- `GET /event/{event_key}/matches/simple` — Gets a short-form list of matches for the given event.
- `GET /event/{event_key}/matches/timeseries` — Gets an array of Match Keys for the given event key that have timeseries data. Returns an empty array if no matches have timeseries data.
- `GET /event/{event_key}/oprs` — Gets a set of Event OPRs (including OPR, DPR, and CCWM) for the given Event.
- `GET /event/{event_key}/predictions` — Gets information on TBA-generated predictions for the given Event. Contains year-specific information. *WARNING* This endpoint is currently under development an
- `GET /event/{event_key}/rankings` — Gets a list of team rankings for the Event.
- `GET /event/{event_key}/simple` — Gets a short-form Event.
- `GET /event/{event_key}/teams` — Gets a list of `Team` objects that competed in the given event.
- `GET /event/{event_key}/teams/keys` — Gets a list of `Team` keys that competed in the given event.
- `GET /event/{event_key}/teams/simple` — Gets a short-form list of `Team` objects that competed in the given event.
- `GET /event/{event_key}/teams/statuses` — Gets a key-value list of the event statuses for teams competing at the given event.
- `GET /events/{year}` — Gets a list of events in the given year.
- `GET /events/{year}/keys` — Gets a list of event keys in the given year.
- `GET /events/{year}/simple` — Gets a short-form list of events in the given year.
- `GET /match/{match_key}` — Gets a `Match` object for the given match key.
- `GET /match/{match_key}/simple` — Gets a short-form `Match` object for the given match key.
- `GET /match/{match_key}/timeseries` — Gets an array of game-specific Match Timeseries objects for the given match key or an empty array if not available.
- `GET /match/{match_key}/zebra_motionworks` — Gets Zebra MotionWorks data for a Match for the given match key.
- `GET /status` — Returns API status, and TBA status information.
- `GET /team/{team_key}` — Gets a `Team` object for the team referenced by the given key.
- `GET /team/{team_key}/awards` — Gets a list of awards the given team has won.
- `GET /team/{team_key}/awards/{year}` — Gets a list of awards the given team has won in a given year.
- `GET /team/{team_key}/districts` — Gets an array of districts representing each year the team was in a district. Will return an empty array if the team was never in a district.
- `GET /team/{team_key}/event/{event_key}/awards` — Gets a list of awards the given team won at the given event.
- `GET /team/{team_key}/event/{event_key}/matches` — Gets a list of matches for the given team and event.
- `GET /team/{team_key}/event/{event_key}/matches/keys` — Gets a list of match keys for matches for the given team and event.
- `GET /team/{team_key}/event/{event_key}/matches/simple` — Gets a short-form list of matches for the given team and event.
- `GET /team/{team_key}/event/{event_key}/status` — Gets the competition rank and status of the team at the given event.
- `GET /team/{team_key}/events` — Gets a list of all events this team has competed at.
- `GET /team/{team_key}/events/keys` — Gets a list of the event keys for all events this team has competed at.
- `GET /team/{team_key}/events/simple` — Gets a short-form list of all events this team has competed at.
- `GET /team/{team_key}/events/{year}` — Gets a list of events this team has competed at in the given year.
- `GET /team/{team_key}/events/{year}/keys` — Gets a list of the event keys for events this team has competed at in the given year.
- `GET /team/{team_key}/events/{year}/simple` — Gets a short-form list of events this team has competed at in the given year.
- `GET /team/{team_key}/events/{year}/statuses` — Gets a key-value list of the event statuses for events this team has competed at in the given year.
- `GET /team/{team_key}/matches/{year}` — Gets a list of matches for the given team and year.
- `GET /team/{team_key}/matches/{year}/keys` — Gets a list of match keys for matches for the given team and year.
- `GET /team/{team_key}/matches/{year}/simple` — Gets a short-form list of matches for the given team and year.
- `GET /team/{team_key}/media/tag/{media_tag}` — Gets a list of Media (videos / pictures) for the given team and tag.
- `GET /team/{team_key}/media/tag/{media_tag}/{year}` — Gets a list of Media (videos / pictures) for the given team, tag and year.
- `GET /team/{team_key}/media/{year}` — Gets a list of Media (videos / pictures) for the given team and year.
- `GET /team/{team_key}/robots` — Gets a list of year and robot name pairs for each year that a robot name was provided. Will return an empty array if the team has never named a robot.
- `GET /team/{team_key}/simple` — Gets a `Team_Simple` object for the team referenced by the given key.
- `GET /team/{team_key}/social_media` — Gets a list of Media (social media) for the given team.
- `GET /team/{team_key}/years_participated` — Gets a list of years in which the team participated in at least one competition.
- `GET /teams/{page_num}` — Gets a list of `Team` objects, paginated in groups of 500.
- `GET /teams/{page_num}/keys` — Gets a list of Team keys, paginated in groups of 500. (Note, each page will not have 500 teams, but will include the teams within that range of 500.)
- `GET /teams/{page_num}/simple` — Gets a list of short form `Team_Simple` objects, paginated in groups of 500.
- `GET /teams/{year}/{page_num}` — Gets a list of `Team` objects that competed in the given year, paginated in groups of 500.
- `GET /teams/{year}/{page_num}/keys` — Gets a list Team Keys that competed in the given year, paginated in groups of 500.
- `GET /teams/{year}/{page_num}/simple` — Gets a list of short form `Team_Simple` objects that competed in the given year, paginated in groups of 500.

## Questions

### Does the The Blue Alliance API v3 API need an API key?

Yes. The The Blue Alliance API v3 API uses API key authentication; the documentation explains how to get credentials.

### Does the The Blue Alliance API v3 API support HTTPS?

Yes, the The Blue Alliance API v3 API is served over HTTPS.

### How many endpoints does the The Blue Alliance API v3 API have?

Its OpenAPI description lists 65 endpoints in version 3.8.2. All of them are shown on this page.

### What are alternatives to the The Blue Alliance API v3 API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

## Similar open data APIs

- [Search Services](https://www.openparable.com/apis/search-services): API for Internet Archive's Search-related services
- [Wayback API](https://www.openparable.com/apis/wayback): API for Internet Archive's Wayback Machine
- [Wikipedia](https://www.openparable.com/apis/wikipedia): Mediawiki Encyclopedia
- [Nasdaq Data Link](https://www.openparable.com/apis/nasdaq-data-link): The source for financial, economic, and alternative datasets, serving investment professionals.
- [University of Oslo](https://www.openparable.com/apis/university-of-oslo): Courses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
- [Data API](https://www.openparable.com/apis/data): Serves the Clever Data API
- [Kaggle](https://www.openparable.com/apis/kaggle): Create and interact with Datasets, Notebooks, and connect with Kaggle
- [CollegeScoreCard.ed.gov](https://www.openparable.com/apis/collegescorecard-ed-gov): Data on higher education institutions in the United States
- [U.S. EPA Enforcement and Compliance History Online (ECHO) - All Data](https://www.openparable.com/apis/u-s-epa-enforcement-and-compliance-history-online-echo-all-data): Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide. ECHO Rest Services provide multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated as Clean Air Act (CAA) stationary sources, Clean Water Act (CWA) dischargers, Resource Conservation and Recovery Act (RCRA) hazardous waste generators/handlers, and Safe Drinking Water Act (SDWA) public water systems. Data of interest from other EPA sources, such as the Toxics Release Inventory, is also supplied for context. \ The get_facilities, get_map, get_qid, and get_download end points are meant to be used together, while the enhanced get_facility_info end point is self contained. The get_facility_info end point returns either an array of state, county or zip clusters with summary statistics per cluster or an array of facilities. \ The recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is: \ <b>1)</b> Use get_facilities to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes. <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of facility results. <b>3)</b> Use get_map, with the returned QID, to zoom in/out and pan on the clustered and individual facility coordinates that meet the QID query criteria. <b>4)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria. \ \ Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output. \ Additional ECHO Resources: <a href="https://echo.epa.gov/tools/web-services">Web Services</a>, <a href="https://echo.epa.gov/resources/echo-data/about-the-data">About ECHO's Data</a>, <a href="https://echo.epa.gov/tools/data-downloads">Data Downloads</a>
- [Authorized Partner API Specification](https://www.openparable.com/apis/authorized-partner-specification): To access files in user’s DigiLocker account from your application, you must first obtain user’s authorization.
- [GENESIS](https://www.openparable.com/apis/genesis): Federal Statistical Office Germany
- [Scoop.it](https://www.openparable.com/apis/scoop-it): Content Curation Service

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/the-blue-alliance-v3 (OpenParable). Cite the canonical URL above.
