# SMS Send Time Checker - Quiet Hours, Time Zones & Holidays (`helenisapi/sms-send-time-checker`) Actor

SMS send time checker: phone numbers in, time zone, local time, allowed now or not with the reason (quiet hours, weekend, public holiday) and the next legal slot out. 📱

- **URL**: https://apify.com/helenisapi/sms-send-time-checker.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 number checked

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/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

## 📱 SMS Send Time Checker - Quiet Hours, Time Zones & Holidays

**Paste a phone list, see who you can text right now, and when to send to the others.** Every number gets its **time zone**, its **local time**, whether a text or call is **allowed now**, **why not** (too early, too late, weekend, public holiday with its name) and the **next allowed slot** in UTC and local time.

Legal windows are built in (**US TCPA**, **France**, **Spain**, **Canada**, **Australia**), each country's **public holidays** and **weekend** are respected, and summer time changes are handled. Works on a pasted list **or on the dataset of another actor**. Nothing is sent to the numbers. No API key: add numbers and hit **Run**.

***

### ⚡ Why this actor?

- 🕘 **Local time from the number alone:** 240+ countries, summer time included.
- ✅ **Allowed now or not:** a clear yes/no per number, with the reason in plain English.
- 📅 **Ready to schedule:** `sendAtUtc` for your SMS tool, `sendAtLocal` for humans.
- ⚖️ **Legal hours built in:** US TCPA 8 a.m.-9 p.m., France telemarketing 10-13 h and 14-20 h on weekdays, France promotional SMS (af2m charter), Spain, Canada, Australia.
- 🎉 **Public holidays and weekends:** Thanksgiving, Armistice Day, Diwali, Golden Week, Friday in Saudi Arabia...
- 🌍 **Prudent with big countries:** a number that may be in several time zones gets the slot open in all of them.
- 🛠️ **Your own window:** hours, days and holidays, never wider than the country's rule.
- 💸 **Cheap:** pay per number checked, nothing else.

***

### 🏆 How it compares

| Feature | This actor | Phone validators | Doing it yourself |
|---|:---:|:---:|:---:|
| 🕘 Time zone of the number | ✅ | ⚠️ Some | ⚠️ Needs a library |
| ✅ Allowed now, with the reason | ✅ | ❌ | ❌ |
| 📅 Next allowed slot | ✅ | ❌ | ❌ |
| ⚖️ Legal calling and texting hours | ✅ | ❌ | ❌ Research per country |
| 🎉 Public holidays per country | ✅ | ❌ | ⚠️ Another API |
| 💰 Price per 1,000 | Lowest | $0.63-$10 | Your time |

***

### 📊 What data do you get?

One row per number, with these columns:

| Field | Description | Example |
|---|---|---|
| `input` | The number as you gave it | `+1 212 555 0142` |
| `valid` | Fits its country's numbering plan | `true` |
| `e164` | E.164 format | `+12125550142` |
| `country` / `countryCode` | Country | `United States` / `US` |
| `lineType` | `mobile`, `fixed_line`, `fixed_line_or_mobile`... | `fixed_line_or_mobile` |
| `timezone` | Time zone of the answer | `America/New_York` |
| `timezones` | Every zone the number may be in | `["America/New_York"]` |
| `localTime` / `localWeekday` | The local clock when checked | `2026-11-26T06:30:00-05:00` |
| `holiday` | Public holiday that day | `Thanksgiving Day` |
| `allowedNow` | Inside the window right now | `false` |
| `reason` / `reasonText` | Why, as a code and a sentence | `before_hours` |
| `sendAtUtc` / `sendAtLocal` | When to send | `2026-11-26T13:00:00Z` |
| `windowEndsUtc` | When that window closes | `2026-11-27T02:00:00Z` |
| `waitMinutes` | Minutes until `sendAtUtc` | `90` |
| `rules` | The windows applied | `["us-tcpa"]` |
| `notes` | Caveats worth knowing | `Thanksgiving Day today...` |

An invalid number is not an error: it comes back with `reason: invalid_number` and the run carries on.

***

### 🚀 How to use it

