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.
The stats source is available at https://api.statbits.io/chatmsg/bf2/stats/.
Supported platforms
Supported types
Identifiers
bf2hubplaybf2b2bf2
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.
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
{{{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
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.
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.
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.
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.