Overview
The 5Stack GraphQL API provides comprehensive queries for fetching data about players, matches, tournaments, servers, and game statistics. All queries use the Zeus code generation system for type safety.Query Structure
Queries are generated using thegenerateQuery helper function:
Player Queries
Get Player Profile
Fetch a single player’s profile by Steam ID:Returns a single player object
Get Current User (Me)
Fetch the authenticated user’s complete profile:meFields selector includes additional fields only available to the authenticated user:
name_registered: Whether the player has registered their nameprofile_url: Custom profile URLmatchmaking_cooldown: Matchmaking cooldown timestampcurrent_lobby_id: Current lobby UUIDlanguage: Preferred language codeteams: Array of teams the player belongs to
List Players
Query multiple players with filtering and pagination:Match Queries
Get Match Details
Fetch a single match with full details:Returns a complete match object
Get Match Lineups with Stats
Fetch detailed lineup information with player statistics:- Kills, deaths, assists (KDA)
- Headshot kills
- Multi-kills
- Damage dealt and received
- Flash assists and enemies flashed
- Utility usage (smokes, flashes, HE grenades, molotovs)
- Team damage statistics
List Recent Matches
Tournament Queries
Get Tournament Details
Returns a tournament object with stages and teams
Get Tournament Teams
List Active Tournaments
Map Queries
Get Available Maps
Returns array of map objects
Get Map Pools
Server Queries
Get Dedicated Server
List Available Servers
Filtering and Sorting
Comparison Operators
Use these operators inwhere clauses:
_eq: Equal to_neq: Not equal to_gt: Greater than_gte: Greater than or equal to_lt: Less than_lte: Less than or equal to_in: In array_nin: Not in array_like: Pattern matching (SQL LIKE)_ilike: Case-insensitive pattern matching
Ordering
Pagination
Aggregations
Get aggregate data like counts, sums, and averages:Next Steps
Mutations
Learn how to create and update data
Subscriptions
Set up real-time data subscriptions