# Time Zone Converter, World Clock & Public Holidays API (`tudorlane/world-holidays-working-days`) Actor

Current time in any city, time zone converter and world clock, plus public holidays for 150+ countries and a working days calculator. Fast, for AI agents.

- **URL**: https://apify.com/tudorlane/world-holidays-working-days.md
- **Developed by:** [Tudor Lane](https://apify.com/tudorlane) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 lookups

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## World Public Holidays, Working Days & Time Zones

**What it does:** Public holidays for 150+ countries and regions, working/business-day maths, current time and time-zone conversion, in one fast API.

**Who it's for:** Scheduling, logistics, payroll, customer-support and calendar agents that need deadlines and local times right.

**Price:** Pay per event: **$0.003 per request** (each item in `requests`). You only pay Apify for what you run; there is no monthly fee for this Actor.

A fast, offline **public holidays API**, **business days / working days calculator** and **timezone converter** for AI agents and automations. Covers 150+ countries and their regions/states (e.g. GB-ENG/SCT/WLS/NIR bank holidays, US states, German Länder).

### Actions

| action | fields | returns |
|---|---|---|
| `holidays` | country, subdivision?, year | all public / bank holidays |
| `is_working_day` | country, date | true/false + reason |
| `next_working_day` / `previous_working_day` | country, date | result_date |
| `add_working_days` | country, start_date, days (± ) | result_date (e.g. payment or delivery deadlines) |
| `count_working_days` | country, start_date, end_date | working days (inclusive) + holidays in range |
| `current_time` | timezone (IANA or city) | local time, UTC offset |
| `convert_time` | datetime, from_timezone, to_timezone | converted time (handles daylight saving) |
| `countries` | none | supported countries and subdivisions |

Optional on working-day actions: `weekend_days` (e.g. `["fri","sat"]`) and `extra_holidays` (company closure dates).

### Batch input

```json
{"requests": [
 {"action": "holidays", "country": "GB", "subdivision": "ENG", "year": 2026},
 {"action": "add_working_days", "country": "DE", "start_date": "2026-12-22", "days": 5},
 {"action": "convert_time", "datetime": "2026-11-03T09:00", "from_timezone": "London", "to_timezone": "America/New_York"}]}
```

Bad requests return a row with `error` and are not charged.

Note: if a holiday falls on a weekend, both the holiday and its "(observed)" substitute day are listed where the country has one.

### Pricing

One `lookup` event per successful result.

### Data

Holiday rules from the open-source `holidays` Python package (MIT), bundled. Time zones from the IANA tz database. No external API calls, so it's fast and always available.

Keywords: public holidays API, bank holidays, business days calculator, working days calculator, add business days, holiday calendar, timezone converter, world clock, SLA deadline, payment due date, AI agent tool, MCP.

### Quick example

**Input**

```json
{
 "requests": [
  {
   "action": "holidays",
   "country": "GB",
   "subdivision": "ENG",
   "year": 2026
  },
  {
   "action": "add_working_days",
   "country": "DE",
   "start_date": "2026-12-22",
   "days": 5
  },
  {
   "action": "current_time",
   "timezone": "Tokyo"
  }
 ]
}
```

**Output** (one dataset item, shortened)

```json
{
 "action": "holidays",
 "country": "GB",
 "subdivision": "ENG",
 "year": 2026,
 "count": 9,
 "holidays": [
  {
   "date": "2026-01-01",
   "name": "New Year's Day",
   "weekday": "Thursday"
  },
  {
   "date": "2026-04-03",
   "name": "Good Friday",
   "weekday": "Friday"
  },
  "..."
 ],
 "source": "python-holidays 0.107",
 "error": null
}
```

### Use it from AI agents (MCP) and code

- **Apify MCP server:** add `https://mcp.apify.com/?tools=tudorlane/world-holidays-working-days` to Claude, Cursor, ChatGPT connectors, VS Code or any MCP client (sign in with Apify OAuth or an API token). The Actor appears as a tool the model can call.
- **REST (sync):** `POST https://api.apify.com/v2/acts/tudorlane~world-holidays-working-days/run-sync-get-dataset-items?token=YOUR_TOKEN` with the input JSON as the body; results come back in the response.
- **SDKs / no-code:** `apify-client` (Python/JS), LangChain, LlamaIndex, CrewAI, n8n, Make and Zapier integrations.

### FAQ

**Regional holidays?** Yes, e.g. GB-SCT, US states, German Lander.

**Custom weekends?** Use `weekend_days`, e.g. \["fri","sat"], and `extra_holidays` for closures.

**Daylight saving?** Handled for every IANA time zone.

**What if the source is down?** You get an `error` row and are not charged for it.

**Support?** Open an issue on the Actor's Issues tab.

***

Keywords: public holidays API, bank holidays API, business days calculator, working days API, timezone converter API, world clock API, MCP tool, Apify Actor, AI agent tool.

# Actor input Schema

## `requests` (type: `array`):

List of request objects, each with action plus its fields. Max 1000.

## `action` (type: `string`):

Used when requests is empty.

## `country` (type: `string`):

ISO code, e.g. GB, US, DE, IN.

## `subdivision` (type: `string`):

Region/state code, e.g. ENG, SCT, CA, BY.

## `year` (type: `integer`):

For holidays.

## `date` (type: `string`):

YYYY-MM-DD (is/next/previous working day).

## `start_date` (type: `string`):

YYYY-MM-DD.

## `end_date` (type: `string`):

YYYY-MM-DD (count_working_days, inclusive).

## `days` (type: `integer`):

Negative to go back.

## `weekend_days` (type: `array`):

Default \["sat","sun"]; e.g. \["fri","sat"].

## `extra_holidays` (type: `array`):

YYYY-MM-DD dates to treat as holidays.

## `timezone` (type: `string`):

IANA name or city, e.g. Europe/London, Tokyo.

## `datetime` (type: `string`):

ISO, e.g. 2026-11-03T09:00.

## `from_timezone` (type: `string`):

IANA name or city.

## `to_timezone` (type: `string`):

IANA name or city.

## Actor input object example

```json
{
  "requests": [
    {
      "action": "holidays",
      "country": "GB",
      "subdivision": "ENG",
      "year": 2026
    },
    {
      "action": "add_working_days",
      "country": "DE",
      "start_date": "2026-12-22",
      "days": 5
    },
    {
      "action": "current_time",
      "timezone": "Tokyo"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

One item per request.

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        {
            "action": "holidays",
            "country": "GB",
            "subdivision": "ENG",
            "year": 2026
        },
        {
            "action": "add_working_days",
            "country": "DE",
            "start_date": "2026-12-22",
            "days": 5
        },
        {
            "action": "current_time",
            "timezone": "Tokyo"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tudorlane/world-holidays-working-days").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        {
            "action": "holidays",
            "country": "GB",
            "subdivision": "ENG",
            "year": 2026,
        },
        {
            "action": "add_working_days",
            "country": "DE",
            "start_date": "2026-12-22",
            "days": 5,
        },
        {
            "action": "current_time",
            "timezone": "Tokyo",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tudorlane/world-holidays-working-days").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    {
      "action": "holidays",
      "country": "GB",
      "subdivision": "ENG",
      "year": 2026
    },
    {
      "action": "add_working_days",
      "country": "DE",
      "start_date": "2026-12-22",
      "days": 5
    },
    {
      "action": "current_time",
      "timezone": "Tokyo"
    }
  ]
}' |
apify call tudorlane/world-holidays-working-days --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tudorlane/world-holidays-working-days"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/yHOSf7czEjLPmcB8R/builds/WHCKLGFZywAJH5UEH/openapi.json