1. Paste **phone numbers** (one per line), or a **dataset ID** from another actor.
2. Pick the **channel** (SMS or call) and keep **policy: auto** to apply each country's rule.
3. Click **Run**, then sort by `sendAtUtc` and export the table to your SMS tool.

#### ⚙️ Input

| Option | Default | Description |
|---|:---:|---|
| 📱 **Phone numbers to check** | — | One number per line, any format. |
| 🌍 **Default country** | — | ISO code for numbers written without `+country code`. |
| **Channel** | `sms` | `sms` (texts, WhatsApp, RCS) or `call`. |
| **Policy** | `auto` | Each country's rule, else 09:00-20:00. Or `daytime`, `business`, `us-tcpa`, `ca-crtc`, `fr-calls`, `fr-sms`, `es-calls`, `au-calls`. |
| **Your own hours / days** | — | `09:00-12:00,14:00-19:30` and `mon-sat` (or `workdays`). |
| **Avoid public holidays** | policy | National holidays of each number's country. |
| **Always respect the country's rule** | on | Your window can only get narrower than the law. |
| **Check at** | now | An ISO 8601 moment, to plan a campaign. |
| 📦 **Dataset ID** | — | Check the phone numbers found in an existing Apify dataset. |

#### Input example

```json
{
  "numbers": ["+1 212 555 0142", "+1 415 555 0199", "+33 6 12 34 56 78", "+61 412 345 678"],
  "channel": "sms",
  "policy": "auto"
}
```

#### Output example (one row per number)

```json
{
  "input": "+1 212 555 0142",
  "valid": true,
  "e164": "+12125550142",
  "country": "United States",
  "countryCode": "US",
  "timezone": "America/New_York",
  "localTime": "2026-11-26T06:30:00-05:00",
  "localWeekday": "Thursday",
  "holiday": "Thanksgiving Day",
  "allowedNow": false,
  "reason": "before_hours",
  "reasonText": "06:30 on Thursday in New York: too early, the window opens at 08:00. Next window: today at 08:00 local time.",
  "sendAtUtc": "2026-11-26T13:00:00Z",
  "sendAtLocal": "2026-11-26T08:00:00-05:00",
  "waitMinutes": 90,
  "rules": ["us-tcpa"]
}
```

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 📱 Number checked | Each number checked |

> 🆓 On the Apify **free plan**, each run checks the first 200 numbers.

The run stops cleanly when your spending limit is reached.

***

### 💡 Use cases

- 📣 **SMS and WhatsApp campaigns:** send each message at its recipient's `sendAtUtc`.
- 📞 **Call centers:** dial only numbers inside their legal calling hours.
- 🗓️ **Reminders:** never wake a customer with an appointment reminder.
- 🎯 **Lead lists:** run it on the dataset of a maps or contact scraper before calling.
- 🧾 **Compliance logs:** keep which rule allowed each send, with its source.

***

### ❓ FAQ

