Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sample queries:
- /prod/steam/query_levels?app_id=230270&steam_id=76561198025195712&user_id=162041&steam_auth=&qt=7&mode=0&page=0&player_id=0
- /prod/steam/search/levels?app_id=230270&steam_id=76561198025195712&user_id=162041&steam_auth=&search=enr&mode=0&page=0&player_id=0
- My own query:
- https://dojo.nplusplus.ninja/prod/steam/query_levels?steam_id=76561198031272062&steam_auth=&qt=7&mode=0&page=0
- \\ --- Queries ---
- +---------------+------------------------------------------------------------+
- | NAME | DESCRIPTION |
- +---------------+------------------------------------------------------------+
- | get_scores | Returns leaderboard data for a specific level. |
- | get_replay | Returns replay data for a specific run. |
- | query_levels | Returns a list of userlevels from a specific tab and page. |
- | search/levels | Returns a list of userlevel results for a specific search. |
- +---------------+------------------------------------------------------------+
- \\ --- Parameters ---
- Not all parameters are valid for all queries, or mean the same in that case.
- +---------------+-------------------------------------------------------------------------------+
- | NAME | DESCRIPTION |
- +---------------+-------------------------------------------------------------------------------+
- | app_id | |
- | steam_id | Obligatory. Must contain the SteamID64 of an active N++ player. |
- | steam_auth | Obligatory. Can be left empty. |
- | user_id | |
- | level_id | |
- | replay_id | |
- | player_id | |
- | qt | Query type. Specifies the leaderboard (get_scores) or the tab (query_levels). |
- | mode | Specifies the playing mode (solo, coop, race). |
- | page | Specifies the page of results of the query |
- +---------------+-------------------------------------------------------------------------------+
- \\ --- Page ---
- * This controls what page of results from the specified category to show.
- * It goes in decreasing chronological order.
- * It's limited to 500 maps per page.
- * This way, all maps could be queried.
- * If there's a single page, changing this number doesn't do anything, but if there're more pages, surpassing the limit will return an empty page.
- \\ --- Modes ---
- 0 Solo
- 1 Coop
- 2 Race
- \\ --- Categories (qt) ---
- Default value: 0 (which doesn't exist).
- --- Before this, none exist ---
- 07 Best
- 08 Featured
- 09 Top Weekly
- 10 Newest
- 11 Hardest
- 12 Made by me, sorted by ++'s (verify)
- 13 Made by me, sorted by Date (verify)
- 14 Favourited, sorted by Date (verify)
- 15 Favourited, sorted by ++'s (verify)
- 16 ?
- 17 --- DOESN'T EXIST ---
- 18 Made by friends, sorted by Date
- 19 Made by friends, sorted by ++'s
- 20 --- DOESN'T EXIST ---
- 21 Favourited by friends
- 22 Tracked by friends, sorted by Date
- 23 Tracked by friends, sorted by Rank
- 24 Tracked by friends, sorted by Rank, with Score
- 25 Tracked by friends, sorted by Rank, without Score
- 26 Tracked by me
- 27 --- DOESN'T EXIST ---
- 28 --- DOESN'T EXIST ---
- 29 --- DOESN'T EXIST ---
- 30 Following, sorted by Date
- 31 Following, sorted by ++'s
- --- Repetitions? ---
- 32 Made by me, sorted by ++'s
- 33 Made by me, sorted by Date
- 34 ?
- 35 Tracked by me
- --- After this, none seem to exist---
- \\ --- Format of data ---
- File = Header (32 bytes) + Map Headers (n * 44 bytes) + Map Data Blocks.
- Notes:
- * n is the number of maps.
- * There is one map data block for each map header.
- * Each query, and thus page, seems to be limited at 500 results.
- * All 4 byte integers are little endian.
- * For unknown fields, possible values are in parenthesis.
- +---------------------------+
- | HEADER (48 bytes) |
- +---------------------------+
- | # of bytes - Description |
- +---------------------------+
- | 16 - Date of update |
- | 04 - Nº of maps |
- | 04 - Page |
- | 04 - ? (0) |
- | 04 - Category |
- | 04 - Mode |
- | 04 - ? (1200, once 5) |
- | 04 - ? (500, once 25) |
- | 04 - ? (0, once 5) |
- +---------------------------+
- | MAP HEADER (44 bytes) |
- +---------------------------+
- | # of bytes - Description |
- +---------------------------+
- | 04 - Map ID |
- | 04 - User ID |
- | 16 - Author name (padded) |
- | 04 - Number of ++'s |
- | 16 - Date |
- +---------------------------+
- | MAP DATA |
- +---------------------------+
- | # of bytes - Description |
- +---------------------------+
- | 04 - Size of block |
- | 02 - ? | (maybe some integrity check, or some object count)
- | ## - zlib-compressed data |
- +---------------------------+
Add Comment
Please, Sign In to add comment