Jump to content

Data API/Logs

From Bconomy Wiki
Revision as of 12:19, 2 November 2026 by TheCarriedOne (talk | contribs) (Publish from docs/data-api.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Data API · Types

All log endpoints require page and pageSize. Non-moderator accounts are limited to a maximum number of pages.

logs/byBcId

[edit | edit source]

Returns logs associated with a user.

Request

{ "type": "logs/byBcId", "id": 1, "page": 1, "pageSize": 50 }

Response — GameLogResponse

logs/byIdType

[edit | edit source]

Returns logs associated with a faction or item.

Request

{ "type": "logs/byIdType", "idType": "factionId", "id": 1, "page": 1, "pageSize": 50 }
Field Type Required Notes
idType "factionId" | "itemId" yes
id non-negative integer yes faction or item ID
page positive integer yes
pageSize positive integer yes

Response — GameLogResponse

logs/byLogType

[edit | edit source]

Returns logs filtered by event type.

Request

{ "type": "logs/byLogType", "logType": "marketItemTransaction", "page": 1, "pageSize": 50 }
Field Type Required Notes
logType GameLogType yes
page positive integer yes
pageSize positive integer yes

Response — GameLogResponse

misc/dailyInputs

[edit | edit source]

Returns all commands executed by a user on a specific date (UTC day). Records are generally available for the previous 30-day period only.

Request

{ "type": "misc/dailyInputs", "id": 1, "date": "2025-07-01" }
Field Type Required Notes
id positive integer yes BcID
date string or number yes ISO date string, "YYYY/MM/DD", or Unix timestamp

Response

{
  day: string   // formatted date string
  data: Array<{ time: number; input: object }>  // input is the raw command payload
}

Generated from the Bconomy source documentation. Edits made on the wiki are overwritten on the next publish; ask the developers to change the source.