BotGame API Logo Alternate

BotGame API - Documentation

All responses are sent back in JSON.

Single Entity Response

The response for a Single Entity Query sends back all the attributes for the specified Entity.

Single Entity Example Response

{"entity":"mini_loot_box","attributes":[{"attribute_name":"play_cards_amount","attribute_type":"Numerical","attribute_options":"3"},{"attribute_name":"weapon_1","attribute_type":"String","attribute_options":"ak47"},{"attribute_name":"weapon_2","attribute_type":"String","attribute_options":"pipe_grenade"}]}

 

Group Response

The response for a Group Query sends back x amount of random entities or all entities based on what you queried.

It will respond with the entities and all their attributes.

Group Example Response

{"group":"Loot Boxes","entities":[{"entity_id":23,"user_id":7,"entity_name":"mini_loot_box","attribute_count":0,"group_id":13,"attributes":[{"attribute_id":29,"entity_id":23,"attribute_name":"play_cards_amount","attribute_type":"Numerical","attribute_options":"3"},{"attribute_id":30,"entity_id":23,"attribute_name":"weapon_1","attribute_type":"String","attribute_options":"ak47"},{"attribute_id":31,"entity_id":23,"attribute_name":"weapon_2","attribute_type":"String","attribute_options":"pipe_grenade"}]}]}

Get Tickets Response

The response will either be a numeric value (INT) of how many tickets are left, or an error response.

{"ticket_count":1}

 

3 views