# Economic calendar

> Scheduled releases of economic indicators, and a personal iCalendar feed.

URL: https://renzo-digital.com/docs/resources/economic-calendar

The economic calendar lists scheduled releases of indicators, such as US CPI or Nonfarm Payrolls, with forecast, previous and actual values. Reads are open to everyone. Each customer can also have a private `.ics` feed for a calendar app. The feed needs a token to set up.

## Endpoints

| Operation | What it does | Auth |
| --- | --- | --- |
| `GET /api/v1/economic-calendar/releases` | List releases in a date range, earliest first. Cursor-paginated. | None |
| `GET /api/v1/economic-calendar/releases/{release_id}` | Read one release. | None |
| `GET /api/v1/economic-calendar/indicators/{indicator_id}` | Read one indicator. | None |
| `GET /api/v1/economic-calendar/indicators/{indicator_id}/history` | List past releases of one indicator, newest first. Cursor-paginated. | None |
| `GET /api/v1/economic-calendar/countries` | List the countries that have releases. | None |
| `GET /api/v1/economic-calendar/feed` | Read your feed URL and filters. The first read creates the feed. | Token |
| `PUT /api/v1/economic-calendar/feed/filters` | Set the countries, importance levels and language. Declares `Idempotency-Key`. | Token and username |
| `POST /api/v1/economic-calendar/feed/reset` | Give the feed a new secret URL. Declares `Idempotency-Key`. | Token and username |
| `GET /api/v1/economic-calendar/feed/{token}.ics` | The `.ics` file calendar apps poll. | None, the URL token is the key |

Calls that need a username answer `409` [`profile_incomplete`](https://renzo-digital.com/docs/error-codes#profile_incomplete) without one. See [Account](https://renzo-digital.com/docs/resources/account). The two feed calls above declare `Idempotency-Key`. Any mutating call accepts it. See [Idempotency](https://renzo-digital.com/docs/concepts/idempotency).

## Example: high-impact US releases

```bash tab="curl"
curl "$BASE/api/v1/economic-calendar/releases?start=2026-11-06&countries=US&importance=high&limit=1"
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]

answer = requests.get(
    f"{BASE}/api/v1/economic-calendar/releases",
    params={"start": "2026-11-06", "countries": "US", "importance": "high", "limit": 1},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE } = process.env;

const answer = await fetch(`${BASE}/api/v1/economic-calendar/releases?start=2026-11-06&countries=US&importance=high&limit=1`);
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "items": [
    {
      "id": "d36efe59-2724-5241-b8c6-01e51cac7942",
      "indicator": {
        "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8",
        "title": "Nonfarm Payrolls",
        "title_locale": "en",
        "country": "US",
        "category": "labour",
        "unit": null,
        "scale": "K",
        "period_granularity": "month"
      },
      "reference_period": "2026-10",
      "scheduled_at": "2026-11-06T13:30:00Z",
      "time_precision": "exact",
      "importance": "high",
      "actual": null,
      "forecast": 185000,
      "previous": 254000,
      "revised": null
    }
  ],
  "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ",
  "has_more": true,
  "limit": 1
}
```

## Example: set up the calendar feed

```bash tab="curl"
curl -X PUT "$BASE/api/v1/economic-calendar/feed/filters" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: 9d2f6a44-0c1b-4e7a-b3d5-71a8e2c4f610" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["US", "EU"], "importances": ["high"], "locale": "en"}'
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]
TOKEN = os.environ["TOKEN"]

answer = requests.put(
    f"{BASE}/api/v1/economic-calendar/feed/filters",
    headers={
        "Authorization": f"Bearer {TOKEN}",
        "Idempotency-Key": "9d2f6a44-0c1b-4e7a-b3d5-71a8e2c4f610",
    },
    json={"countries": ["US", "EU"], "importances": ["high"], "locale": "en"},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE, TOKEN } = process.env;

const answer = await fetch(`${BASE}/api/v1/economic-calendar/feed/filters`, {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${TOKEN}`,
    "Idempotency-Key": "9d2f6a44-0c1b-4e7a-b3d5-71a8e2c4f610",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    countries: ["US", "EU"],
    importances: ["high"],
    locale: "en",
  }),
});
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "feed_url": "https://api.uat.renzo-digital.com/api/v1/economic-calendar/feed/Xk29fQ7mTp3LwZ8a.ics",
  "countries": ["US", "EU"],
  "importances": ["high"],
  "locale": "en"
}
```

Paste `feed_url` into Apple Calendar, Google Calendar or Outlook. They fetch it with no auth header. The file is `text/calendar`.

## Rules and edge cases

- **Date range.** `start` and `end` are UTC days. `start` defaults to today, or to `end` minus 7 days when only `end` is sent. `end` defaults to `start` plus 7 days and is included. The range may not pass 35 days. A reversed or longer range answers `400` [`econ_calendar_invalid_range`](https://renzo-digital.com/docs/error-codes#econ_calendar_invalid_range).
- **Filters.** Repeat `countries`, `importance` and `category` to pick several, for example `countries=US&countries=EU`. `importance` is `none`, `low`, `medium` or `high`. `category` is one of `prices`, `labour`, `gdp`, `business`, `consumer`, `housing`, `trade`, `money`, `government`, `bonds`, `markets` or `energy`. Country codes are 2 to 8 letters.
- **Locale.** `locale` sets the language of indicator titles only: `en`, `zh-Hans`, `zh-Hant`, `ru`, `kk` or `th`. An untranslated title stays English, and `title_locale` says what you got. `kk` tries `ru` first. See [Locales](https://renzo-digital.com/docs/concepts/locales).
- **Values.** `forecast` and `previous` are `null` when none exists. `actual` stays `null` until the value is confirmed and its publish time has passed. `revised` is a later revision of `actual`. Numbers use the indicator's `scale` (`K`, `M`, `B` or `T`) and `unit`.
- **Time precision.** `time_precision` is `exact`, `date_only` or `tentative`. For `date_only`, only the day is known. A `tentative` time may move.
- **Paging.** `limit` defaults to 20 and may not pass 100. See [Pagination](https://renzo-digital.com/docs/concepts/pagination). Only releases that are visible are listed.
- **Hidden releases.** A hidden release, or an unknown ID, answers `404` [`econ_calendar_release_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_release_not_found).
- **History.** The history call lists past releases of one indicator. An unknown indicator answers `404` [`econ_calendar_indicator_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_indicator_not_found).
- **Countries.** The list holds the codes that have at least one visible release, sorted. `EU` is the euro area.
- **Feed filters.** An empty `countries` or `importances` list means all. Omit `locale` to keep the saved one. `locale` on `GET /api/v1/economic-calendar/feed` sets the language only when that read creates the feed. The default is `en`.
- **Feed contents.** The file holds releases from the last 7 days to 5 weeks ahead, filtered by your settings. Renzo may change this window.
- **Feed URL is a secret.** Anyone with the URL can read the feed. `POST /api/v1/economic-calendar/feed/reset` gives a new URL and the old one stops at once. A reset or unknown token, or an account that is not `active`, answers `404` [`econ_calendar_feed_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_feed_not_found).
- **Feed cache.** The `.ics` answer is private and may be cached by the calendar app for a short time.

## Errors

| Code | Status | When |
| --- | --- | --- |
| [`econ_calendar_invalid_range`](https://renzo-digital.com/docs/error-codes#econ_calendar_invalid_range) | 400 | The date range is reversed or longer than 35 days. |
| [`econ_calendar_release_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_release_not_found) | 404 | No visible release has this ID. |
| [`econ_calendar_indicator_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_indicator_not_found) | 404 | No indicator with this ID has a visible release. |
| [`econ_calendar_feed_not_found`](https://renzo-digital.com/docs/error-codes#econ_calendar_feed_not_found) | 404 | No feed has this token. It may have been reset. |
| [`profile_incomplete`](https://renzo-digital.com/docs/error-codes#profile_incomplete) | 409 | The account has no username yet. |
| [`invalid_cursor`](https://renzo-digital.com/docs/error-codes#invalid_cursor) | 400 | The cursor is damaged, belongs to another list or was sent with other filters. |

Sign-in and request errors, such as [`token_expired`](https://renzo-digital.com/docs/error-codes#token_expired) and [`validation_failed`](https://renzo-digital.com/docs/error-codes#validation_failed), can come from any call. See [Errors](https://renzo-digital.com/docs/concepts/errors).

## Reference

- [Economic calendar in the API reference](https://renzo-digital.com/docs/api#tag/economic-calendar)
