basketballapi.net

Documentation / Players

Find players

GET/v1/players

Find players by name or team, with the games they played and their last team. Send q (3 letters or more) or team.

Live and up A list: pages of 50, see paging

Parameters

NameInTypeAbout
qquerystringPart of a name.
teamqueryidOnly this team, by its id (tm_…). e.g. tm_Z81WSSTP
competitionqueryidOnly this competition, by its id (cp_…). e.g. cp_11A6HQXJ
seasonqueryidOnly this season, by its id (ss_…). e.g. ss_K1TTWVRM
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 player id.
namestring
gamesinteger
first_datedate
last_datedate
last_teamobject or null
last_team.ididA team id.
last_team.namestring

Errors

400422401403429 What each one means