# ISO week number

Find the ISO 8601 week number of a date, or the Monday to Sunday date range of a given week.

- Endpoint: `POST https://setget.net/v1/tools/iso-week` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `iso-week`
- Page: https://setget.net/tools/iso-week

## Inputs

- `date` (optional, string): A date to find the week of. Leave empty when sending year and week.
- `year` (optional, integer, range 1..9999): ISO year, used together with week.
- `week` (optional, integer, range 1..53): ISO week number, used together with year.

## Example 1

```json
{"input":{"date":"2024-12-30"}}
```

Result:

```json
{"iso_year":2025,"week":1,"weekday":1,"weekday_name":"Monday","label":"2025-W01","start":"2024-12-30","end":"2025-01-05","weeks_in_year":52}
```

## Example 2: The dates of a week

```json
{"input":{"year":2026,"week":53}}
```

Result:

```json
{"iso_year":2026,"week":53,"weekday":null,"weekday_name":null,"label":"2026-W53","start":"2026-12-28","end":"2027-01-03","weeks_in_year":53}
```

**Why is the ISO year different from the calendar year?** ISO weeks run Monday to Sunday and week 1 is the week with the first Thursday of January. So the last days of December can belong to week 1 of the next year, and the first days of January to week 52 or 53 of the previous one.

**Which years have 53 weeks?** Years that start on a Thursday, and leap years that start on a Wednesday.
