# Google Scholar Case Law

Searches the case law index of Google Scholar. Each result has the case id, title, link, reporter citation, court, year, snippet, cited-by count and links to how the case was cited and to its versions. Filter by all US courts or by New York courts. Costs 9 credits per successful request. Failed and empty requests are free.

- **Documentation:** [https://scrappa.co/docs/google-scholar-api/google_scholar_case_law](https://scrappa.co/docs/google-scholar-api/google_scholar_case_law)
- **API group:** Google Scholar API
- **Endpoint:** `GET https://scrappa.co/api/google/scholar/case-law`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Case law search query, for example miranda or a case name. 1 to 500 characters. |
| `as_sdt` | string | No | Court filter. 2006 for all US courts (default). 4,33 for New York courts only. |
| `start` | integer | No | Result offset in steps of 10, from 0 to 990. Defaults to 0. |
| `hl` | string | No | Interface language. Only en is supported. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google/scholar/case-law?q=miranda&as_sdt=2006"
```

## Example response

```json
{
    "success": true,
    "data": {
        "search_parameters": {
            "engine": "google_scholar_case_law",
            "q": "miranda",
            "as_sdt": "2006",
            "start": 0,
            "hl": "en"
        },
        "search_information": {
            "total_results": 529000,
            "total_results_text": "About 529,000 results (0.03 sec)"
        },
        "organic_results": [
            {
                "position": 1,
                "result_id": "6386252699535531764",
                "title": "Miranda v. Arizona",
                "link": "https://scholar.google.com/scholar_case?case=6386252699535531764&q=miranda&hl=en&as_sdt=2006",
                "citation": "384 US 436, 86 S. Ct. 1602, 16 L. Ed. 2d 694",
                "court": "Supreme Court",
                "year": 1966,
                "snippet": "The cases before us raise questions which go to the roots of our concepts of American criminal jurisprudence\u2026",
                "publication_info": {
                    "summary": "384 US 436, 86 S. Ct. 1602, 16 L. Ed. 2d 694 - Supreme Court, 1966 - Google Scholar"
                },
                "inline_links": {
                    "cited_by": {
                        "total": 91835,
                        "cites_id": "6386252699535531764",
                        "link": "https://scholar.google.com/scholar?cites=6386252699535531764&as_sdt=2005&sciodt=2006&hl=en"
                    },
                    "how_cited_link": "https://scholar.google.com/scholar_case?about=6386252699535531764&q=miranda&hl=en&as_sdt=2006"
                }
            }
        ],
        "pagination": {
            "current": 1,
            "start": 0,
            "num": 10,
            "next_start": 10,
            "has_next": true
        }
    },
    "meta": {
        "duration_ms": 2400,
        "credits": 9
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | q is missing, as_sdt is not 2006 or 4,33, start is not a multiple of 10, or hl is not en. This response is not billable. |
| 503 | Case Law Unavailable | Google Scholar blocked the request or returned a page that does not match the request. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
