RapidAPI logo

Sign Up

Log In

Crime Data

FREE
By jgentes
Updated 3 months ago
Tools
8.7/10
Popularity Score
2881ms
Latency
93%
Success Rate

Crime Data API Documentation

Crime data is great for safe neighbourhoods.

View API Details
GEThttps://citizenrequests.herokuapp.com
GEThttps://citizenrequests.herokuapp.com

Proxy for Crimemapping.com

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
startdateSTRING
REQUIREDBegin Date
enddateSTRING
REQUIREDEnd Date
latNUMBER
REQUIREDLatitude
longNUMBER
REQUIREDLongitude
Request Snippet
unirest.get("https://jgentes-Crime-Data-v1.p.rapidapi.com/crime?startdate=9%2F19%2F2015&enddate=9%2F25%2F2015&lat=37.757815&long=-122.5076392")
.header("X-RapidAPI-Host", "jgentes-Crime-Data-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
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://jgentes-Crime-Data-v1.p.rapidapi.com/crime?startdate=9%2F19%2F2015&enddate=9%2F25%2F2015&lat=37.757815&long=-122.5076392")
.header("X-RapidAPI-Host", "jgentes-Crime-Data-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