# Search US case law with a free API

**Use case:** 

Search US federal and state case law by keyword with a free API. Returns case names, citations, courts, dates, and snippets as structured JSON.

## Input

```json
{
  "query": "miranda rights",
  "maxResults": 10,
  "language": "en",
  "sortByDate": false,
  "excludeCitations": true,
  "fetchCaseDetailsForResults": false
}
```

## Output

```json
{
  "result_type": {
    "label": "Result Type",
    "format": "string"
  },
  "result_id": {
    "label": "Result ID",
    "format": "string"
  },
  "case_id": {
    "label": "Case ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "name": {
    "label": "Case Name",
    "format": "string"
  },
  "court_name": {
    "label": "Court",
    "format": "string"
  },
  "snippet": {
    "label": "Snippet",
    "format": "string"
  },
  "link": {
    "label": "Link",
    "format": "string"
  },
  "publication_info": {
    "label": "Publication Info",
    "format": "object"
  },
  "dates": {
    "label": "Dates",
    "format": "array"
  },
  "short_citations": {
    "label": "Short Citations",
    "format": "array"
  },
  "cited_cases": {
    "label": "Cited Cases",
    "format": "array"
  },
  "fetched_at": {
    "label": "Fetched At",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Scholar Case Law API](https://apify.com/johnvc/google-scholar-case-law) with a specific input configuration. Visit the [Actor detail page](https://apify.com/johnvc/google-scholar-case-law) to learn more, explore other use cases, and run it yourself.