🏛️
CRLCA
  • Overview
  • Quick Start
  • Change Log
  • How-To Guides
    • Querying Multiple Fields
    • Translating a Search URL into an API Query
    • Converting JSON to CSV
    • Embedding PDF Documents
  • API Reference
    • Endpoints
      • Case ID
      • Case Ongoing
      • Case Type
      • Special Collection
      • Case State
      • Case Court
      • Case Status
      • Plaintiffs
        • Public Interest Lawyer
        • Filed Pro Se
        • Class Action Sought
        • Class Action Outcome
        • Attorney Organization
        • Plaintiff Type
      • Defendants
        • Defendant Type
        • Defendant Level
        • Facility type
      • Case Details
        • Cause of Action
        • Available Documents
        • Constitutional Clause
        • Special Case Type
      • Outcome
        • Case Settlement Status
        • Case Relief Source
        • Case Relief Nature
        • Case Content of Injunction
        • Case Prevailing Party
      • Document Details
        • Document Type
      • Issues
        • Case Issue
        • Case Custom Issue
    • Objects
      • Case
        • Case Details
        • Causes of Action
        • Outcome
        • Issues
        • Key Dates
        • Parties
        • Dockets and Case Numbers
        • Documents
        • Resources
        • Summaries
        • Case Status
      • Defendant
      • Docket
      • Docket Entry
      • Document
        • Document Details
        • Citations
      • Resource
        • Resource Details
        • Related Items
  • Need Help?
Powered by GitBook
On this page
  • Get your API keys
  • Authentication
  • Token Authentication - Make your first request
  • Get test.
  • Session Authentication

Quick Start

PreviousOverviewNextChange Log

Last updated 2 years ago

Get your API keys

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.

The first step is to create a user account through the Clearinghouse website, . Then you can request an API key, .

Once the request is accepted, you will receive an email from info@clearinghouse.net with your token.

Authentication

There are two methods of authentication CRLCA has available:

  • Token Authentication

  • Session Authentication

The following sections will go over how to make your first request using both authentication methods.

Token Authentication - Make your first request

Token authentication authenticates based the token you have received via email from info@clearinghouse.net.

To make your first request, send an authenticated request to the hello endpoint.

Get test.

GET https://www.clearinghouse.net/api/v1/test

Test endpoint for API connection verification

Headers

Name
Type
Description

Authorization*

String

Authorization

Token XXXXXXXXXXX

where

XXXXXXXXXXX

is the token string

{
"message": "Success, you have access to the Civil Rights Clearinghouse Litigation API!"
}
{
    "detail":"Authentication credentials were not provided."
}

Take a look at how you might call this method using python or curl:

import requests

url = "https://clearinghouse.net/api/v1/test"
payload = {}
headers = { 'Authorization': 'Token XXXXXXXXXX',
'User-Agent': 'Chrome v22.2 Linux Ubuntu'
}
response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
curl https://www.clearinghouse.net/api/v1/test/ 
    -H 'Authorization: Token XXXXXXXXXXXXXXX'

Session Authentication

Session authentication authenticates based on your Civil Rights Clearinghouse Litigation website login credentials.

Recommendation: Session authentication is a great way to navigate available CRCLA requests using the web browser.

You should see the following the data returned:

{ "message": "Success, you have access to the Civil Rights Clearinghouse Litigation API!"

To make your first request, make sure you are logged onto your Civil Rights Clearinghouse Litigation account. You can access the authentication request to the following endpoint:

https://clearinghouse.net/registration
https://www.clearinghouse.net/api-request
https://www.clearinghouse.net/api/v1/test.