Discover/bailii.org API
live

bailii.org APIbailii.org

Search and retrieve court judgments from BAILII across UK and Irish jurisdictions. Access full judgment text, citations, metadata, and case details via 3 endpoints.

Endpoints
3
Updated
3mo ago
Try it
Page number (1-based)
Sort order. Accepted values: relevance, date, date_oldest, title, jurisdiction
Direct search query string (advanced boolean syntax). Use this OR phrase/all_words/any_wor
Exact phrase to search for (e.g., 'negligence')
Filter results up to this date (DD/MM/YYYY format)
Results per page
All of these words must appear (space-separated)
Any of these words may appear (space-separated)
Filter results from this date (DD/MM/YYYY format)
Jurisdiction filter. Accepted values: ie (all Ireland), ie_sc (Supreme Court), ie_ca (Cour
api.parse.bot/scraper/6cc717d3-f3c8-4638-9679-54b268171b75/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6cc717d3-f3c8-4638-9679-54b268171b75/search_cases?page=1&phrase=negligence&per_page=5&jurisdiction=ew' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search BAILII case law databases with various filters. Returns paginated results with case titles, citations, courts, dates, and relevance scores.

Input
ParamTypeDescription
pageintegerPage number (1-based)
sortstringSort order. Accepted values: relevance, date, date_oldest, title, jurisdiction
querystringDirect search query string (advanced boolean syntax). Use this OR phrase/all_words/any_words.
phrasestringExact phrase to search for (e.g., 'negligence')
date_tostringFilter results up to this date (DD/MM/YYYY format)
per_pageintegerResults per page
all_wordsstringAll of these words must appear (space-separated)
any_wordsstringAny of these words may appear (space-separated)
date_fromstringFilter results from this date (DD/MM/YYYY format)
jurisdictionstringJurisdiction filter. Accepted values: ie (all Ireland), ie_sc (Supreme Court), ie_ca (Court of Appeal), ie_hc (High Court), uk (all UK), ew (England & Wales), nie (Northern Ireland), scot (Scotland). Or a direct mask_path like 'ie/cases/IESC'.
Response
{
  "type": "object",
  "fields": {
    "page": "integer current page number",
    "total": "integer total number of matching documents",
    "results": "array of objects with keys: title, citation, court, date, relevance_pct, file_size, case_url, case_path, highlighted_url",
    "per_page": "integer results per page",
    "total_pages": "integer total number of pages"
  },
  "sample": {
    "data": {
      "page": 1,
      "total": 82,
      "results": [
        {
          "date": "20 April 2016",
          "court": "High Court of Ireland Decisions",
          "title": "Persona Digital Telephony Ltd & anor -v- The Minister for Public Enterprise & ors [2016] IEHC 187 (20 April 2016)",
          "case_url": "https://www.bailii.org/ie/cases/IEHC/2016/H187.html",
          "citation": "[2016] IEHC 187",
          "case_path": "ie/cases/IEHC/2016/H187.html",
          "file_size": "103 KB",
          "relevance_pct": 17,
          "highlighted_url": "https://www.bailii.org/cgi-bin/format.cgi?doc=/ie/cases/IEHC/2016/H187.html&query=(\"champerty\")"
        }
      ],
      "per_page": 5,
      "total_pages": 17
    },
    "status": "success"
  }
}

About the bailii.org API

The BAILII API provides 3 endpoints to search and retrieve court judgments from the British and Irish Legal Information Institute database, covering jurisdictions across Ireland, England & Wales, Scotland, and Northern Ireland. Use search_cases to run paginated searches with boolean query syntax, search_cases_rss to pull a complete unpaginated result set, or get_case_detail to fetch structured metadata and the full judgment text for any individual case.

Search Endpoints

The search_cases endpoint accepts flexible query inputs: you can supply a raw boolean query string via the query parameter, or use the phrase, all_words, and any_words parameters for structured keyword matching. Results are paginated and each item in the results array carries a title, citation, court, date, relevance_pct, file_size, and both a case_url and case_path for downstream lookups. You can sort by relevance, date, date_oldest, title, or jurisdiction, and narrow results using date_to for a cutoff date.

RSS-Style Full Result Retrieval

search_cases_rss accepts the same query parameters as search_cases and additionally supports a jurisdiction filter (e.g., ie_hc for the Irish High Court, ie_sc for the Supreme Court). Rather than paginating, it returns all matching results in a single response, each with title, citation, court, date, case_url, and case_path. This is suited for bulk collection or complete coverage of a search query without managing pagination state.

Case Detail

The get_case_detail endpoint accepts either a case_url (full URL) or a case_path (relative path obtained from a prior search). It returns structured fields including title, court, date_of_delivery, judgment_by, status (Approved/Unapproved), result, and judgment_text — the complete text of the judgment. An extra_metadata object captures additional fields that vary by case and court. The status and result fields may be null depending on how the source document is structured.

Coverage and Limitations

BAILII's database spans courts across the UK and Republic of Ireland, but not all historical judgments are digitised or available in full text. The judgment_text field may be null for some older cases. Jurisdiction filtering is only available on the search_cases_rss endpoint, not on search_cases. Date filtering via date_to accepts DD/MM/YYYY format; there is no date_from parameter in the current spec.

Common use cases
  • Retrieving the full judgment text of Irish High Court decisions by querying get_case_detail with a case_path
  • Building a case law alert system by polling search_cases_rss with keyword filters and sorting by date
  • Extracting citation and court metadata for a batch of cases returned by search_cases for citation network analysis
  • Filtering Supreme Court of Ireland judgments by jurisdiction code ie_sc via search_cases_rss
  • Checking the approval status (Approved/Unapproved) of judgments for legal research quality filtering
  • Aggregating cases by judge using the judgment_by field returned from get_case_detail
  • Searching for exact legal phrases like 'duty of care' across all jurisdictions using the phrase parameter
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does BAILII have an official developer API?+
BAILII does not publish a documented public developer API. The organisation provides open access to its legal database through its website at bailii.org, but there is no official REST API with keys, versioning, or developer documentation.
What does `get_case_detail` return and how do I identify which case to fetch?+
It returns title, court, date_of_delivery, judgment_by, status, result, judgment_text, and an extra_metadata object for additional court-specific fields. To identify a case, pass either the case_url (e.g., https://www.bailii.org/ie/cases/IEHC/2016/H187.html) or the case_path obtained from a prior search_cases or search_cases_rss call.
Can I filter `search_cases` results by jurisdiction?+
The search_cases endpoint does not currently support a jurisdiction filter parameter. Jurisdiction filtering (e.g., ie_sc, ie_hc, ie_ca) is available on search_cases_rss only. You can fork the API on Parse and revise it to add jurisdiction filtering to the paginated search endpoint.
Is there a `date_from` filter to search cases from a specific start date?+
Not currently. The search_cases endpoint supports a date_to parameter for an upper date cutoff in DD/MM/YYYY format, but no date_from for a lower bound. You can fork the API on Parse and revise it to add a start-date filter.
Are there cases where `judgment_text` will be null?+
Yes. The judgment_text field in get_case_detail can be null when the source document does not include extractable full text — this is more common with older or scanned judgments in the BAILII database. The structured metadata fields (title, court, date_of_delivery, status) are more consistently populated.
Page content last updated . Spec covers 3 endpoints from bailii.org.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.
BAILII Case Law API – Search UK & Irish Courts · Parse