# Get profile ranks (/api-reference/steam/leaderboards/get-profile-ranks)

`GET /v1/profiles/{steamId}/ranks`

Where one profile stands on every board it's on, worldwide and in its country. A SteamID64 asks nothing of Steam; a profile URL or a custom URL name is looked up first. Costs 1 credit. Every plan includes it.

```json
{
  "servers": [
    {
      "url": "https://api.steambuff.app"
    }
  ],
  "paths": {
    "/v1/profiles/{steamId}/ranks": {
      "get": {
        "tags": [
          "Leaderboards"
        ],
        "operationId": "get-profile-ranks",
        "summary": "Get profile ranks",
        "description": "Where one profile stands on every board it's on, worldwide and in its country. A SteamID64 asks nothing of Steam; a profile URL or a custom URL name is looked up first.",
        "x-usage": {
          "credits": 1,
          "per": "call",
          "plan": "free",
          "planName": "Free"
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A SteamID64, a Steam Community profile URL or a custom URL name",
              "example": "76561198074762801"
            },
            "required": true,
            "description": "A SteamID64, a Steam Community profile URL or a custom URL name",
            "name": "steamId",
            "in": "path",
            "example": "{steamId}"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile's ranks",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "X-Credits-Limit": {
                "schema": {
                  "type": "integer",
                  "description": "The plan's monthly credits"
                },
                "required": true,
                "description": "The plan's monthly credits"
              },
              "X-Credits-Remaining": {
                "schema": {
                  "type": "integer",
                  "description": "Credits left in the current monthly window"
                },
                "required": true,
                "description": "Credits left in the current monthly window"
              },
              "X-Credits-Reset": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds until the credits reset"
                },
                "required": true,
                "description": "Seconds until the credits reset"
              },
              "X-Credits-Cost": {
                "schema": {
                  "type": "integer",
                  "description": "Credits this request cost; 0 when it didn't succeed"
                },
                "required": true,
                "description": "Credits this request cost; 0 when it didn't succeed"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "steamId": "76561198074762801",
                  "account": {
                    "value": 7043787,
                    "valuedAt": "2026-11-26T13:27:31.679Z",
                    "global": {
                      "rank": 1,
                      "total": 9723,
                      "top": 0.01,
                      "move": 2
                    },
                    "country": {
                      "code": "RU",
                      "rank": 1,
                      "total": 412,
                      "top": 0.24,
                      "move": 0
                    }
                  },
                  "games": {
                    "value": 184923,
                    "valuedAt": "2026-11-26T13:27:31.679Z",
                    "global": {
                      "rank": 1204,
                      "total": 6841,
                      "top": 17.6,
                      "move": -12
                    },
                    "country": {
                      "code": "RU",
                      "rank": 37,
                      "total": 288,
                      "top": 12.85,
                      "move": 2
                    }
                  },
                  "inventories": {
                    "all": {
                      "value": 6858864,
                      "valuedAt": "2026-11-26T13:27:31.679Z",
                      "global": {
                        "rank": 1,
                        "total": 8512,
                        "top": 0.01,
                        "move": 1
                      },
                      "country": {
                        "code": "RU",
                        "rank": 1,
                        "total": 377,
                        "top": 0.27,
                        "move": 0
                      }
                    },
                    "cs2": {
                      "value": 6858864,
                      "valuedAt": "2026-11-26T13:27:31.679Z",
                      "global": {
                        "rank": 1,
                        "total": 8496,
                        "top": 0.01,
                        "move": 1
                      },
                      "country": {
                        "code": "RU",
                        "rank": 1,
                        "total": 375,
                        "top": 0.27,
                        "move": 0
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProfileRanks"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, invalid or revoked",
            "content": {
              "application/json": {
                "examples": {
                  "API_KEY_MISSING": {
                    "summary": "No API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_MISSING",
                      "message": "Send your API key in the x-api-key header or as Authorization: Bearer <key>.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "API_KEY_INVALID": {
                    "summary": "An invalid or revoked API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_INVALID",
                      "message": "The API key is invalid or has been revoked.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No Steam account has that id, or it hasn't been looked up on Steambuff",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "NOT_FOUND",
                  "message": "That profile hasn't been looked up on Steambuff.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "A parameter is invalid; `details` lists each failure",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "VALIDATION_ERROR",
                  "message": "Request validation failed",
                  "details": [
                    {
                      "path": "steamId",
                      "message": "Too big: expected string to have <=200 characters"
                    }
                  ],
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests this minute, or this month's credits are used up",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds to wait before retrying"
                },
                "required": true,
                "description": "Seconds to wait before retrying"
              }
            },
            "content": {
              "application/json": {
                "examples": {
                  "RATE_LIMITED": {
                    "summary": "Too many requests this minute",
                    "value": {
                      "error": true,
                      "code": "RATE_LIMITED",
                      "message": "The Free plan allows 10 requests per minute.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "MONTHLY_QUOTA_EXCEEDED": {
                    "summary": "This month's credits are used up",
                    "value": {
                      "error": true,
                      "code": "MONTHLY_QUOTA_EXCEEDED",
                      "message": "The Free plan's 1,000 monthly credits are used up. They reset at 2026-12-01T00:00:00.000Z. A bigger plan has more: https://steambuff.app/api.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Steam didn't answer, turned the read away (`STEAM_RATE_LIMITED`) or has no key set here",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "STEAM_UNAVAILABLE",
                  "message": "Steam is unavailable right now (HTTP 502).",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ProfileRanks": {
        "type": "object",
        "properties": {
          "steamId": {
            "type": "string",
            "description": "SteamID64",
            "example": "76561198034202275"
          },
          "account": {
            "$ref": "#/components/schemas/BoardRank"
          },
          "games": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BoardRank"
              },
              {
                "description": "On `/v1/leaderboards/games`"
              }
            ]
          },
          "inventories": {
            "type": "object",
            "properties": {
              "all": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BoardRank"
                  },
                  {
                    "description": "On `/v1/leaderboards/inventories`"
                  }
                ]
              },
              "cs2": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BoardRank"
                  },
                  {
                    "description": "Where it stands on one board; null when it isn't on it, as a private inventory"
                  }
                ]
              }
            },
            "required": [
              "all",
              "cs2"
            ],
            "description": "`all` on `/v1/leaderboards/inventories`, each game on `/v1/leaderboards/inventories/{game}`"
          }
        },
        "required": [
          "steamId",
          "account",
          "games",
          "inventories"
        ]
      },
      "BoardRank": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "value": {
            "type": "integer",
            "description": "Its value on the board as last read, integer USD cents",
            "example": 6858864
          },
          "valuedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When `value` was read"
          },
          "global": {
            "$ref": "#/components/schemas/GlobalRank"
          },
          "country": {
            "$ref": "#/components/schemas/CountryRank"
          }
        },
        "required": [
          "value",
          "valuedAt",
          "global",
          "country"
        ],
        "description": "On `/v1/leaderboards/account`"
      },
      "GlobalRank": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer",
            "description": "Its place: the profiles above it, plus one; ties share it",
            "example": 57
          },
          "total": {
            "type": "integer",
            "description": "The profiles ranked",
            "example": 9723
          },
          "top": {
            "type": "number",
            "description": "`rank` over `total`, percent to two places: 0.59 is the top 0.59%",
            "example": 0.59
          },
          "move": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Places it climbed over the past 30 days, negative when it fell; null without a rank from then",
            "example": 3
          }
        },
        "required": [
          "rank",
          "total",
          "top",
          "move"
        ],
        "description": "Its place among every profile on the board"
      },
      "CountryRank": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Its country, ISO 3166-1 alpha-2, as the profile states it",
            "example": "RU"
          },
          "rank": {
            "type": "integer",
            "description": "Its place: the profiles above it, plus one; ties share it",
            "example": 57
          },
          "total": {
            "type": "integer",
            "description": "The profiles ranked",
            "example": 9723
          },
          "top": {
            "type": "number",
            "description": "`rank` over `total`, percent to two places: 0.59 is the top 0.59%",
            "example": 0.59
          },
          "move": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Places it climbed over the past 30 days, negative when it fell; null without a rank from then",
            "example": 3
          }
        },
        "required": [
          "code",
          "rank",
          "total",
          "top",
          "move"
        ],
        "description": "Its place among the profiles from its country; null when it states none"
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {},
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code",
          "message"
        ]
      }
    }
  }
}
```