Skip to content

Battlefield 2

For Battlefield 2, we currently offer message templates based on the following sources:

  • aspxstats/stats: Overall player stats, including statistics per weapon and vehicle category
  • bflist/live: Live, in-round player stats, focused on the current performance on the battelfield

You can find more info about sources here.

Want to skip ahead to adding chat commands?

If you want to start creating and adding statbits-based commands to Nightbot, Streamlabs or StreamElements, check out our command builder. It provides a simple, graphical way of building a customized command for your chatbot of choice.

Stats source#

The stats source is available at https://api.statbits.io/chatmsg/bf2/stats/.

Supported platforms Supported types Identifiers
bf2hub playbf2 b2bf2 players {{playerId}}:{{playerName}}

This source can automatically determine a player's id if only a playerName was given. In order to use this feature, provide only the player's name as the identifiers parameter. You should, however, provide the playerId if you can, since determining the id requires us to make an extra API call, resulting a slightly delayed reponse.

You can find details on how to find your player id below.

Templates#

General statistics#

Template name Content
_link You can find a more detailed overview of {{{name}}}'s stats here: {{{value}}}
accuracy {{{name}}} has an overall accuracy of {{value}}%
hours {{{name}}} played BF2 for a total of {{value.hoursPlayed}}h {{value.minutesPlayed}}m
kd {{{name}}} has an overall k/d ratio of {{value.kdRatio}}
kills {{{name}}} killed {{value}} enemies
rank {{{name}}}'s current rank is: {{value.rankLabel}} ({{value.rank}})
summary-short-a {{{name}}}'s BF2 stats: {{value.hoursPlayed}}h {{value.minutesPlayed}}m played, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% accuracy
Template name Content
_link Eine detailliertere Übersicht über {{{name}}}s Statistiken findest Du hier: {{{value}}}
accuracy {{{name}}}s Treffsicherheit liegt insgesamt bei {{value}}%
hours {{{name}}} hat insgesamt {{value.hoursPlayed}}h {{value.minutesPlayed}}m lang BF2 gespielt
kd {{{name}}} hat insgesamt eine k/d von {{value.kdRatio}}
kills {{{name}}} hat {{value}} Gegner getötet
rank {{{name}}}s aktueller Rang ist: {{value.rankLabel}} ({{value.rank}})
summary-short-a {{{name}}}s BF2-Statistiken: {{value.hoursPlayed}}h {{value.minutesPlayed}}m gespielt, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% Genauigkeit
Template name Content
_link Puedes encontrar una descripción más detallada de las estadísticas de {{{name}}} aquí: {{{value}}}
accuracy {{{name}}} tiene una precisión global de {{value}}%
hours {{{name}}} jugado BF2 durante un total de {{value.hoursPlayed}}h {{value.minutesPlayed}}m
kd {{{name}}} tiene una relación k/d global de {{value.kdRatio}}
kills {{{name}}} muertos {{value}} enemigos
rank El rango actual de {{{name}}} es: {{value.rankLabel}} ({{value.rank}})
summary-short-a Estadísticas BF2 de {{{name}}}: {{value.hoursPlayed}}h {{value.minutesPlayed}}m jugadas, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% de precisión
Template name Content
_link Vous trouverez ici un aperçu plus détaillé des statistiques de {{{name}}}: {{{value}}}
accuracy {{{name}}} a une précision globale de {{value}}%
hours {{{name}}} joué BF2 pour un total de {{value.hoursPlayed}}h {{value.minutesPlayed}}m
kd {{{name}}} a un rapport k/d global de {{value.kdRatio}}
kills {{{name}}} tué {{value}} ennemis
rank Le rang actuel de {{{name}}} est: {{value.rankLabel}} ({{value.rank}})
summary-short-a Statistiques BF2 de {{{name}}}: {{value.hoursPlayed}}h {{value.minutesPlayed}}m jouées, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% de précision
Template name Content
_link Puoi trovare una panoramica più dettagliata delle statistiche di {{{name}}} qui: {{{value}}}
accuracy {{{name}}} ha una precisione complessiva di {{value}}%
hours {{{name}}} ha giocato BF2 per un totale di {{value.hoursPlayed}}h {{value.minutesPlayed}}m
kd {{{name}}} ha un rapporto k/d complessivo di {{value.kdRatio}}
kills {{{name}}} uccisi {{value}} nemici
rank {{{name}}}s rango attuale è: {{value.rankLabel}} ({{value.rank}})
summary-short-a Statistiche BF2 di {{{name}}}: {{value.hoursPlayed}}h {{value.minutesPlayed}}m giocato, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% accuratezza
Template name Content
_link Você pode encontrar uma visão geral mais detalhada das estatísticas de {{{name}}} aqui: {{{value}}}
accuracy {{{name}}} tem uma precisão geral de {{value}}%
hours {{{name}}} jogou BF2 por um total de {{value.hoursPlayed}}h {{value.minutesPlayed}}m
kd {{{name}}} tem uma relação k/d global de {{value.kdRatio}}
kills {{{name}}} matou {{value}} inimigos
rank A classificação atual do {{{name}}} é: {{value.rankLabel}} ({{value.rank}})
summary-short-a Estatísticas BF2 de {{{name}}}: {{value.hoursPlayed}}h {{value.minutesPlayed}}m jogadas, {{value.kdRatio}} K/D, {{value.scorePerMinute}} SPM, {{value.killsPerMinute}} KPM, {{value.accuracy}}% precisão

