Skip to content

arikyuuu/polytoria-web-apis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 

Repository files navigation

polytoria-web-apis

uncompleted list (updated 05/31/22 - will add more later)

Domain Description
api.polytoria.com Misc Endpoints

Probably undocumented APIs

Chat APIs (discarded)

Fetch conversations

Fetch chats

chatID: localStorage.getItem("chatID");

Send a chat message

id: chatID

msg: message 2 send

Start a new conversation

id: target user id

csrf: your csrf

Fetch new messages

chatID: localStorage.getItem("chatID");

User APIs

Fetch user info

username: ya lol

Fetch user's inventory

userID: target user id

type: hat, face, tool, shirt, pants

limit: any number (default 6)

p: page

Fetch user's favourites

userID: target user id

type: hat, face, tool, shirt, pants

limit: any number (default 6)

p: page

Load user's wall

id: user id

p: page id

Block a user

csrf: your csrf token

id: user id

Interact with a trade

id: trade id

action: accept, reject, cancel

csrf: your csrf token

Convert your currency (HAVEN'T TESTED YET, TRY AT YOUR OWN RISK)

csrf: your csrf token

brick-input or stud-input: number of bricks or studs (stud-output,brick-output)

"Calculate" recieved currency

type: bricks, studs

amount: an amount of bricks OR studs, lol?

Place limit order

amount-give: how much u will give

amount-ask: how much u asked

currency: bricks or studs

split (optional): 1 = true, 0 = false

csrf: your csrf token

Place market order

amount: how much bricks or studs

currency: bricks or studs

csrf: your csrf token

Cancel order

id: order id

csrf: your csrf token

Log-out

Verify Email

csrf: your csrf token

Item APIs

Fetch catalog

page: page (optional)

type: hat, face, shirt, pants, tool

sortType: 0 (featured), 1 (best selling), 2 (recently updated), 3 (least expensive), 4 (most expensive)

searchQuery: search query (optional)

Purchase an item

csrf: your csrf token

id: item id

Remove an item

csrf: your csrf token

id: item id

Fetch item comments

id: item id

limit: any number (default 4)

offset (optional): + 4 * commpage (commpage AKA COMMENT PAGE)

Comment on an item

id: item id

content: message

g-recaptcha-response: captcha response key

csrf: your csrf

Load resellers

id: item id

limit: any number (default 4)

offset (optional): + 4 * respage

Load owners

id: item id

limit: any number (default 4)

page: page

Purchase an limited item

id: limited item id

csrf: yo csrf token lol

Offsale all

id: item id

csrf: your csrf tokenn thingy

Sell an limited item

itemserialid: your item's serial id

price: chosen price

itemid: item id

csrf: your csrf tokenn thingy

Purchase a pack

id: pack item id

csrf: your csrf token

View pack contents

id: pack item id

Open pack

id: pack id

csrf: csrf token

Favourite an item

id: item id

csrf: your csrf token

Fetch total item favourites

id: item id

Fetch chart data

id: limited item id - needs to be an limited item

Place a buy request

id: item id

csrf: your csrf token

offer: bricks offer

Cancel a buy request

id: item id

csrf: your csrf token

Friendship APIs

Fetch all friend requests

Fetch all friends

Fetch user's friends

Friend button info

id: user id

Send a friend request

csrf: your csrf token

id: user id

Remove a friend

csrf: your csrf token

id: user id

Avatar APIs

Load items

type: face, pants, hat, shirt, tool

limit: default is 8

page: page

Load wearing items

Set part color

part: body part (Torso, LeftLeg, LeftArm, RightLeg, RightArm, Head)

color: chosen color

csrf: your csrf token

Wear

id: item id

csrf: your csrf token

Unwear

id: item id

csrf: your csrf token

Render

csrf: your csrf token

if you want to force redraw use this => forceRedraw: 1

Load outfits

limit: default is 8

page: page

Wear an outfit

csrf: your csrf token

id: outfit id

Save an outfit

csrf: your csrf token

name: outfit name

Delete an outfit

csrf: your csrf token

id: outfit id

Asset APIs

Search

Validate username

Library APIs

Get library items

types: model, image, audio

Serve decal

View model content

Calculate audio cost

Use formdata objects!!! csrf and file

Upload audio

Use formdata objects!!! csrf and file

Upload decal

Use formdata objects!!! csrf and file

Game APIs

Fetch all games

page: a PAGE number bro (default is 0 on every &page= ig)

type: popular, updated

Get a game launch token

csrf: your token

id: game id

Get a callback status

h: hash

Launch a game (not an api but wahtever)

OLD CLIENTS: go to polytoria://launch_[GAME LAUNCH TOKEN]

NEW CLIENTS: polytoria://client/game_token_hash_idk

Activate/deactivate a game

id: game id

csrf: yes u know what is this already

Launch creator

csrf: ur token

beta: false,true (beta testers)

Forum APIs

Fetch posts

limit: 10

offset: page * limit

Reply to a post

csrf: your csrf

content: message

reply_to: post id

captcha: captcha response

Give user reputation (not tested, use at ur own risk!!)

id: post id

csrf: your csrf

neg: (default: 0) (not tested yet, possibly uses negative numbers and normal numbers e.g. -29 or 29 mixed with userid???)

Guild APIs

Join a guild

id: guild id

Leave a guild

id: guild id

Post on a guild wall

gid: group id

g-recaptcha-response: captcha response key

message: message 2 post

csrf: your csrf

Load a guild wall

id: guild id

p: page

Load a guild store

id: guild id

p: page

Load guild members

gid: id

role: chosen role id

page: page

Load your guilds (guilds you're in)

page: page number

limit: add &limit=limitnumber at the end of the url

Load popular guilds

page: page number

query: search query, (optional -> can be blank)

Ad APIs

Get a user-created ad

Get a user-created ad redirect

adId: advertisement id

Other APIs

Leaderboard

Category: networth, posts, comments, views, sales

Page: page number

Get notifications

Broken APIs

Add reaction (forum post ig)

Open Purchase Collectible Modal (not broken but y know it doesnt work when ur not on the site)

About

Unofficial Polytoria (polytoria.com) web API list.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published