Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.05 KB

api_docs.md

File metadata and controls

35 lines (19 loc) · 1.05 KB

Api Specification

A basic python script to interact with the api:

python```

import requests

result = requests.post("https://investigator-api.herokuapp.com/api/phone_number/all", data={"username":"eric", "password":"likeIdtellyou"}).json() print(result[0])



API all methods:

* `/api/phone_number/all`: gets you all the phone numbers in the database

* `/api/coordinates/all`: gets you all the latitude, logitude coordinates in the database.

* `/api/location/all`: gets all the location information in the database.

* `/api/phone_number/[specific phone number]`: gets all information regarding a specific phone number

* `/api/location/[US city],[US state]`: gets all the information regarding a specific city

* `/api/coordinates/[latitude],[longitude]`: gets all the information regarding a specific latitude,longitude pair

* `/api/coordinates/bounding_box/(lat_long),(lat_long),(lat_long),(lat_long)`: gets all the information regarding all latitude,longitude within the bounding box

For full contact
Name, phone number
or Name, email

Add key to api session.