Weapon category statistics#

These templates are generic, please find a list of applicable weapon categories below.

Template name Content
weapon-cat-summary Using {{{label}}}, {{{name}}} killed {{value.kills}} hostiles with {{value.accuracy}}% accuracy ({{value.killsPerMinute}} KPM)
Template name Content
weapon-cat-summary {{{name}}} hat mit {{{label}}} {{value.kills}} Gegner mit einer Treffgenauigkeit von {{value.accuracy}}% eliminiert ({{value.killsPerMinute}} KPM)
Template name Content
weapon-cat-summary Usando el {{{label}}}, {{{name}}} mató a {{value.kills}} enemigos con {{value.accuracy}}% de precisión ({{value.killsPerMinute}} KPM)
Template name Content
weapon-cat-summary En utilisant {{{label}}}, {{{name}}} tué {{value.kills}} hostiles avec {{value.accuracy}} % de précision ({{value.killsPerMinute}} KPM)
Template name Content
weapon-cat-summary Usando {{{label}}}, {{{name}}} uccisi {{value.kills}} ostili con {{value.accuracy}}% di accuratezza ({{value.killsPerMinute}} KPM)
Template name Content
weapon-cat-summary Usando {{{label}}}, {{{name}}} matou {{value.kills}} hostis com {{value.accuracy}}% precisão ({{value.killsPerMinute}} KPM)

Vehicle category statistics#

These templates are generic, please find a list of applicable vehicle categories below.

Template name Content
vehicle-cat-summary {{{name}}} killed {{value.kills}} and roadkilled {{value.roadKills}} hostiles with {{{label}}} in {{value.hoursIn}}h {{value.minutesIn}}m total
Template name Content
vehicle-cat-summary {{{name}}} hat mit {{{label}}} in {{value.hoursIn}}h {{value.minutesIn}}m insgesamt {{value.kills}} Gegner ausgeschaltet und {{value.roadKills}} weiter überfahren
Template name Content
vehicle-cat-summary {{{name}}} mató a {{value.kills}} y atropelló {{value.roadKills}} hostiles con {{{label}}} en {{value.hoursIn}}h {{value.minutesIn}}m totales
Template name Content
vehicle-cat-summary {{{name}}} tué {{value.kills}} et écrasé {{value.roadKills}} hostiles avec {{{label}}} en {{value.hoursIn}}h {{value.minutesIn}}m au total
Template name Content
vehicle-cat-summary {{{name}}} ha ucciso {{value.kills}} e investito {{value.roadKills}} nemici con {{{label}}} in {{value.hoursIn}}h {{value.minutesIn}}m totali
Template name Content
vehicle-cat-summary {{{name}}} matou {{value.kills}} e atropelado {{value.roadKills}} hostis com {{{label}}} em {{value.hoursIn}}h {{value.minutesIn}}m no total

Objects#

The following object types and objects are available for the stats source generic templates.

Weapon categories#

This list contains all available objects of the weapon-category type.

URL Slug Message label
anti-tank-weapons Anti-Tank Weapons
assault-rifles Assault Rifles
carbines Carbines
defibrillators Defibrillators
explosives Explosives
grenade-launchers Grenade Launchers
grenades Grenades
knifes Knifes
lmgs LMGs
pistols Pistols
shotguns Shotguns
smgs SMGs
sniper-rifles Sniper Rifles

Vehicle categories#

This list contains all available objects of the vehicle-category type.

URL Slug Message label
armor Armor
helicopters Helicopters
jets Jets
mobile-stationary-aas Mobile/Stationary AAs
stationaries Stationary Weapons
transports Transports

Live source#

The live source is available at https://api.statbits.io/chatmsg/bf2/live/.

Supported platforms Supported types Identifiers
pc players {{playerName}}

Templates#

