NFLArrest

FREE
By brianiswu
Updated 4 months ago
Sports
7.6/10
Popularity Score
501ms
Latency
79%
Success Rate

NFLArrest API Documentation

Get NFL Arrest data using the NFL Arrest API.

View API Details
Crime
GETTop Crimes
GETTop Teams for Crime
GETTop Players for Crime
GETTop Positions for Crime
GETCrime Timeline
GETArrest List for Crime
GETTop Crimes

The Top Crimes endpoint returns the most popular crimes in the NFL.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
start_dateNUMBER
OPTIONALFilter data by start date, format example: 2000-01-31
end_dateSTRING
OPTIONALFilter data by end date, example format: 2016-01-31
limitNUMBER
OPTIONALLimit results to a specific number
start_posNUMBER
OPTIONALoffset for limit, for pagination
Code Snippet
unirest.get("https://brianiswu-nflarrest-v1.p.rapidapi.com/crime?start_date=2000-01-31&end_date=2016-01-31")
.header("X-RapidAPI-Host", "brianiswu-nflarrest-v1.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://brianiswu-nflarrest-v1.p.rapidapi.com/crime
Request Method: GET
Response Headers
Response Body

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://brianiswu-nflarrest-v1.p.rapidapi.com/crime?start_date=2000-01-31&end_date=2016-01-31")
.header("X-RapidAPI-Host", "brianiswu-nflarrest-v1.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