Skip to main content

Get started

Six steps from signing up to the first match. The API is at https://api.bemvp.net/v1, every method is in the API reference.

1. Sign up​

  1. Sign up in the partner cabinet.
  2. Confirm your email with the link from the message. After confirmation your balance gets 100 ₽ in bonuses, which you can spend on the paid tariff.

2. Choose a tariff​

On the "Tariff" page choose the free or the paid tariff. Without a tariff no API key can be created, and the API answers 403 with reason: no_tariff.

  • Free: enter the address of a public page of your site that has the BeMVP link. The ready link code is on the same page, under "BeMVP link code". Rules: The BeMVP link.
  • Paid: choose how your players are shown on bemvp.net (public or closed) and top up the balance.

The tariff applies to the whole account and all keys, and you can change it at any time. Prices and terms: Tariffs and prices.

3. Create an API key​

On the "API Tokens" page create a key and tick its abilities. The key is shown once, so save it.

AbilityAllows
readGET /v1/players, GET /v1/players/{steam_id}, GET /v1/players/{steam_id}/games, GET /v1/games/{game}, GET /v1/link-kit
create and updatePUT /v1/players/{steam_id}, which needs both
deleteDELETE /v1/players/{steam_id}

A new key gets create, read and update by default. Add delete: you need it to remove a player who withdrew consent.

Send the key with every request. The Accept: application/json header is optional, since the API answers JSON without it, but it is good to send:

Authorization: Bearer YOUR_API_TOKEN
Accept: application/json

4. Connect a player​

Before you send us a player's codes, tell the player that their Steam and match data goes to BeMVP and may be public on bemvp.net, and get their consent. This is a condition of the offer (section 9, in Russian); its appendix has a ready text for players.

Where the player gets the codes​

The player opens the "Access to your match history" page in Steam (Steam Support → CS2 → match history) and copies:

  • the authentication code, like AAAA-AAAAA-AAAA (if there is none yet, it is created on the same page);
  • the code of the latest match, like CSGO-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx.

You also need the player's SteamID64: 17 digits, for example 76561198000000000. The easiest way is to take it from Steam sign-in on your site.

The request​

PUT /v1/players/76561198000000000 HTTP/1.1
Host: api.bemvp.net
Authorization: Bearer YOUR_API_TOKEN
Accept: application/json
Content-Type: application/json

{
"auth_code": "1FT2-LK9NE-640G",
"last_known_code": "CSGO-GADqf-jjyJ8-cSP2r-smZRo-TO2xK"
}

The same with curl:

curl -X PUT https://api.bemvp.net/v1/players/76561198000000000 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"auth_code":"1FT2-LK9NE-640G","last_known_code":"CSGO-GADqf-jjyJ8-cSP2r-smZRo-TO2xK"}'

We check the codes with Steam right away. If they are fine, the response has the player (201 for a new one, 200 if you updated the codes):

{
"data": {
"state": "active",
"auth_code": "1FT2-LK9NE-640G",
"last_known_code": "CSGO-GADqf-jjyJ8-cSP2r-smZRo-TO2xK",
"steam_id": 76561198000000000,
"created_at": "2026-11-29T10:00:00.000000Z",
"updated_at": "2026-11-29T10:00:00.000000Z"
}
}

Good to know:

  • We track the matches played after the match in last_known_code. Older matches do not come.
  • PUT creates the player or updates their codes, so repeating it is safe.
  • Codes that Steam rejects give 422. Steam code checks are limited to 50 an hour on the free tariff and 300 on the paid one; above the limit you get 429. All response codes: API errors.
  • If the player changes the authentication code in Steam, the player's state becomes invalid_steam_id_or_key or invalid_known_code, and polling of that player stops. Ask the player for new codes and send PUT again.
  • If the player withdrew consent, delete them: DELETE /v1/players/{steam_id}. It always works, even during a suspension.

5. Set up the webhook​

On the "Webhook settings" page enter the address for the matches (https:// only) and the webhook token, at least 16 characters; the cabinet suggests a random one. Save.

6. Receive game_parsed​

When a match of your player is parsed, your address gets a POST with the game_parsed event. Your handler should:

  1. verify the request signature: see Verifying signatures;
  2. drop a repeat if an update with this id was already processed;
  3. answer with any 2xx within 10 seconds and do heavy work afterwards.

A minimal PHP handler:

$body = file_get_contents('php://input');
$timestamp = $_SERVER['HTTP_X_NICKNAME_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_NICKNAME_SIGNATURE'] ?? '';

$expected = 'sha256='.hash_hmac('sha256', $timestamp.'.'.$body, $webhookToken);

if (! hash_equals($expected, $signature) || abs(time() - (int) $timestamp) > 300) {
http_response_code(401);
exit;
}

$update = json_decode($body, true);

if ($update['event'] === 'game_parsed' && ! alreadyProcessed($update['id'])) {
saveGame($update['payload']['game'], $update['payload']['player']);
}

http_response_code(200);

The event format is in game_parsed; retries and disabling are in Webhooks.

Questions​

Write to hello@bemvp.net or Telegram @hello_bemvp_net.