API Documentation
API Calls are limited to 100 requests per IP per minute.
/db/data
/db/dataMethod:
GETURL:
/db/data?u=usernameDescription: Fetch user data by username.
Query Parameters:
u: The username to search for.
Response:
Success:
{ success: true, result: [User Object] }Error:
{ success: false, error: "An error occurred", result: [] }User not found:
{ success: false, error: "User not found", result: [] }
/db/quests
/db/questsMethod:
GETURL:
/db/quests?u=usernameDescription: Fetch quests for a given user.
Query Parameters:
u: The username to search for.
Response:
Success:
{ success: true, result: [Quest Array] }Error:
{ success: false, error: "An error occurred", result: [] }User not found:
{ success: false, error: "User not found", result: [] }
/db/packsLeft
/db/packsLeftMethod:
GETURL:
/db/packsLeftDescription: Fetch the number of packs left.
Response:
Success:
{ packsLeft: [Number], betaPacks: [Number], error: false }Error:
{ packsLeft: "", betaPacks: "", error: true }
/db/leaderboard
/db/leaderboardMethod:
GETURL:
/db/leaderboard?u=usernameDescription: Fetch leaderboard data and user's share in it.
Query Parameters:
u: The username to match against.
Response:
Success: JSON object with leaderboard information.
Error:
{ error: true, message: "Please provide a user" }
/db/holdingrewards
/db/holdingrewardsMethod:
GETURL:
/db/holdingrewardsDescription: Fetch data related to holding rewards.
Response:
Success:
{ error: false, result: [Data] }Error:
{ error: true }
/db/circulation
/db/circulationMethod:
GETURL:
/db/circulationDescription: Fetch circulation data.
Response:
Success:
{ error: false, result: [Data] }Error:
{ error: true }
/db/withdraw
/db/withdrawMethod:
GETURL:
/db/withdrawDescription: Fetch the status of withdrawals.
Response:
Success:
{ enabled: [Boolean], error: false }Error:
{ enabled: null, error: true }
/db/recipebook
/db/recipebookMethod:
GETURL:
/db/recipebook?u=usernameDescription: Fetch recipe book for a given user.
Query Parameters:
u: The username to search for.
Response:
Success:
{ error: false, result: [Recipes] }Error:
{ error: true, message: [Error Message] }
/db/queue/tx
/db/queue/txMethod:
POSTURL:
/db/queue/txDescription: Fetch transaction details based on transaction ID.
Body Parameters:
txid: Transaction ID to search for.
Response:
Success:
{ result: [Transaction Object] }Error:
{ result: null, error:true, message: [Error Message] }
/db/marketHistory
/db/marketHistoryMethod:
GETURL:
/db/marketHistory?name=[name]Description: Fetch market history for a given name.
Query Parameters:
name: The name to search for.
Response:
Success:
{ error: false, result: [Sales] }Error:
{ error: true, message: [Error Message] }
/db/cropAvg
/db/cropAvgMethod:
GETURL:
/db/cropAvgDescription: Fetch 30-day average crop price.
Response:
Success:
{ error: false, result: { price: [Price] } }Error:
{ error: true, message: [Error Message] }
/db/userItems
/db/userItemsMethod:
POSTURL:
/db/userItemsDescription: Fetch user items based on item types.
Body Parameters:
username: Username to search for.types: Array of item types to filter by.
Response:
Success:
{ error: false, result: [Items] }Error:
{ error: true, message: [Error Message] }
/db/marketItems
/db/marketItemsMethod:
POSTURL:
/db/marketItemsDescription: Fetch market items based on item types.
Body Parameters:
types: Array of item types to filter by.limit: Maximum number of items to return.minID: Minimum ID to start searching from.
Response:
Success:
{ error: false, result: [Items] }Error:
{ error: true, message: [Error Message] }
/db/marketLogs
/db/marketLogsMethod:
POSTURL:
/db/marketLogsDescription: Fetch market logs based on query parameters.
Body Parameters:
username(optional): Username to filter by.limit(optional)(Max:1000): Maximum number of logs to return.beforeTimestamp(optional): Timestamp to filter logs created before it.
Response:
Success:
{ error: false, result: [Logs] }Error:
{ error: true, message: [Error Message] }
/db/richlist
/db/richlistMethod:
GETURL:
/db/richlist?token=[token]Description: Fetch the rich list based on the token type.
Query Parameters:
token: The type of token to filter by. Allowed types are "crop", "alpha", "beta".
Response:
Success:
{ error: false, result: [Rich List] }Error:
{ error: true, message: [Error Message] }
Last updated