API v2 Documentation

Endpoints Code Lookup

← All endpoints

rpi

MBB,MB2,MB3,WB2,WB3,MBIA,WBIA,MBJC,WBJC,WBB,CBB

A query to this endpoint without a date parameter will return the current RPI rankings and ratings for all active teams within the competition level. Passing a date parameter will return an RPI rankings and ratings "snapshot" for that date if data is available. Passing a team parameter (in conjunction with season) will return a series of data points and detailed changes in team RPI ratings over the course of the season.

Current CBB RPI
https://api.natstat.com/v1/rpi/CBB/?key=XXXX-XXXXXX&format=xml Download sample

Parameters

Path

NameRequiredTypeDescription
level required string The competition level to retrieve information for. A full glossary can be found in the Path Parameters section

Query

NameRequiredTypeDescription
key required string A valid API key in XXXX-XXXXXX format
format optional string The preferred data format: xml, json or php (presented as a SimpleXML object). The default is json
max optional number The number of results per page to return. The default value is 100, and the maximum allowed parameter value is 1000. This value is echoed back as Max_Results in the meta block
page optional number The pagination page number. This value is echoed back as Page in the meta block. The meta block also contains the Total_Results of the query. If there are further results, a fully-formed Next_Page URI containing a pre-filled &page=X value will be returned
team optional number A valid team ID code. A list of teams can be retrieved from the teams endpoint
season optional number A valid season ID code, formatted as the year that a season completes, in YYYY format. A list of available seasons can be retrieved from the seasons endpoint
date optional string Returns a snapshot of RPI ratings and rankings for that date. The API will attempt to translate the date, but YYYYMMDD or YYYY-MM-DD are preferred. Entering a date will supercede the season parameter