# gg.infinitetavern.tavern.getRecentBattles

> Published by [infinitetavern.gg](https://lexicon.garden/identity/did:plc:vxwgn77hp5ikvbiggm5es3rv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.tavern.getRecentBattles)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.tavern.getRecentBattles/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.tavern.getRecentBattles/examples)

## Definitions

### `gg.infinitetavern.tavern.getRecentBattles`

**Type**: `query`

Hear the latest tales from the tavern — retrieve the most recently indexed battle results across all adventurers.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `results` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "gg.infinitetavern.tavern.getRecentBattles",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "results"
          ],
          "properties": {
            "results": {
              "type": "array",
              "items": {
                "ref": "gg.infinitetavern.tavern.getAdventurerChronicles#matchResultView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1
          }
        }
      },
      "description": "Hear the latest tales from the tavern — retrieve the most recently indexed battle results across all adventurers."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
