All URIs are relative to https://api.gametools.network
| Method | HTTP request | Description |
|---|---|---|
| bf2_status_array_bf2_statusarray_get | GET /bf2/statusarray/ | Get historic player-/server amounts (gathered every hour) |
| bf2_status_bf2_status_get | GET /bf2/status/ | Get the current player-/server amount |
| bf2classes_bf2_classes_get | GET /bf2/classes/ | Get class/kit stats for the given player |
| bf2leaderboard_bf2_leaderboard_get | GET /bf2/leaderboard/ | Get leaderboard of bf2 |
| bf2servers_bf2_servers_get | GET /bf2/servers/ | Get a list of servers based on given name or ip:port |
| bf2stats_bf2_stats_get | GET /bf2/stats/ | Get general stats for the given player |
| bf2vehicles_bf2_vehicles_get | GET /bf2/vehicles/ | Get vehicle stats for the given player |
| bf2weapons_bf2_weapons_get | GET /bf2/weapons/ | Get weapon stats for the given player |
| logged_server_data_bf2_serverarray_get | GET /bf2/serverarray/ | Get the servers playeramount over time |
models::StatusArray bf2_status_array_bf2_statusarray_get(service, days) Get historic player-/server amounts (gathered every hour)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service | Option<Bf2Platform> | Platform/service to get amounts for | [default to bf2hub] | |
| days | Option<i32> | Number of days to get historic values for | [default to 7] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::OlderGameStatus bf2_status_bf2_status_get(service) Get the current player-/server amount
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service | Option<Bf2PlatformAll> | Platform/service to get amounts from | [default to all] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::Bf2ClassStats bf2classes_bf2_classes_get(name, playerid, platform) Get class/kit stats for the given player
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | Option<String> | Name of the player to get stats for | ||
| playerid | Option<i32> | ID of the player to get stats for | ||
| platform | Option<Bf2Platform> | Platform/service the player uses | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::Bf2Leaderboard bf2leaderboard_bf2_leaderboard_get(platform) Get leaderboard of bf2
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| platform | Option<Bf2Platform> | Platform/service to use for the leaderboard | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::OlderTitleSearch bf2servers_bf2_servers_get(name, r#type, service) Get a list of servers based on given name or ip:port
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | IP:port or hostname/servername of the server you want to search for | [required] | |
| r#type | Option<LegacyBfQueryType> | Type of server property you want to search for | [default to hostname] | |
| service | Option<Bf2Platform> | Service/platform the server uses | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::Bf2MainStats bf2stats_bf2_stats_get(name, playerid, platform) Get general stats for the given player
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | Option<String> | Name of the player to get stats for | ||
| playerid | Option<i32> | ID of the player to get stats for | ||
| platform | Option<Bf2Platform> | Platform/service the player uses | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::Bf2VehicleStats bf2vehicles_bf2_vehicles_get(name, playerid, platform) Get vehicle stats for the given player
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | Option<String> | Name of the player to get stats for | ||
| playerid | Option<i32> | ID of the player to get stats for | ||
| platform | Option<Bf2Platform> | Platform/service the player uses | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::Bf2WeaponStats bf2weapons_bf2_weapons_get(name, playerid, platform) Get weapon stats for the given player
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | Option<String> | Name of the player to get stats for | ||
| playerid | Option<i32> | ID of the player to get stats for | ||
| platform | Option<Bf2Platform> | Platform/service the player uses | [default to bf2hub] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serde_json::Value logged_server_data_bf2_serverarray_get(name, r#type, service, days) Get the servers playeramount over time
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | IP:port or hostname/servername of the server you want to search for | [required] | |
| r#type | Option<LegacyBfQueryType> | Type of server property you want to search for | [default to hostname] | |
| service | Option<Bf2Platform> | Platform/service to get amounts for | [default to bf2hub] | |
| days | Option<i32> | Number of days to get historic values for | [default to 7] |
serde_json::Value
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]