**Is this legal advice?**
No. The built-in windows come from the laws and codes they cite (US 47 CFR 64.1200(c)(1), French Code de la consommation D. 223-9, Spanish TRLGDCU art. 96.2, CRTC rules, Australia's Telemarketing Industry Standard 2017, the af2m SMS charter), but rules have exceptions and change. Use it as a guard rail.

**How do you know where the person is?**
From the number's country and area code. Mobiles in large countries (Russia, Australia, US toll-free) may be in several time zones: the slot given is open in all of them, so it can be short.

**Do US state laws apply?**
The federal TCPA window is built in. Some states are stricter: set **your own hours** to `09:00-20:00` to stay inside all of them.

**Are regional holidays included?**
National ones are. Regional holidays depend on where the person lives, which a phone number does not tell.

**Can I plan ahead?**
Yes: set **Check at** to the moment of your campaign. Every batch of a run is checked at the same moment.

***

### 🔌 Integrations

Connect results to your existing workflow:

- 📗 **Google Sheets**: Auto-export results to a spreadsheet
- 🪝 **Webhooks**: Trigger downstream actions when a run completes
- ⚡ **Zapier / Make**: Plug into 1000+ apps
- 🛠️ **API**: Fetch results programmatically from any language
- 🔄 **Scheduled runs**: Re-check your lists before each campaign
- 🤖 **AI agents**: call it from Claude, Cursor or any MCP client through Apify's MCP server

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/sms-send-time-checker
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/sms-send-time-checker")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **SMS Send Time - Local Time, Quiet Hours, Holidays** by **Helenis API**, for single checks and bulk calls of 100 numbers.

***

### 🔒 Privacy

Numbers are checked in memory and never stored or logged. Nothing is sent to them.

# Actor input Schema

## `numbers` (type: `array`):

Phone numbers to check, one per item, in any format, e.g. \["+1 212 555 0142", "+33 6 12 34 56 78", "0612345678"]. National numbers without +country code need the country field. Required unless `datasetId` is set. Each number returns one row: time zone, local time, allowedNow, the reason and the next allowed slot (sendAtUtc, sendAtLocal). Nothing is sent to the numbers.

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

Default ISO two-letter country code for numbers written without +country code or 00, e.g. US, FR or GB. Leave empty when every number starts with + or 00.

## `channel` (type: `string`):

What you plan to send. sms (default): texts, WhatsApp or RCS. call: phone calls. Some countries regulate only one of them, so the allowed window can differ.

## `policy` (type: `string`):

Sending window for each number. auto (default): the country's built-in legal or industry rule, else daytime. daytime: 09:00-20:00 local, every day. business: 09:00-18:00 local on working days. Or one preset for every number: us-tcpa (USA TCPA), ca-crtc (Canada calls), fr-calls (France telemarketing calls), fr-sms (France promotional SMS, af2m charter), es-calls (Spain commercial calls), au-calls (Australia telemarketing calls).

## `hours` (type: `string`):

Your own sending hours in each number's local time, up to 4 comma-separated ranges, e.g. 09:00-12:00,14:00-19:30. Replaces the policy's hours. Leave empty to keep the policy's hours.

## `days` (type: `string`):

Your own sending days, e.g. mon-fri, mon,wed,sat, all, or workdays (each country's own working days). Leave empty to keep the policy's days.

## `skipHolidays` (type: `boolean`):

true: never send on the national public holidays of each number's country. false: holidays are allowed. Leave unset to follow the policy (on for daytime, business and your own hours or days).

## `localRules` (type: `boolean`):

true (default): your hours and days stay inside the country's built-in legal or industry window (US TCPA, France, Spain, Canada, Australia), so the result is never wider than the rule. false: your window is used as is.

## `at` (type: `string`):

Moment to check instead of now, ISO 8601, e.g. 2026-12-01T15:00:00Z (UTC when no offset is given), to plan a campaign. Leave empty to check now; every number of a run is checked at the same moment.

## `datasetId` (type: `string`):

ID of an existing Apify dataset whose rows hold phone numbers, e.g. the output of a lead, CRM or maps scraper; the field is set by datasetPhoneField. Required unless `numbers` is set.

## `datasetPhoneField` (type: `string`):

Name of the dataset field holding the number (a string or a list of strings), e.g. phoneNumber. Leave empty to try phone, phones, phoneNumber, phone_number, telephone, contactPhone and e164, in that order. Only used with datasetId.

## Actor input object example

```json
{
  "numbers": [
    "+1 212 555 0142",
    "+1 415 555 0199",
    "+33 6 12 34 56 78",
    "+61 412 345 678"
  ],
  "channel": "sms",
  "policy": "auto",
  "localRules": true
}
```

# Actor output Schema

## `numbers` (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 = {
    "numbers": [
        "+1 212 555 0142",
        "+1 415 555 0199",
        "+33 6 12 34 56 78",
        "+61 412 345 678"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/sms-send-time-checker").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 = { "numbers": [
        "+1 212 555 0142",
        "+1 415 555 0199",
        "+33 6 12 34 56 78",
        "+61 412 345 678",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/sms-send-time-checker").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 '{
  "numbers": [
    "+1 212 555 0142",
    "+1 415 555 0199",
    "+33 6 12 34 56 78",
    "+61 412 345 678"
  ]
}' |
apify call helenisapi/sms-send-time-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/sms-send-time-checker"
        }
    }
}
```

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/Bl1BupF18wNKtgVze/builds/xV0edHu4JO0RtMTVK/openapi.json
