Skip to content

kristiankunc/cube-api-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

CubeCraft API

REST(?) API accessible @ https://api.cubecraft.net/

Quick note! This is not a complete documentation. All resources have been documented by researching, discovering, bruteforcing, and trying stuff. As of the day I'm writing this, the CubeCraft API is not currently public, and the skins API is protected via Cloudflare's anti-bot protection. Plus, these docs are still a work in progress!

Table of contents


Root

Request

GET https://api.cubecraft.net/

Response

{"error":"Not authorized."}

Status code

403


Skins

Request

GET https://api.cubecraft.net/skins/

Response

3D render of a Steve skin

Status code

200

Parameters

If a parameter is invalid, the server will use the default one, instead of returning an error.

login

  • User UUID, must be dashed.
  • Type: string
  • Default: ? (outputs a Steve skin)

format

  • Choose the rendered image's format. As of now, it always defaults to PNG.
  • Type: string
  • Default: PNG

ratio

  • Modify the size of the image, while keeping the same aspect ratio.
  • Type: float (positives)
  • Default: 1

headOnly

  • Render only the user's head.
  • Type: bool
  • Default: false

displayHairs

  • Render the user's head overlay.
  • Type: bool
  • Default: true

a

  • Rotate the model on the x axis.
  • Type: float (positives and negatives, values are interpreted as degrees)
  • Default: -25

w

  • Rotate the model on the y axis.
  • Type: float (positives and negatives, values are interpreted as degrees)
  • Default: 35

parameters to examine: &wt=-45&abg=0&abd=-30&ajg=-25&ajd=30


Stats

Request

GET https://stats.cubecraft.net/socket.io/

Response

Stats of the currently online players on the CubeCraft Network

Response

  • Type: application/json
  • Status Code: 200

Content:

  • unique_sessions: amount of unique sessions made to the network (not working, returning 0)
    • today: today
    • total: total
  • online_count: amount of people currently online the Network
    • total: counting players on all platforms all together
    • bedrock: players on the bedrock server
    • java_19: players on the 1.12+ version of the Java server
    • java_18: players on the 1.8 version of the Java server (returning 0 since 1.8 is no longer supported on CubeCraft)

Parameters

A list if all know parameters for this request, if a parameter is invalid, the server will use the default one, instead of returning an error.

sid

  • Session ID, can be obtained at SID
  • Type: string
  • Default: ?
  • Required: False
  • Allowed options: session.io valid sid

transport

  • Info: socket.io transport protocol
  • Type: string
  • Default: None
  • Required: True
  • Allowed options: ["polling"]

EIO

  • Info: the current version of the engine.io protocol
  • Type: integer
  • Default: ? 3
  • Required: False
  • Allowed options: [1, 2, 3, 4]

t

  • Info: a hashed timestamp for cache-busting
  • Type: string
  • Default: ?
  • Required: False
  • Allowed options: yeast valid timestamp id

SID

socket.io session ID required to make arequest to the Stats API

Request

GET https://stats.cubecraft.net/socket.io/

Response

  • Type: application/json
  • Status Code: 200

Content:

  • sid: the unique session id
  • upgrades: the list of possible transport upgrades
  • pingInterval: the 1st parameter for the heartbeat mechanism
  • pingTimeout: the 2nd parameter for the heartbeat mechanism

Parameters

A list if all know parameters for this request, if a parameter is invalid, the server will use the default one, instead of returning an error.

transport

  • Info: socket.io transport protocol
  • Type: string
  • Default: None
  • Required: True
  • Allowed options: ["polling"]

EIO

  • Info: the current version of the engine.io protocol
  • Type: integer
  • Default: ? 3
  • Required: False
  • Allowed options: [1, 2, 3, 4]

t

  • Info: a hashed timestamp for cache-busting
  • Type: string
  • Default: ?
  • Required: False
  • Allowed options: yeast valid timestamp id

MemberSearch

Returns list of forums members based on your query

Request

GET https://www.cubecraft.net/index.php?members/find

Response

  • Type: application/json
  • Status Code: 200

Parameters

A list if all know parameters for this request, if a parameter is invalid, the server will use the default one, instead of returning an error.

q

  • Info: search query
  • Type: string
  • Default: None
  • Required: True
  • Allowed options: any string

_xfRequestUri

  • Info: request uri
  • Type: string
  • Default: None
  • Required: False
  • Allowed options: %2Fmembers%2F

_xfWithData

  • Info: ??
  • Type: integer
  • Default: 1
  • Required: False
  • Allowed options: 1

_xfToken

  • Info: authentication token
  • Type: string
  • Default: None
  • Required: True
  • Allowed options: valid auth token

_xfResponseType

  • Info: response type
  • Type: string
  • Default: None
  • Required: False
  • Allowed options: ["json"]

Ranks

Returns a rank of the provided player

Request

GET https://store-assets.cubecraft.net/v2/store_config.php

Response

  • Type: application/json
  • Status Code: 200

Parameters

A list if all know parameters for this request, if a parameter is invalid, the server will use the default one, instead of returning an error.

uuid

  • Info: uuid of a player
  • Type: string
  • Default: None
  • Required: True
  • Allowed options: any string

Docs written by The_TecnoKing#7293 & KristN#1234 & ᲼᲼#3205

About

cube-api-docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published