basketballapi.net

Documentation / Reference

Seasons

GET/v1/seasons

Seasons of a competition, newest first.

Free key and up A list: pages of 50, see paging

Parameters

NameInTypeAbout
competitionqueryidOnly this competition, by its id (cp_…). e.g. cp_11A6HQXJ
pagequeryintegerWhich page, from 1.
cursorquerystringThe next_cursor from the last answer, to carry on.
per_pagequeryintegerRecords an answer, from 1 to 200. 50 if left out.

What comes back

data is a list of these:

FieldTypeAbout
ididA season id.
namestring
start_yearinteger
competitionobject
competition.ididA competition id.
competition.namestring
gamesinteger
first_datedate or null
last_datedate or null

Errors

400422401403429 What each one means