Getting a Bearer Token

Getting a Bearer Token There are two ways you can get a Bearer Token from the Access Token URL in the Lex Machina API. In the first method, you can send in the parameters of client_id, client_secret and grant_type as form URL encoded parameters in the body of the POST. This requires setting the Content-Type header appropriately curl -i -X POST 'https://api.lexmachina.com/oauth2/token' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'client_id=XXXXX' --data-urlencode 'client_secret=XXXXX' --data-urlencode 'grant_type=client_credentials'

Getting Started with Postman

Introduction It can be helpful for learning an API to access via a tool such as Postman in order to explore the endpoints and understand how it all works. In this guide, you will learn how to get the entire suite of Lex Machina API endpoints configured and running with automatic authentication. The goal is to accomplish this in five minutes or less. Pre-requisites You need to have created an application and noted the client_id and client_secret as per these directions.

Migrating to General Availability

The Lex Machina API has now been released for general availability. This brings in some highly anticipated features, like the availability of some state court data. That also brings in changes that will require changes from work in the beta version of the API. In this article, they will be listed by broad category of endpoint. List Endpoints All of the /list-* endpoints now require one of two arguments: “State” or “FederalDistrict”.

Overview of the Lex Machina Beta API

Lex Machina API Beta Release This software is a beta in ongoing development. Bugs and outages are possible as well as the occasional breaking change between now and general availability. Case and Entity Data The API is built to provide data on cases and the entities relevant to cases like judges, law firms, and parties. A set of cases with relevant metadata, such as specific types and amounts of damages, can then provide a dataset for direct consumption or analytics.

Querying Appeals Cases

Creating Appeals Queries for the Lex Machina API Overview The Lex Machina API now allows for querying of appelate case data. It works similarly to the federal district queries and the state queries. For the purposes of this article, only the parts that differ from federal district queries will be discussed. For querying on the participants and such topics, please refer to the district query article. That will also explain the basics of operations such as the include and exclude, the date operators, etc.

Querying District Cases

Creating District Queries for the Lex Machina API Overview The Lex Machina data set is a highly curated and normalized set of federal district cases. As such, there are many attributes and participants on which you can query it. This flexibility brings with it some complexity. In this article, we will unravel this complexity, and enable you to enrich your applications through Lex Machina’s API. The query endpoint is /query-district-cases and this is a POST request.

Querying State Cases

Creating State Queries for the Lex Machina API Overview The Lex Machina API now allows for querying of some state case data as of general availability. In many ways it works the same as the federal district queries. For the purposes of this article, only the parts that differ will be discussed. For querying on the participants and such topics, please refer to the district query article. That will also explain the basics of operations such as the include and exclude, the date operators, etc.

Terms Of Use

Terms of Use (October 1, 2018) These Terms of Use (“Terms of Use”) are for use of the services (“Services”) described at https://lexmachina.com and located at https://law.lexmachina.com. NOTICE: THESE TERMS OF USE APPLY TO YOUR USE OF THE LEX MACHINA SERVICES IF YOU ARE AN AUTHORIZED USER IN AN ORGANIZATION THAT HAS ACCEPTED THESE TERMS IN WRITING. The Terms of Use listed below govern the use of the Services provided by Lex Machina, Inc.