{
"id": "games.gamesgamesgamesgames.listGames",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"games"
],
"properties": {
"games": {
"type": "array",
"items": {
"ref": "games.gamesgamesgamesgames.defs#gameSummaryView",
"type": "ref"
}
},
"cursor": {
"type": "string",
"maxLength": 256
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "Restrict results to games in this DID's repo. Omitting it returns games from every repo — it does NOT default to the authenticated caller. Owner-facing surfaces must pass it explicitly."
},
"sort": {
"enum": [
"indexed_at",
"createdAt",
"name"
],
"type": "string",
"default": "indexed_at",
"maxLength": 64,
"description": "Field to sort by. Constrained because the value reaches an ORDER BY clause, which cannot be parameterised."
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"modes": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
}
},
"cursor": {
"type": "string",
"maxLength": 256
},
"genres": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
}
},
"themes": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
}
},
"ageRatings": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
},
"description": "Filter by age rating in 'organization:rating' format (e.g. esrb:M, pegi:Eighteen)."
},
"sortDirection": {
"enum": [
"asc",
"desc"
],
"type": "string",
"default": "desc",
"maxLength": 64,
"description": "Sort direction."
},
"includeUnrated": {
"type": "boolean",
"default": false,
"description": "When age rating filters are active, also include games with no age ratings."
},
"applicationTypes": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"knownValues": [
"addon",
"bundle",
"dlc",
"episode",
"expandedGame",
"expansion",
"fork",
"game",
"mod",
"pack",
"port",
"remake",
"remaster",
"season",
"standaloneExpansion",
"update"
]
},
"description": "Filter by application type (e.g. game, dlc, bundle)."
},
"includeCancelled": {
"type": "boolean",
"default": false
},
"includeUnpublished": {
"type": "boolean",
"default": false,
"description": "Include the caller's own unpublished drafts. Requires authentication and `did` set to the caller's own DID; the request is rejected otherwise."
},
"playerPerspectives": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
}
}
}
},
"description": "Get a list of games on the network."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}