How to use Spotless Data?

Authentication

Authentication in Spotless is handled by an additional header that needs to be added to every API requests that you make:

{"Authorization" : "Token 2A9B2D63285B4AD2CE6DEF71A2B6F28553C3DAB8”}

This token uniquely identifies your account and can be seen at the top of every page in the browsable API when you are logged in.

You should keep this token secret and only use it in HTTPS requests to spotlessdata.com. Any requests made using it will be billed to your account.

An example code for making a secure API call in Python are shown below:

import requests

response = requests.get(
    "https://spotlessdata.com/api/rules/reference_rules/",
    headers = {"Authorization" : "Token <YOUR TOKEN GOES HERE>”})

print (response.json())