Template name Content
deaths {{{name}}} has died {{value}} times so far this round
kd {{{name}}} currently has a k/d of {{value.kills}}/{{value.deaths}}
kills {{{name}}} has {{value}} kills so far
map The current map is: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} currently plays with {{value}}ms ping
score {{{name}}} currently has {{value}} points
server {{{name}}} currently plays on: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} currently has {{value.score}} points, {{value.kills}} kills, died {{value.deaths}} times and plays with {{value.ping}}ms ping
team {{{name}}} currently plays on the {{value}} team
Template name Content
deaths {{{name}}} ist in dieser Runde bisher {{value}} mal gestorben
kd {{{name}}} hat aktuell eine k/d von {{value.kills}}/{{value.deaths}}
kills {{{name}}} hat bisher {{value}} Gegner eliminiert
map Die aktuelle Karte ist: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} spielt aktuell mit {{value}}ms Ping
score {{{name}}} hat aktuell {{value}} Punkte
server {{{name}}} spielt gerade auf: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} hat aktuell {{value.score}} Punkte, hat {{value.kills}} Gegner eliminiert, ist {{value.deaths}} mal gestorben und spielt mit {{value.ping}}ms Ping
team {{{name}}} spielt aktuell im {{value}} Team
Template name Content
deaths {{{name}}} ha muerto {{value}} veces hasta ahora esta ronda
kd {{{name}}} tiene actualmente un k/d de {{value.kills}}/{{value.deaths}}
kills {{{name}}} tiene {{value}} muertes hasta ahora
map El mapa actual es: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} juega actualmente con {{value}}ms ping
score {{{name}}} tiene actualmente {{value}} puntos
server {{{name}}} se reproduce actualmente en: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} tiene actualmente {{value.score}} puntos, {{value.kills}} muertes, murió {{value.deaths}} veces y juega con {{value.ping}}ms ping
team {{{name}}} juega actualmente en el equipo {{value}}
Template name Content
deaths {{{name}}} est mort {{value}} fois jusqu'à présent ce tour
kd {{{name}}} a actuellement un k/d de {{value.kills}}/{{value.deaths}}
kills {{{name}}} a {{value}} tue jusqu'à présent
map La carte actuelle est: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} joue actuellement avec {{value}}ms ping
score {{{name}}} a actuellement {{value}} points
server {{{name}}} joue actuellement sur: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} a actuellement {{value.score}} points, {{value.kills}} tue, est mort {{value.deaths}} fois et joue avec {{value.ping}}ms ping
team {{{name}}} joue actuellement dans l'équipe {{value}}
Template name Content
deaths {{{name}}} è morto {{value}} volte finora in questo round
kd {{{name}}} attualmente ha un k/d di {{value.kills}}/{{value.deaths}}
kills {{{name}}} ha {{value}} uccisioni finora
map La mappa corrente è: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} attualmente gioca con {{value}}ms ping
score {{{name}}} attualmente ha {{value}} punti
server {{{name}}} attualmente gioca su: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} attualmente ha {{value.score}} punti, {{value.kills}} uccide, è morto {{value.deaths}} volte e gioca con {{value.ping}}ms ping
team {{{name}}} attualmente gioca nella squadra {{value}}
Template name Content
deaths {{{name}}} morreu {{value}} vezes até agora nesta rodada
kd {{{name}}} atualmente tem um k/d de {{value.kills}}/{{value.deaths}}
kills {{{name}}} tem {{value}} mata até agora
map O mapa atual é: {{{value.mapName}}} ({{value.mapSize}})
ping {{{name}}} atualmente joga com {{value}}ms ping
score {{{name}}} atualmente tem {{value}} pontos
server {{{name}}} atualmente joga em: {{{value.name}}} (https://bf2.tv/servers/{{value.ip}}:{{value.port}})
summary {{{name}}} atualmente tem {{value.score}} pontos, {{value.kills}} mata, morreu {{value.deaths}} vezes e joga com {{value.ping}}ms ping
team {{{name}}} atualmente joga na equipe {{value}}

Finding your player id#

You can find your player id on BF2Hub or using "What's my pid?".

Using "What's my pid?"#

Go to whats-my-pid.cetteup.com. Select Battlefield 2, select your platform (BF2Hub/PlayBF2/B2BF2) and enter your in-game name. Click "Look it up" and copy the numeric pid you get back.

Works for BF2Hub, PlayBF2 and B2BF2 players.

Using BF2Hub#

Go to BF2Hub.com and enter your in-game name in the Search playername field at the top. Once you are on your profile page, look at the url bar in your browser. It should show a URL similar to https://www.bf2hub.com/stats/500362798. The number behind stats/ is your player id.

Only works for BF2Hub players.

Using PlayBF2#

Go to bf2.tgamer.ru and enter % followed by your in-game name in the Search player by ID or Nick field. Find your account in the list of results. Your player id can be found in the most right column called PID.

Note: You can switch the site's language from Russian to English using the dropdown and button in the bottom left corner.

Only works for PlayBF2 players.

Using B2BF2#

Go to b2bf2.net and enter your in-game name in the Search Players field. Once you are on your profile page, your player id will be shows as Phoenix ID below your account name.

Only works for B2BF2 players.