Samples of All Queries

Here we show examples of different query types. Note that clicking on the link above the CURL command directs you to the same screen where you can see the same logic.

Contract Index

https://www.lawinsider.com/search?_index=contract

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "",  
      "\_index": "contract"  
    }  
  }'

Ordinary Text Query

https://www.lawinsider.com/search?q=THIS+OPERATING+AGREEMENT

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "THIS OPERATING AGREEMENT"  
    }  
  }'

Exact Phrase

https://www.lawinsider.com/search?q=%22THIS+OPERATING+AGREEMENT%22

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "\"THIS OPERATING AGREEMENT\""  
    }  
  }'

Exclude keyword

https://www.lawinsider.com/search?q=%2B-test

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "+-test"  
    }  
  }'

Search Within Clause or Definition

https://www.lawinsider.com/search?clause:WHEREAS=Agreement&clause:Notices=Limited&clause:Generally=Partnership&definition:Person=partnership&definition:Subsidiary=Equity&definition:Business+Day=Sunday&filing_year:max=2022&filing_year:min=1996

curl -X POST "https://www.lawinsider.com/api/v1alpha/search?token="${token}"&pretty" -H 'Content-Type: application/json' -d '{
   "query": {  
      "q": "",  
      "clause": {  
        "WHEREAS": "Agreement",  
        "Notices": "Limited",
        "Generally": "Partnership"
      },  
      "definition": {  
        "Person": "partnership",
        "Subsidiary": "Equity",
        "Business Day": "Sunday"
      },      
      "filing_year": {  
        "max": 2022,  
        "min": 1996  
      }  
    }  
  }'

Query all Queryable Attributes

https://www.lawinsider.com/search?clause:WHEREAS=Agreement&clause:Notices&definition:Person=partnership&category:Credit+Agreement&country:United+States&jurisdiction:New+York&industry:Real+estate+investment+trusts&filing_year:max=2022&filing_year:min=1996

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "",  
      "clause": {  
        "WHEREAS": "Agreement",  
        "Notices": ""  
      },  
      "definition": {  
        "Person": "partnership"  
      },  
      "category": {  
        "Credit Agreement": ""  
      },  
      "country": {  
        "United States": ""  
      },  
      "jurisdiction": {  
        "New York": ""  
      },  
      "industry": {  
        "Real estate investment trusts": ""  
      },  
      "filing_year": {  
        "max": 2022,  
        "min": 1996  
      }  
    }  
  }'

Query Specific Page

https://www.lawinsider.com/search?q=agree&_index=clause&p=2

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "agree",  
      "_index": "clause",  
      "p": 2  
    }  
  }'

Fuzzy (Misspelled Words)

curl -X POST "https://www.lawinsider.com/api/v1alpha/search?token="${token}"&pretty" -H 'Content-Type: application/json' -d '{
   "query": {
      "q": "agrmnt~"
    }
}'

Wildcard

https://www.lawinsider.com/search?q=service+%7C+user+%2B+agree*

curl -X POST  
  '<https://www.lawinsider.com/api/v1alpha/search?token=><token>'  
  -H 'Content-Type: application/json'  
  -d '{  
    "query": {  
      "q": "service | user + agree\*"  
    }  
  }'