CornBoar API

API for the Demon List Verifications Discord Server and the YBA Bot. Base URL is https://api.cornboar.com/.

Demon List Verifications Endpoints:

https://api.cornboar.com/dlvlist/ - Returns an ordered list of the demons, their victors, their verifiers, and their colors.

Example Response: { "main": [ "bloodbath", "cataclysm", ], "colors": { "bloodbath": "#d80000", "cataclysm": "#e31313" }, "victors": { "bloodbath": [ [ "991443322516279466", "c.br" ], [ "863876735031836702", "wfrankoff" ] ], "cataclysm": [ [ "991443322516279466", "c.br" ], [ "863876735031836702", "wfrankoff" ] ] }, "level_stats": { "bloodbath": { "level_id": "10565740", "publisher": "Riot", "level_length": "Long", "song_name": "At the Speed of Light", "song_id": "467339", "song_author": "Dimrain47", "object_count": "24,746", "copy_password": "Not Copyable" }, "cataclysm": { "level_id": "3979721", "publisher": "Ggb0y", "level_length": "Long", "song_name": "At the Speed of Light", "song_id": "467339", "song_author": "Dimrain47", "object_count": "0", "copy_password": "666777" } }, "og_case": { "bloodbath": "Bloodbath", "cataclysm": "Cataclysm" }, "verifiers": { "bloodbath": [ "991443322516279466", "c.br" ], "cataclysm": [ "991443322516279466", "c.br" ] } }

https://api.cornboar.com/dlvusers/ - Returns the statistics of all users ordered by XP.

Example Response: { "863876735031836702": { "username": "wfrankoff", "user_id": "863876735031836702", "avatar_url": "https://cdn.discordapp.com/avatars/863876735031836702/f7f38ab3483cc6be45aa07228d9ce198.png?size=1024", "completions": { "main": [ "silentium gradas", "bloodbath", "le fishe", "conical depression", "acropolix", "quadratic function", "allegiance", "hypersonic", "cataclysm", "forbidden isle", "niwa", "acu" ], "verifications": [ "silentium gradas", "le fishe", "conical depression", "acropolix", "quadratic function", "hypersonic", "niwa", "acu" ], "first_victors": [ "bloodbath", "allegiance", "cataclysm" ] }, "xp": 185.6 }, "991443322516279466": { "username": "c.br", "user_id": "991443322516279466", "avatar_url": "https://cdn.discordapp.com/avatars/991443322516279466/83a58d85d1e1264774af9bfe2db74819.png?size=1024", "completions": { "main": [ "bloodbath", "the flawless", "cataclysm" ], "verifications": [ "bloodbath", "cataclysm" ], "first_victors": [ "bloodbath", "the flawless" ] }, "xp": 49 } }

https://api.cornboar.com/dlvvalidatekey/{key}/ - Check if an admin website key is valid.

https://api.cornboar.com/dlvadddemon/{key}/{position}/{name}/{color_hex_code}/ - Add a demon to the list.

https://api.cornboar.com/dlvadddemon/{key}/{position}/{name}/{color_hex_code}/ - Remove a demon from the list.

https://api.cornboar.com/dlvaddcompletion/{key}/{user_id}/{demon_name}/ - Add a completion to a user.

https://api.cornboar.com/dlvremovecompletion/{key}/{user_id}/{demon_name}/ - Remove a completion from a user.

https://api.cornboar.com/dlvremovecompletion/{key}/{user_id}/{xp_amount}/ - Edit a user's XP.

Keys are obtained through the DLV Bot, can only be obtained by DLV Server Admins.

https://cornboar.com/api/dlvlist.json and https://cornboar.com/api/dlvusers.json will respond much faster than https://api.cornboar.com/dlvlist/ and https://api.cornboar.com/dlvusers/ but the data may be slightly outdated. A workaround that allows you to fetch quick and accurate data is to fetch the contents ofhttps://github.com/CornBoar/CornBoar.github.io/blob/main/api/dlvlist.json and https://github.com/CornBoar/CornBoar.github.io/blob/main/api/dlvusers.json via the GitHub API.

YBA Bot Endpoints:

https://api.cornboar.com/stand/{user_id}/ - Returns a user's equipped stand.

https://api.cornboar.com/stands/{user_id}/ - Returns all of the stands of a user.

https://api.cornboar.com/items/{user_id}/ - Returns all of the items of a user.

https://api.cornboar.com/pity/{user_id}/ - Returns the pity of a user.

https://api.cornboar.com/username/{user_id}/ - Get a user's username by their ID.

https://api.cornboar.com/is_admin/{user_id}/ - Check a user's admin status.