All URIs are relative to https://www.thebluealliance.com/api/v3
| Method | HTTP request | Description |
|---|---|---|
| getDistrictEvents | GET /district/{district_key}/events | |
| getDistrictEventsKeys | GET /district/{district_key}/events/keys | |
| getDistrictEventsSimple | GET /district/{district_key}/events/simple | |
| getDistrictRankings | GET /district/{district_key}/rankings | |
| getDistrictTeams | GET /district/{district_key}/teams | |
| getDistrictTeamsKeys | GET /district/{district_key}/teams/keys | |
| getDistrictTeamsSimple | GET /district/{district_key}/teams/simple | |
| getEventTeams | GET /event/{event_key}/teams | |
| getEventTeamsKeys | GET /event/{event_key}/teams/keys | |
| getEventTeamsSimple | GET /event/{event_key}/teams/simple | |
| getEventTeamsStatuses | GET /event/{event_key}/teams/statuses | |
| getEventsByYear | GET /events/{year} | |
| getEventsByYearKeys | GET /events/{year}/keys | |
| getEventsByYearSimple | GET /events/{year}/simple | |
| getTeamEventsStatusesByYear | GET /team/{team_key}/events/{year}/statuses | |
| getTeams | GET /teams/{page_num} | |
| getTeamsByYear | GET /teams/{year}/{page_num} | |
| getTeamsByYearKeys | GET /teams/{year}/{page_num}/keys | |
| getTeamsByYearSimple | GET /teams/{year}/{page_num}/simple | |
| getTeamsKeys | GET /teams/{page_num}/keys | |
| getTeamsSimple | GET /teams/{page_num}/simple |
[Event] getDistrictEvents(districtKey, opts)
Gets a list of events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictEvents(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getDistrictEventsKeys(districtKey, opts)
Gets a list of event keys for events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictEventsKeys(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[EventSimple] getDistrictEventsSimple(districtKey, opts)
Gets a short-form list of events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictEventsSimple(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[DistrictRanking] getDistrictRankings(districtKey, opts)
Gets a list of team district rankings for the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictRankings(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Team] getDistrictTeams(districtKey, opts)
Gets a list of `Team` objects that competed in events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictTeams(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getDistrictTeamsKeys(districtKey, opts)
Gets a list of `Team` objects that competed in events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictTeamsKeys(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[TeamSimple] getDistrictTeamsSimple(districtKey, opts)
Gets a short-form list of `Team` objects that competed in events in the given district.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let districtKey = "districtKey_example"; // String | TBA District Key, eg `2016fim`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getDistrictTeamsSimple(districtKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| districtKey | String | TBA District Key, eg `2016fim` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Team] getEventTeams(eventKey, opts)
Gets a list of `Team` objects that competed in the given event.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let eventKey = "eventKey_example"; // String | TBA Event Key, eg `2016nytr`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventTeams(eventKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| eventKey | String | TBA Event Key, eg `2016nytr` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getEventTeamsKeys(eventKey, opts)
Gets a list of `Team` keys that competed in the given event.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let eventKey = "eventKey_example"; // String | TBA Event Key, eg `2016nytr`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventTeamsKeys(eventKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| eventKey | String | TBA Event Key, eg `2016nytr` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[TeamSimple] getEventTeamsSimple(eventKey, opts)
Gets a short-form list of `Team` objects that competed in the given event.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let eventKey = "eventKey_example"; // String | TBA Event Key, eg `2016nytr`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventTeamsSimple(eventKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| eventKey | String | TBA Event Key, eg `2016nytr` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
{String: TeamEventStatus} getEventTeamsStatuses(eventKey, opts)
Gets a key-value list of the event statuses for teams competing at the given event.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let eventKey = "eventKey_example"; // String | TBA Event Key, eg `2016nytr`
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventTeamsStatuses(eventKey, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| eventKey | String | TBA Event Key, eg `2016nytr` | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Event] getEventsByYear(year, opts)
Gets a list of events in the given year.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventsByYear(year, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getEventsByYearKeys(year, opts)
Gets a list of event keys in the given year.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventsByYearKeys(year, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[EventSimple] getEventsByYearSimple(year, opts)
Gets a short-form list of events in the given year.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getEventsByYearSimple(year, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
{String: TeamEventStatus} getTeamEventsStatusesByYear(teamKey, year, opts)
Gets a key-value list of the event statuses for events this team has competed at in the given year.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let teamKey = "teamKey_example"; // String | TBA Team Key, eg `frc254`
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamEventsStatusesByYear(teamKey, year, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamKey | String | TBA Team Key, eg `frc254` | |
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Team] getTeams(pageNum, opts)
Gets a list of `Team` objects, paginated in groups of 500.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeams(pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Team] getTeamsByYear(year, pageNum, opts)
Gets a list of `Team` objects that competed in the given year, paginated in groups of 500.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamsByYear(year, pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getTeamsByYearKeys(year, pageNum, opts)
Gets a list Team Keys that competed in the given year, paginated in groups of 500.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamsByYearKeys(year, pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[TeamSimple] getTeamsByYearSimple(year, pageNum, opts)
Gets a list of short form `Team_Simple` objects that competed in the given year, paginated in groups of 500.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let year = 56; // Number | Competition Year (or Season). Must be 4 digits.
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamsByYearSimple(year, pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| year | Number | Competition Year (or Season). Must be 4 digits. | |
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[String] getTeamsKeys(pageNum, opts)
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.)
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamsKeys(pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
[String]
- Content-Type: Not defined
- Accept: application/json
[TeamSimple] getTeamsSimple(pageNum, opts)
Gets a list of short form `Team_Simple` objects, paginated in groups of 500.
import TbaApiV3client from 'tba-api-v3client';
let defaultClient = TbaApiV3client.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
let apiInstance = new TbaApiV3client.ListApi();
let pageNum = 56; // Number | Page number of results to return, zero-indexed
let opts = {
'ifModifiedSince': "ifModifiedSince_example" // String | Value of the `Last-Modified` header in the most recently cached response by the client.
};
apiInstance.getTeamsSimple(pageNum, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| pageNum | Number | Page number of results to return, zero-indexed | |
| ifModifiedSince | String | Value of the `Last-Modified` header in the most recently cached response by the client. | [optional] |
- Content-Type: Not defined
- Accept: application/json