Each league on StatsPlus has a unique URL, like https://statsplus.net/usba. In this case "usba" is the LGURL.
In all cases, the APIs are accessed at endpoints following the pattern:
At this time, APIs are available by simply making an HTTP request to the URL endpoint, which will typically return data in CSV format.
The /ratings and /mycsv APIs require the user to be logged in, and it's expected that API will be used via a browser.
"ID","Name","Nickname","Parent Team ID"
"ID","First Name","Last Name","Team ID","Parent Team ID","Level","Pos","Role","Age","Retired"
See "Web API for Drafted Players" section on Draft Help and FAQs
Note that you must be logged in to the league at https://statsplus.net/LGURL and linked to a team in that league when visiting the URL, or the API will refuse to work.
This will return a response like:
Request received, please check https://statsplus.net/LGURL/api/mycsv/?request=19d757bc-accc-43a2-a3df-zzzzzzzzz for output.
The process may take several minutes, the link will be valid for 30 minutes.
Copy-paste the URL into the address bar and visit it. When the background work is done, the second URL will return a CSV file. The process will almost always take at least 30 seconds, and could take up to 5 minutes in some cases.
There are many fields in the response, and the format or order may change in the future, so don't program anything based on the current specific order of the columns.
Important notes about the data:
1 = ml
2 = aaa
3 = aa
4 = a
5 = short a
6 = rookie
7 = indy
8 = international
10 = college
11 = high school