RapidAPI logo

Canadian Football League (CFL)

FREE
By cfltechnology
Updated 3 months ago
Sports
4.9/10
Popularity Score
618ms
Latency
100%
Success Rate

Canadian Football League (CFL) API Documentation

Official JSON API providing real-time league, team and player statistics about the Canadian Football League.

View API Details
Players
GETPlayers (Full Listing)
GETPlayers (Individual Player)
Games
GETGame (Individual Game)
GETGames (Full Season)
GETPlayers (Full Listing)

Retrieves a list of basic player vitals, plus defensive, offensive and special team statistics sorted by season, team, and per-game.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Code Snippet
unirest.get("https://canadian-football-league-cfl.p.rapidapi.com/v1/players")
.header("X-RapidAPI-Host", "canadian-football-league-cfl.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://canadian-football-league-cfl.p.rapidapi.com/v1/players
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://canadian-football-league-cfl.p.rapidapi.com/v1/players")
.header("X-RapidAPI-Host", "canadian-football-league-cfl.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication