> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Render the calendar widget

**Published**: 2026-11-30
**Category**: Content

## `GET /widgets/calendar/:variableKey`

**Render the calendar widget**

Returns a self-contained HTML page that renders the `calendar`
variable named by `variableKey`. Embed it in an `<iframe>`, so its
CSS and JavaScript stay out of your page.

The `locale` query parameter picks the language of the variable and
the labels; a missing or unusable value renders in the site's
default locale. `display` is `grid` (default) or `list`. Event
descriptions keep only basic formatting tags, with no attributes.

Errors: 404 `RESOURCE_NOT_FOUND` when the site has no `calendar`
variable with that key.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `variableKey` | path | string | Yes | Key of the calendar variable to render |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `404` | Not found |


> **Notes:** Content type: `text/html`. Cache: `public, max-age=300`. Embed it in
> an `<iframe>` rather than injecting the HTML into your page.

### Examples

```html
<iframe
  src="https://api.lynkow.com/storefront/{siteId}/widgets/calendar/business-hours?locale=en&display=list"
  width="320" height="280"
  loading="lazy">
</iframe>
```

### Response Example

```
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Calendar widget</title>
    <style>/* scoped CSS */</style>
  </head>
  <body>
    <div class="lynkow-calendar lynkow-calendar--grid">
      <table>...</table>
    </div>
  </body>
</html>
```

---