# UK Case Law Scraper — Find Case Law Judgments API (`nomad-agent/uk-case-law-scraper`) Actor

Search UK court judgments and tribunal decisions from The National Archives' Find Case Law service via its official public API. Filter by keyword, court, party, judge and date range — get neutral citation, parties, court, date, links and optional full text. No login, no proxies, no HTML parsing.

- **URL**: https://apify.com/nomad-agent/uk-case-law-scraper.md
- **Developed by:** [Nomad.Dev](https://apify.com/nomad-agent) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## UK Case Law Scraper — Find Case Law Judgments API

Search UK court judgments and tribunal decisions from The National Archives' **Find Case Law** service (caselaw.nationalarchives.gov.uk) through its official public API — keyword, court, party, judge, date-range or exact-citation filters, clean structured records out, optional full judgment text. No login, no proxies, no HTML parsing.

Covers the UK Supreme Court, Privy Council, Court of Appeal, High Court, Family Court, Upper and First-tier Tribunals, Employment Appeal Tribunal and more — judgments from 2001 onwards (older for some courts), updated as courts publish.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `query` | string | `"negligence"` | Free-text search across judgments. Leave empty to browse latest judgments matching the other filters. Ignored when `citation` is set. |
| `citation` | string | *(empty)* | Look up one judgment by its exact neutral citation, e.g. `"[2024] UKSC 1"`. When set, this takes over the search: `query`, `courts`, `party`, `judge` and the date range are all ignored. Returns the exact citation match(es); falls back to raw (unfiltered) search hits if nothing matches exactly. See [Citation lookup](#citation-lookup) below. |
| `courts` | array (multi-select) | *(empty = all)* | Court/tribunal codes to filter by — see [Court codes](#court-codes). Ignored when `citation` is set. |
| `party` | string | *(empty)* | Filter on a party's name (claimant, defendant, appellant, respondent...). Ignored when `citation` is set. |
| `judge` | string | *(empty)* | Filter on the judge's name. Ignored when `citation` is set. |
| `fromDate` | date | *(empty)* | Only judgments on/after this date. Ignored when `citation` is set. |
| `toDate` | date | *(empty)* | Only judgments on/before this date. Ignored when `citation` is set. |
| `includeFullText` | boolean | `false` | Fetch each judgment's XML and include parties, judges and the full judgment text. Slower and heavier output. |
| `onlyNewSinceLastRun` | boolean | `false` | Only output judgments not seen in previous runs with this flag. See [Delta mode](#delta-mode) below. |
| `maxItems` | integer | `50` | Hard cap on judgments considered per run. `0` = no cap (use with care). |
| `concurrency` *(Advanced)* | integer | `4` | Parallel detail fetches when `includeFullText` is on. Keep low — this is a public government service. |

### What UK case-law data does this scraper extract?

One flat JSON record per judgment:

| Field | Meaning |
|---|---|
| `citation` | Neutral citation, e.g. `[2024] UKSC 1` |
| `title` | Case name (parties as titled by the court) |
| `court` | Court / chamber name, e.g. `Court of Appeal (Civil Division)` |
| `date` | Judgment date (`YYYY-MM-DD`) |
| `url` | Judgment page on Find Case Law |
| `pdfUrl` | Official PDF |
| `xmlUrl` | Akoma Ntoso (LegalDocML) XML |
| `slug` | Court/year/number path, e.g. `uksc/2024/1` |
| `fclId` | Find Case Law document ID |
| `contentHash` | Content hash — detect judgment revisions |
| `parties` | Party names (with **Include full text**) |
| `judges` | Judge names where marked up (with **Include full text**) |
| `fullText` | Plain-text judgment body (with **Include full text**) |
| `isNew` | `true` on every pushed record — only present when **Only new since last run** is on |
| `citationExactMatch` | `true`/`false` — only present when **Citation** is set; see [Citation lookup](#citation-lookup) |

### How to scrape UK judgments with this Actor

1. Enter a **search query** (`negligence`, `data protection`, a party name...) — or leave it empty and filter by court/date only. Or set **Citation** to look up one specific judgment (see below).
2. Optionally restrict by **courts** (`uksc`, `ewca/civ`, `ewhc/kb`, `ukeat`, ...), **party**, **judge**, **fromDate** / **toDate**.
3. Turn on **Include full text** if you need parties, judges and the judgment body.
4. Turn on **Only new since last run** to skip (and avoid billing for) judgments already returned by a previous run — handy for polling the same query on a schedule.
5. Run and export JSON, CSV or Excel — or call it over the API:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("nomad-jobs/uk-case-law-scraper").call(run_input={
    "query": "negligence",
    "courts": ["uksc", "ewca/civ"],
    "fromDate": "2024-01-01",
    "maxItems": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["citation"], "|", item["title"], item["url"])
````

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/nomad-jobs~uk-case-law-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"query": "negligence", "courts": ["uksc"], "maxItems": 50}'
```

### Output example

```json
{
  "source": "find-case-law",
  "citation": "[2024] UKSC 1",
  "title": "Paul and another v Royal Wolverhampton NHS Trust",
  "court": "United Kingdom Supreme Court",
  "date": "2024-01-11",
  "url": "https://caselaw.nationalarchives.gov.uk/uksc/2024/1",
  "pdfUrl": "https://assets.caselaw.nationalarchives.gov.uk/uksc/2024/1/uksc_2024_1.pdf",
  "xmlUrl": "https://caselaw.nationalarchives.gov.uk/uksc/2024/1/data.xml",
  "slug": "uksc/2024/1",
  "fclId": "gxdrmpqf",
  "parties": ["Paul and another", "Royal Wolverhampton NHS Trust"],
  "judges": ["Lord Leggatt", "Lady Rose"],
  "fullText": "Hilary Term [2024] UKSC 1 On appeal from..."
}
```

`isNew` (delta mode) and `citationExactMatch` (citation lookup) are added on top of this shape when those inputs are used — see [Delta mode](#delta-mode) and [Citation lookup](#citation-lookup).

### Court codes

`uksc` Supreme Court · `ukpc` Privy Council · `ewca/civ`, `ewca/crim` Court of Appeal · `ewhc/kb`, `ewhc/ch`, `ewhc/admin`, `ewhc/comm`, `ewhc/fam`, `ewhc/pat`, `ewhc/tcc` High Court divisions · `ewfc` Family Court · `ewcop` Court of Protection · `ukut/iac`, `ukut/lc`, `ukut/tcc`, `ukut/aac` Upper Tribunal · `ukeat` Employment Appeal Tribunal · `ukftt/tc`, `ukftt/grc` First-tier Tribunal.

The **Courts** input is a multi-select of exactly these codes — pick as many as you need, or leave empty for all courts.

### Citation lookup

Set **Citation** to a neutral citation (e.g. `[2024] UKSC 1`) to look up one specific judgment instead of running a broad search. When set:

- `query`, `courts`, `party`, `judge`, `fromDate` and `toDate` are all ignored.
- The Actor searches Find Case Law for that citation text, then keeps only the result(s) whose citation matches **exactly** (whitespace/case-insensitive) — tagged `"citationExactMatch": true`.
- If nothing matches exactly (e.g. a slightly malformed citation), it falls back to returning the raw, unfiltered search hits for that text instead, tagged `"citationExactMatch": false`, so you still get something useful to inspect.

### Delta mode

Turn on **Only new since last run** (`onlyNewSinceLastRun`) to have the Actor remember which judgments it has already returned (keyed by `fclId`, falling back to `slug` then `citation`) across runs, and skip judgments it has already seen.

- Skipped (already-seen) judgments are **not pushed and not billed** — only genuinely new judgments count toward `maxItems` billing and appear in the dataset.
- Every judgment that *is* pushed with this flag on is tagged `"isNew": true`.
- State is kept in a dedicated key-value store (separate from the run's default store) so it persists across scheduled runs of the same Actor.

### Integrations

Export results as JSON, CSV or Excel, or wire this Actor into [Make](https://make.com), [Zapier](https://zapier.com) or [n8n](https://n8n.io); call it programmatically with `run-sync-get-dataset-items`; or use it from AI agents via the [Apify MCP server](https://mcp.apify.com).

### Pricing

Pay per event: **$0.05 per Actor start** and **$0.004 per judgment returned**.
100 judgments ≈ $0.45. No subscription — pay only for what you fetch.

### Use cases

- Legal research: track new judgments by topic, court or judge
- Litigation intelligence: monitor cases naming a company or party
- Feed RAG / AI legal assistants with authoritative primary law
- Academic analysis of UK courts and tribunals
- Compliance and news alerting on precedent-setting decisions

### FAQ

**Is it legal to scrape this data?**
Yes — Find Case Law is The National Archives' official open service and this Actor uses only its documented public API. Judgments are Crown copyright, re-usable under the [Open Justice Licence](https://caselaw.nationalarchives.gov.uk/open-justice-licence). Note: the licence requires attribution and does **not** cover programmatic *computational analysis* (e.g. bulk text/data mining) — that needs a (free) licence application to The National Archives. Retrieval, research, republication with attribution are fine; check the licence for your use case.

**Do I need an API key or login?**
No. The Find Case Law public API is unauthenticated.

**How far back does coverage go?**
Consistently from 2001–2003 onwards depending on court; the archive grows as The National Archives ingests older judgments.

**How fresh is the data?**
Every run hits the live API — new judgments appear as courts publish them, often same-day.

**Something broken or missing?**
Open an issue on the Actor's **Issues** tab — it is monitored and fixes ship fast.

# Actor input Schema

## `query` (type: `string`):

Free-text search across judgments (e.g. "negligence", "data protection"). Leave empty to browse latest judgments matching the other filters. Ignored when Citation is set.

## `citation` (type: `string`):

Look up one judgment by its exact neutral citation, e.g. "\[2024] UKSC 1". When set, this takes over the search: Search query, Courts, Party, Judge and the date range are all ignored, and the actor returns only the judgment(s) whose citation matches exactly (case/whitespace-insensitive). If nothing matches exactly, it falls back to returning the raw (unfiltered) search hits for that citation text instead. Leave empty for a normal search.

## `courts` (type: `array`):

Optional court/tribunal codes to filter by. Empty = all courts. Ignored when Citation is set.

## `party` (type: `string`):

Optional filter on a party's name (claimant, defendant, appellant, respondent...). Ignored when Citation is set.

## `judge` (type: `string`):

Optional filter on the judge's name. Ignored when Citation is set.

## `fromDate` (type: `string`):

Only judgments on/after this date. Ignored when Citation is set.

## `toDate` (type: `string`):

Only judgments on/before this date. Ignored when Citation is set.

## `includeFullText` (type: `boolean`):

Fetch each judgment's XML and include parties and the full judgment text. Slower and heavier output. Full text is Crown copyright, re-usable under the Open Justice Licence.

## `onlyNewSinceLastRun` (type: `boolean`):

Only output judgments not seen in previous runs with this flag. Skipped (already-seen) judgments are not pushed or billed, so repeat runs against the same query only charge for genuinely new results.

## `maxItems` (type: `integer`):

Hard cap on judgments considered per run. 0 = no cap (use with care — broad queries match thousands of judgments). With 'Only new since last run' on, some considered judgments may be skipped as already-seen, so fewer than this may actually be pushed and billed.

## `concurrency` (type: `integer`):

How many judgment pages to fetch in parallel when 'Include full text' is on. Keep low — this is a public government service.

## Actor input object example

```json
{
  "query": "negligence",
  "includeFullText": false,
  "onlyNewSinceLastRun": false,
  "maxItems": 50,
  "concurrency": 4
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "negligence"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nomad-agent/uk-case-law-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "query": "negligence" }

# Run the Actor and wait for it to finish
run = client.actor("nomad-agent/uk-case-law-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "negligence"
}' |
apify call nomad-agent/uk-case-law-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nomad-agent/uk-case-law-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "UK Case Law Scraper — Find Case Law Judgments API",
        "description": "Search UK court judgments and tribunal decisions from The National Archives' Find Case Law service via its official public API. Filter by keyword, court, party, judge and date range — get neutral citation, parties, court, date, links and optional full text. No login, no proxies, no HTML parsing.",
        "version": "0.1",
        "x-build-id": "WV8ePH3BJNhC6dV1A"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/nomad-agent~uk-case-law-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-nomad-agent-uk-case-law-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/nomad-agent~uk-case-law-scraper/runs": {
            "post": {
                "operationId": "runs-sync-nomad-agent-uk-case-law-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/nomad-agent~uk-case-law-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-nomad-agent-uk-case-law-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Free-text search across judgments (e.g. \"negligence\", \"data protection\"). Leave empty to browse latest judgments matching the other filters. Ignored when Citation is set."
                    },
                    "citation": {
                        "title": "Citation",
                        "type": "string",
                        "description": "Look up one judgment by its exact neutral citation, e.g. \"[2024] UKSC 1\". When set, this takes over the search: Search query, Courts, Party, Judge and the date range are all ignored, and the actor returns only the judgment(s) whose citation matches exactly (case/whitespace-insensitive). If nothing matches exactly, it falls back to returning the raw (unfiltered) search hits for that citation text instead. Leave empty for a normal search."
                    },
                    "courts": {
                        "title": "Courts",
                        "type": "array",
                        "description": "Optional court/tribunal codes to filter by. Empty = all courts. Ignored when Citation is set.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "uksc",
                                "ukpc",
                                "ewca/civ",
                                "ewca/crim",
                                "ewhc/kb",
                                "ewhc/ch",
                                "ewhc/admin",
                                "ewhc/comm",
                                "ewhc/fam",
                                "ewhc/pat",
                                "ewhc/tcc",
                                "ewfc",
                                "ewcop",
                                "ukut/iac",
                                "ukut/lc",
                                "ukut/tcc",
                                "ukut/aac",
                                "ukeat",
                                "ukftt/tc",
                                "ukftt/grc"
                            ],
                            "enumTitles": [
                                "Supreme Court (uksc)",
                                "Privy Council (ukpc)",
                                "Court of Appeal — Civil Division (ewca/civ)",
                                "Court of Appeal — Criminal Division (ewca/crim)",
                                "High Court — King's Bench Division (ewhc/kb)",
                                "High Court — Chancery Division (ewhc/ch)",
                                "High Court — Administrative Court (ewhc/admin)",
                                "High Court — Commercial Court (ewhc/comm)",
                                "High Court — Family Division (ewhc/fam)",
                                "High Court — Patents Court (ewhc/pat)",
                                "High Court — Technology and Construction Court (ewhc/tcc)",
                                "Family Court (ewfc)",
                                "Court of Protection (ewcop)",
                                "Upper Tribunal — Immigration and Asylum Chamber (ukut/iac)",
                                "Upper Tribunal — Lands Chamber (ukut/lc)",
                                "Upper Tribunal — Tax and Chancery Chamber (ukut/tcc)",
                                "Upper Tribunal — Administrative Appeals Chamber (ukut/aac)",
                                "Employment Appeal Tribunal (ukeat)",
                                "First-tier Tribunal — Tax Chamber (ukftt/tc)",
                                "First-tier Tribunal — General Regulatory Chamber (ukftt/grc)"
                            ]
                        }
                    },
                    "party": {
                        "title": "Party name",
                        "type": "string",
                        "description": "Optional filter on a party's name (claimant, defendant, appellant, respondent...). Ignored when Citation is set."
                    },
                    "judge": {
                        "title": "Judge name",
                        "type": "string",
                        "description": "Optional filter on the judge's name. Ignored when Citation is set."
                    },
                    "fromDate": {
                        "title": "From date",
                        "type": "string",
                        "description": "Only judgments on/after this date. Ignored when Citation is set."
                    },
                    "toDate": {
                        "title": "To date",
                        "type": "string",
                        "description": "Only judgments on/before this date. Ignored when Citation is set."
                    },
                    "includeFullText": {
                        "title": "Include full text",
                        "type": "boolean",
                        "description": "Fetch each judgment's XML and include parties and the full judgment text. Slower and heavier output. Full text is Crown copyright, re-usable under the Open Justice Licence.",
                        "default": false
                    },
                    "onlyNewSinceLastRun": {
                        "title": "Only new since last run",
                        "type": "boolean",
                        "description": "Only output judgments not seen in previous runs with this flag. Skipped (already-seen) judgments are not pushed or billed, so repeat runs against the same query only charge for genuinely new results.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on judgments considered per run. 0 = no cap (use with care — broad queries match thousands of judgments). With 'Only new since last run' on, some considered judgments may be skipped as already-seen, so fewer than this may actually be pushed and billed.",
                        "default": 50
                    },
                    "concurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 8,
                        "type": "integer",
                        "description": "How many judgment pages to fetch in parallel when 'Include full text' is on. Keep low — this is a public government service.",
                        "default": 4
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
