# parkrun API

> parkrun returns event results and finisher data, available as a workflow and API.

parkrun returns finishers in position order for an event. Get event results needs an event name and returns the latest result or a result for a specified date, with a maximum number of runners.

- Page: https://fous.com/workflows/parkrun
- Handle: `@parkrun`
- Category: [Sports](https://fous.com/workflows/category/sports)
- Source website: https://parkrun.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with parkrun.

## Methods

### Get event results

Operation `get_event_results`, version 1. 1 credit per call.

Get the latest or a dated public parkrun event result, including finishers in position order. If a name matches several events, the closest directory name match is used.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `date` | string | no | `"2026-09-26"` | Run date in YYYY-MM-DD format, for example 2026-09-19. Defaults to the latest run. |
| `event` | string | yes | `"Albert Melbourne"` | Name of the parkrun, for example Bushy or Albert Park. |
| `max_results` | integer | no | `3` | Maximum number of finishing runners to return, for example 100. Defaults to 500. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "event"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "date",
      "description": "Run date in YYYY-MM-DD format, for example 2026-09-19. Defaults to the latest run.",
      "examples": [
        "2026-09-26",
        "2026-09-19"
      ]
    },
    "event": {
      "type": "string",
      "description": "Name of the parkrun, for example Bushy or Albert Park.",
      "examples": [
        "Albert Melbourne",
        "Bushy"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 500,
      "maximum": 2000,
      "minimum": 1,
      "description": "Maximum number of finishing runners to return, for example 100. Defaults to 500.",
      "x-fous-developer": true,
      "examples": [
        3,
        5,
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "date": "2026-09-26",
      "event": "Albert Melbourne",
      "max_results": 3
    },
    {
      "date": "2026-09-19",
      "event": "Bushy",
      "max_results": 5
    },
    {
      "event": "Bushy",
      "max_results": 2
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `date` | string | `"2026-09-26"` |  |
| `runners` | array |  |  |
| `runners[].club` | string or null | `"Hercules Wimbledon AC"` |  |
| `runners[].note` | string or null | `"First Timer!"` |  |
| `runners[].time` | string or null | `"16:20"` |  |
| `runners[].gender` | string or null | `"Male"` |  |
| `runners[].position` | integer | `1` |  |
| `runners[].runner_name` | string | `"Jonny EARL"` |  |
| `runners[].age_category` | string or null | `"VM40-44"` |  |
| `runners[].time_seconds` | integer or null | `980` |  |
| `runners[].runner_page_link` | string or null | `"https://www.parkrun.com.au/albertmelbourne/parkrunner/216955"` |  |
| `runners[].age_grade_percent` | number or null | `84.8` |  |
| `runners[].parkrunner_number` | integer or null | `216955` |  |
| `event_name` | string | `"Albert parkrun, Melbourne"` |  |
| `run_number` | integer | `708` |  |
| `results_page_link` | string | `"https://www.parkrun.com.au/albertmelbourne/results/2026-09-26/"` |  |
| `number_of_finishers` | integer | `577` |  |

**Example input**

```json
{
  "date": "2026-09-26",
  "event": "Albert Melbourne",
  "max_results": 3
}
```

**Example output**

```json
{
  "date": "2026-09-26",
  "runners": [
    {
      "club": "Hercules Wimbledon AC",
      "note": null,
      "time": "16:20",
      "gender": "Male",
      "position": 1,
      "runner_name": "Jonny EARL",
      "age_category": "VM40-44",
      "time_seconds": 980,
      "runner_page_link": "https://www.parkrun.com.au/albertmelbourne/parkrunner/216955",
      "age_grade_percent": 84.8,
      "parkrunner_number": 216955
    },
    {
      "club": null,
      "note": null,
      "time": null,
      "gender": null,
      "position": 2,
      "runner_name": "Unknown",
      "age_category": null,
      "time_seconds": null,
      "runner_page_link": "https://www.parkrun.com.au/albertmelbourne/parkrunner/2214",
      "age_grade_percent": null,
      "parkrunner_number": 2214
    },
    {
      "club": "Melbourne University AC",
      "note": null,
      "time": "16:45",
      "gender": "Male",
      "position": 3,
      "runner_name": "Josh DOHERTY",
      "age_category": "SM25-29",
      "time_seconds": 1005,
      "runner_page_link": "https://www.parkrun.com.au/albertmelbourne/parkrunner/5084692",
      "age_grade_percent": 77.01,
      "parkrunner_number": 5084692
    }
  ],
  "event_name": "Albert parkrun, Melbourne",
  "run_number": 708,
  "results_page_link": "https://www.parkrun.com.au/albertmelbourne/results/2026-09-26/",
  "number_of_finishers": 577
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@parkrun",
  "visibility": "public",
  "operation": "get_event_results",
  "version": 1,
  "input": {
    "date": "2026-09-26",
    "event": "Albert Melbourne",
    "max_results": 3
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@parkrun\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_event_results\",\n  \"version\": 1,\n  \"input\": {\n    \"date\": \"2026-09-26\",\n    \"event\": \"Albert Melbourne\",\n    \"max_results\": 3\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@parkrun",
  "visibility": "public",
  "operation": "get_event_results",
  "version": 1,
  "input": {
    "date": "2026-09-26",
    "event": "Albert Melbourne",
    "max_results": 3
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@parkrun","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare finish times across event dates
- Review runner positions and age grades
- Track the number of finishers at an event
- Find runner clubs and age categories

## FAQ

### Is Fous affiliated with parkrun?

No. Fous is not affiliated with parkrun. This workflow reads the public parkrun.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a parkrun account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from parkrun.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What were the latest results at an event?

Use Get event results with the event name; it defaults to the latest run.

### How can I get results for a specific date?

Use Get event results with the event name and a date in YYYY-MM-DD format.

### Can I limit how many finishers are returned?

Yes. Get event results accepts a maximum number of finishing runners and defaults to 500.

## Related

- [All Sports workflows](https://fous.com/workflows/category/sports)
