Skip to main content

Documentation Index

Fetch the complete documentation index at: https://rocks.docs.rive.wtf/llms.txt

Use this file to discover all available pages before exploring further.

Every API key is tied to one IP. To apply for a key, DM southctrl on Discord.
Use the endpoint path below, replace the required params, and send Authorization: Bearer YOUR_API_KEY.

Quick Start

1

Get a Leetify invite link

Use a public Leetify invite URL or the invite ID from that URL.
2

Call the CS2 route

Send a request to /api/cs2/invite?invite=....
3

Read the match data

Use the response for match summary, top players, team stats, and related match links.
This route currently uses public Leetify invite pages, not direct username lookup.

Get Invite Match Data

Get rendered CS2 match data from a public Leetify invite page.

Endpoint

GET /api/cs2/invite

Query Parameters

invite
string
required
Leetify invite URL or invite ID.

Example Request

curl -X GET "https://rocks.rive.wtf/api/cs2/invite?invite=b4ac9051-c827-4677-ab2b-1453d61e472c" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "ok": true,
  "data": {
    "invite_url": "https://leetify.com/invite/b4ac9051-c827-4677-ab2b-1453d61e472c",
    "page_title": "Leetify – CS2 Stats & Accomplishments",
    "scrape_source": "rendered leetify invite page",
    "match_summary": {
      "result": "VICTORY",
      "score": "13:9",
      "map": "Ancient",
      "ruleset": "MR12",
      "played_at": "2023-12-05 17:29",
      "achievements_count": 3,
      "highlights_count": 1,
      "headline_highlight": {
        "round": 6,
        "label": "HE Grenade 4K"
      }
    },
    "top_players": [
      {
        "place": "1ST",
        "player": "Croc49",
        "leetify_rating_delta": 8.49
      }
    ],
    "team_table": [
      {
        "player": "Croc49",
        "leetify_rating_delta": 8.49,
        "hltv_rating": 1.38,
        "kd": 1.61,
        "adr": 115,
        "aim": 86,
        "utility_rating": 67
      }
    ],
    "compare_profiles": [
      {
        "player": "s1mple",
        "matches_played": 3947,
        "highest_kills": 43,
        "longest_win_streak": 8,
        "win_rate": "72%",
        "top_skills": [
          "The",
          "Laser The Flash"
        ],
        "aim": 99,
        "utility": 67,
        "positioning": 74,
        "clutching": 13.04,
        "opening_duels": 3.23,
        "leetify_rating": 5.54
      }
    ],
    "match_links": [
      "https://leetify.com/app/match-details/9279958e-3ded-41eb-9388-ab2b8662e708"
    ],
    "supported_sources": [
      "Matchmaking",
      "FACEIT",
      "Gamers Club",
      "CYBERSHOKE",
      "Esplay"
    ]
  }
}

Response Fields

ok
boolean
Whether the request was successful.
data
object
Parsed match data from the rendered Leetify invite page.
FieldTypeDescription
invite_urlstringFinal Leetify invite URL used for the request
page_titlestringPublic page title from Leetify
scrape_sourcestringSource used to build the response
match_summaryobjectCore match details like result, score, map, and time
top_playersarrayTop three players and their Leetify rating deltas
team_tablearrayTeam player rows with rating, HLTV, K/D, ADR, aim, and utility
compare_profilesarrayExtra compare cards shown on the page
best_messagesarrayRaw highlight and accomplishment messages found on the page
match_linksarrayRelated Leetify match links found on the page
supported_sourcesarrayPlatforms shown on the public Leetify page
body_previewstringRaw rendered text preview for debugging

match_summary Fields

FieldTypeDescription
resultstringMatch result such as VICTORY
scorestringFinal score string
mapstringMap name
rulesetstringMatch format, such as MR12
played_atstringMatch timestamp shown on the page
achievements_countnumberNumber of achievements shown
highlights_countnumberNumber of highlights shown
headline_highlightobjectMain highlight block with round and label

team_table Object

FieldTypeDescription
playerstringPlayer name as shown on the page
leetify_rating_deltanumberLeetify rating change
hltv_ratingnumberHLTV rating shown in the table
kdnumberKill/death ratio
adrnumberAverage damage per round
aimnumberAim score
utility_ratingnumberUtility score
Public Leetify pages can change layout at any time, so minor field differences are possible.
Pass either the full invite URL or just the invite ID. The API normalizes it for you.