# List school districts and their calendars

> Premium.

Source: https://api.tailend.dev/docs/api/list-school-calendars

```http
GET https://api.tailend.dev/v1/{metro}/school-calendars
X-API-Key: $TAILEND_API_KEY
```

Premium. Lists the school districts we cover in a metro, each with its
current and upcoming published calendar (`null` when we hold none for
that school year). A school year runs 1 July to 30 June and is named
by the year it starts in, for example `2026-27`; "current" is the
school year containing today in the metro.

`first_day_on` and `last_day_on` are the earliest first day and the
latest last day across grades, because districts often start some
grades earlier than others. Dates are the metro's local calendar dates.

A key without the `school_calendars` feature gets `403
feature_not_in_plan`. Snow days and other emergency closures are not
covered. See [School calendars](https://api.tailend.dev/docs/school-calendars.md).

Authorization: send your key in the `X-API-Key` header. Requires the partner plan or a key entitled to it. See Plans & access.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `metro` | string | yes | Metro slug from /v1/metros (e.g. philadelphia). |

## Example request

```bash
curl -sS \
  -H "X-API-Key: $TAILEND_API_KEY" \
  "https://api.tailend.dev/v1/philadelphia/school-calendars"
```

## Responses

### 200

Districts with their current and upcoming calendar

```json
{
  "data": [
    {
      "district": {
        "slug": "example-school-district",
        "name": "Example School District",
        "state": "PA",
        "website_url": "https://www.example.org"
      },
      "current": {
        "school_year": "2026-27",
        "first_day_on": "2026-08-31",
        "last_day_on": "2027-06-10",
        "published_at": "2026-07-15T14:00:00Z",
        "board_approved_on": "2026-06-18"
      },
      "upcoming": null
    }
  ],
  "meta": {
    "metro": "philadelphia",
    "count": 1
  }
}
```

### 400

Malformed or contradictory parameters (lat without lng, to before from, unknown category), or a cursor this API did not issue for this exact request — replayed from another endpoint, resource, metro or filter set, hand-crafted, or altered.

```json
{
  "error": {
    "code": "bad_request",
    "message": "radius_m: must be at least 100",
    "details": {
      "param": "radius_m"
    },
    "request_id": "req_dfbc3295a8382b05"
  }
}
```

### 401

Missing, unknown or revoked X-API-Key.

```json
{
  "error": {
    "code": "unauthorized",
    "message": "missing X-API-Key header",
    "request_id": "req_90e63908273f6bff"
  }
}
```

### 403

Two different reasons share this status.

```json
{
  "error": {
    "code": "forbidden",
    "message": "key is not scoped to metro 'boston'",
    "details": {
      "metros": [
        "philadelphia"
      ]
    },
    "request_id": "req_9e7a750acef48ab2"
  }
}
```

### 404

No published, active resource with that id (or unknown metro).

```json
{
  "error": {
    "code": "not_found",
    "message": "unknown metro 'boston'",
    "request_id": "req_7431b51e10ec2b77"
  }
}
```

### 405

The path exists; the method does not.

```json
{
  "error": {
    "code": "method_not_allowed",
    "message": "POST is not allowed on this path; this API is read-only",
    "details": {
      "allow": [
        "GET",
        "HEAD",
        "OPTIONS"
      ]
    },
    "request_id": "req_01J9Z3"
  }
}
```

### 429

A limit was reached.

```json
{
  "error": {
    "code": "rate_limited",
    "message": "3 requests per minute exceeded",
    "request_id": "req_06bfd3c2d5e8aa9f"
  }
}
```

### 500

A bug on our side.

```json
{
  "error": {
    "code": "internal",
    "message": "internal error",
    "request_id": "req_01J9Z3"
  }
}
```

### 501

This endpoint or feature is not available and will not become available without a configuration change — for ?address=, this means no geocoder is configured.

```json
{
  "error": {
    "code": "not_implemented",
    "message": "this endpoint is not enabled on this deployment; it is not a fault and retrying will not help",
    "request_id": "req_01J9Z3"
  }
}
```

### 503

A transient outage: a dependency could not be reached or did not answer in time.

```json
{
  "error": {
    "code": "unavailable",
    "message": "the service is temporarily unable to serve this request; retry after the interval in Retry-After",
    "request_id": "req_01J9Z3"
  }
}
```
