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
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
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\*"
}
}'
Updated about 1 year ago