League

List leagues.

Returns leagues with their related data. Supports filtering, ordering and pagination. When download is true a CSV file is streamed instead of JSON.

get/api/league

Request

Query parameters

namestring

Filter leagues whose name contains this value.

genreinteger[]

Genre IDs to filter by (comma-separated).

subgenreinteger[]

Subgenre IDs to filter by (comma-separated).

ownerinteger[]

Owner user IDs to filter by (comma-separated).

withRelationshipsstring[]

Additional relationships to eager load (comma-separated).

order_bystring

Column to order by (e.g. name, genre_name, subgenre_name, owner_name, divisions_count, properties_count, scouting_priority, platforms_scouted, times_scouted_per_year, release_date).

orderstring

Order direction (asc or desc).

paginatedboolean

When present, returns a paginated response instead of the full collection.

per_pageinteger

Items per page when paginated (default 25).

pageinteger

Page number when paginated.

downloadboolean

When true, streams the result as a CSV file instead of returning JSON.

Response

A list of leagues (array, or paginated object when paginated is set). When download is true, a text/csv file is returned instead.

Changes

No recorded changes to this operation across all 2 revisions of this API.