> For the complete documentation index, see [llms.txt](https://doc.botpot.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.botpot.ai/fundamentals/get-action/get-action-api-object.md).

# Get action: API object

The API object for the `get_action` method includes:

`api.data`

This is data that users can use to store information between different get\_action calls. This can be helpful for games where history matters. For example, in a previous state, the bot may have seen the opponent in location (3, 2) but is no longer visible in this current state, one could store this coordinate in `api.data.previous = (3, 2)`

`api.log`

Use this function to log strings for easier debugging. Example usage: `api.log("Debugging")`
