Skip to content

getGJSongInfo.php

Gets info about a newgrounds song.

Parameters

ParameterExplanationRequired
songIDThe newgrounds ID of the song you want information aboutYes
secretCommon Secret: Wmfd2893gb7Yes
gameVersionA number representing the game's version. The current value is 22 for 2.2
binaryVersionA number representing the game's small version. The current value is 47 for 2.2081 on PC and 48 for 2.208 on mobile
udidThe player's UDID (Unique Device Identifier). Used to identify unregistered users
uuidIn modern versions, this is sent as the user ID. See the previous format here
dvsA number added in 2.208 representing the device the player is using. Corresponds to the Cocos2d CC_TARGET_PLATFORM macro: 1 for iOS, 2 for Android, 3 for Windows, 8 for macOS
accountIDThe player's account ID (not to be confused with user ID). Used for authorization
gjp2The player's account password, encoded with GJP2. Used for authorization

Response

A song object with ~|~ as the delimiter.

Error code -1 indicates a general error ("Failed to fetch song info"), usually meaning the song ID is invalid.
Error code -2 indicates the song is not allowed for use.

Example

Python

py
import requests

data = {
    "secret": "Wmfd2893gb7",
    "songID": 803223
}

req = requests.post("https://www.boomlings.com/database/getGJSongInfo.php", data=data)
print(req.text)

Response

py
1~|~803223~|~2~|~Xtrullor - Arcana~|~3~|~2159~|~4~|~Xtrullor~|~5~|~8.81~|~6~|~~|~10~|~https%3A%2F%2Faudio.ngfiles.com%2F803000%2F803223_Xtrullor---Arcana.mp3%3Ff1524940372~|~7~|~UCejLri1RVC7kj8ZVNX2a53g