Helenis API
Start for free

BusinessSMS Marketing

SMS Quiet Hours API: TCPA Send Times and Local Time by Phone Number

SMS quiet hours API guide: get each phone number's local time, whether a text or call is allowed under TCPA, French or Spanish rules, and the next slot.

SMS Send Time API cover: a speech balloon sticker, an arrow and a JSON response with time zone America/New_York, allowed_now false, reason before_hours and send_at_utc 2026-11-26T13:00:00Z.
06:30 on Thanksgiving in New York: too early, the TCPA window opens at 08:00, 13:00 UTC.

A promotional SMS scheduled for 9:00 UTC lands at 4:00 in New York, 1:00 in Los Angeles and 20:00 in Sydney. Some recipients unsubscribe, some complain, and in the United States a marketing text outside 8 a.m. to 9 p.m. local time breaks the TCPA's calling-hours rule. Most contact lists store a phone number and nothing else: no city, no time zone.

An SMS quiet hours API answers the question per number: what time is it for this person, may I text or call now under the rules of their country, and if not, when. This article explains the windows that apply in the US, France, Spain, Canada and Australia, how a time zone is read from a phone number, and how to use the SMS Send Time API from Python to check numbers one by one or schedule a whole campaign.

The sending windows, country by country

Calling-hours rules usually apply to telemarketing calls; in the US they cover texts too, because the FCC treats a text message as a call under the TCPA. The API ships these windows as presets and applies the right one automatically (policy=auto):

Preset Applies to Window (recipient's local time) Source
us-tcpa US and territories, SMS and calls Every day 08:00-21:00 47 CFR 64.1200(c)(1)
ca-crtc Canada, calls Mon-Fri 09:00-21:30, Sat-Sun 10:00-18:00 CRTC Unsolicited Telecommunications Rules, Part III
fr-calls France and overseas departments, calls Mon-Fri 10:00-13:00 and 14:00-20:00, no public holidays Code de la consommation, art. D. 223-9
fr-sms France, SMS Mon-Sat 08:00-21:30, no public holidays af2m Business Messaging charter 2026
es-calls Spain, calls Mon-Fri 09:00-21:00, no public holidays TRLGDCU, art. 96.2
au-calls Australia, calls Mon-Fri 09:00-20:00, Sat 09:00-17:00, no public holidays Telemarketing and Research Calls Industry Standard 2017
daytime Everywhere else Every day 09:00-20:00, no public holidays Good practice
business Only when you ask 09:00-18:00 on the country's working days Good practice (B2B)

A few details matter. In Canada, texts fall under the anti-spam law (CASL), which regulates consent, not hours, so the CRTC window applies to calls. France's rule for calls dates from decree 2022-1313 and also caps consumer telemarketing at 4 calls per person per 30 days. The French SMS window comes from the operators' code of conduct, not from a statute. Several US states are stricter than the TCPA (an earlier end, Sunday limits); the API flags this in every US answer rather than guessing which state a mobile belongs to.

From a phone number to a time zone

A number carries its country and, for landlines in many countries, an area. The phone number validation guide shows how numbers are parsed with Google's libphonenumber; the same metadata maps each number range to the IANA time zones it can be in:

  • +1 212... is a New York landline or mobile: one zone, America/New_York.
  • +33 6... is a French mobile: Europe/Paris.
  • +61 4... is an Australian mobile: not tied to a state, so 6 zones, from Perth to Lord Howe Island.
  • +7 9... is a Russian mobile: 13 zones, from Moscow (UTC+3) to Kamchatka (UTC+12).

For multi-zone numbers, the API takes the prudent option: the slot it gives is inside the window in all of the number's zones, and notes says so. Only zones of the number's own country count: libphonenumber also lists other territories for shared ranges (the Cocos Islands for Australian mobiles, Caribbean islands for US toll-free numbers), and those are left out. Summer time changes come from the IANA database, so a check for 1 November 2026 in New York uses the new offset.

Check a number in Python

GET /v1/send-time/check takes number, an optional country for national formats, channel (sms or call) and at to check a moment other than now. The examples use Python and requests; the API reference lists every option.

Python
import requests

HOST = "sms-send-time-local-time-quiet-hours-holidays.p.rapidapi.com"
API = f"https://{HOST}"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}

response = requests.get(
    f"{API}/v1/send-time/check",
    headers=HEADERS,
    params={"number": "+1 212 555 0142", "at": "2026-11-26T11:30:00Z"},
    timeout=15,
)
response.raise_for_status()
check = response.json()
print(check["allowed_now"], check["reason"], check["send_at_utc"])

The same check with curl:

Terminal
curl "https://sms-send-time-local-time-quiet-hours-holidays.p.rapidapi.com/v1/send-time/check?number=%2B1%20212%20555%200142&at=2026-11-26T11:30:00Z" \
  -H "x-rapidapi-key: YOUR_API_KEY" \
  -H "x-rapidapi-host: sms-send-time-local-time-quiet-hours-holidays.p.rapidapi.com"

The real response, for 11:30 UTC on Thanksgiving Day:

JSON
{
  "input": "+1 212 555 0142",
  "valid": true,
  "e164": "+12125550142",
  "region": "US",
  "country": "United States",
  "line_type": "fixed_line_or_mobile",
  "timezone": "America/New_York",
  "timezones": ["America/New_York"],
  "local_time": "2026-11-26T06:30:00-05:00",
  "local_weekday": "Thursday",
  "holiday": { "date": "2026-11-26", "name": "Thanksgiving Day" },
  "allowed_now": false,
  "reason": "before_hours",
  "reason_text": "06:30 on Thursday in New York: too early, the window opens at 08:00. Next window: today at 08:00 local time.",
  "send_at_utc": "2026-11-26T13:00:00Z",
  "send_at_local": "2026-11-26T08:00:00-05:00",
  "window_ends_utc": "2026-11-27T02:00:00Z",
  "window_ends_local": "2026-11-26T21:00:00-05:00",
  "wait_minutes": 90,
  "rules": [
    {
      "id": "us-tcpa",
      "name": "USA: TCPA calling hours",
      "kind": "law",
      "hours": "Every day 08:00-21:00",
      "skip_holidays": false,
      "source": "47 CFR 64.1200(c)(1) (Telephone Consumer Protection Act)"
    }
  ],
  "notes": [
    "Several US states are stricter than the TCPA (an 8 p.m. end, Sunday or holiday limits): pass hours=09:00-20:00 to stay inside all of them.",
    "Thanksgiving Day today in United States: allowed by the rules applied, but many people are off."
  ]
}

Three fields drive a sender: allowed_now, send_at_utc (when to schedule) and window_ends_utc (when to stop retrying). The TCPA has no holiday exemption, so Thanksgiving is allowed at 08:00, with a note. rules is the audit trail: which window applied, and the law it comes from.

Why not now: the reason codes

reason is a stable code for your logic, reason_text a sentence for your team or logs.

reason Meaning
allowed Inside the window in every possible time zone
before_hours / after_hours Too early or too late today
between_hours In the break between two ranges (13:00-14:00 for French calls)
weekend A day outside the window (Sunday for French SMS)
day_excluded A day you left out of days
holiday A national public holiday, named in holiday
invalid_number / unknown_timezone Not a valid number, or no time zone; allowed_now is null

Three real French answers show the codes at work. A telemarketing call (channel=call) at 10:00 Paris time on 11 November 2026:

JSON
{
  "local_time": "2026-11-11T10:00:00+01:00",
  "holiday": { "date": "2026-11-11", "name": "Armistice Day" },
  "allowed_now": false,
  "reason": "holiday",
  "reason_text": "Armistice Day, a public holiday in France: no sending on public holidays under France: telemarketing calls. Next window: tomorrow at 10:00 local time.",
  "send_at_utc": "2026-11-12T09:00:00Z",
  "notes": [
    "France also caps telemarketing at 4 calls per person per 30 days, and requires prior consent since 11 August 2026.",
    "Only the national public holidays of France are avoided: regional ones depend on where the person lives, which a phone number does not tell."
  ]
}

A call at 13:15 on a Tuesday gets between_hours, "break between the ranges 10:00-13:00, 14:00-20:00. Next window: today at 14:00 local time", with wait_minutes: 45. An SMS on Sunday 29 November at 11:00 gets weekend, "Sunday is a day off in France: outside the window. Next window: tomorrow at 08:00 local time."

Your own window on top of the law

Marketing teams often want narrower hours than the law: no texts after 8 p.m., weekdays only. Pass hours (up to 4 ranges, local time) and days (mon-fri, mon,wed,sat, all, or workdays for the country's working days). With local_rules=true, the default, the country's rule still applies, so your window can only get narrower.

The New York number at 20:30 on Friday 27 November, with hours=09:00-20:00&days=mon-fri:

JSON
{
  "local_time": "2026-11-27T20:30:00-05:00",
  "local_weekday": "Friday",
  "allowed_now": false,
  "reason": "after_hours",
  "reason_text": "20:30 on Friday in New York: too late, the window closed at 20:00. Next window: Monday 30 November at 09:00 local time.",
  "send_at_utc": "2026-11-30T14:00:00Z",
  "send_at_local": "2026-11-30T09:00:00-05:00",
  "wait_minutes": 3630,
  "rules": [
    { "id": "custom", "name": "Your window", "kind": "custom", "hours": "Monday-Friday 09:00-20:00", "skip_holidays": true },
    { "id": "us-tcpa", "name": "USA: TCPA calling hours", "kind": "law", "hours": "Every day 08:00-21:00", "skip_holidays": false, "source": "47 CFR 64.1200(c)(1) (Telephone Consumer Protection Act)" }
  ]
}

A window that crosses midnight is refused, because the API cannot guess whether you meant one range or two: hours=21:00-07:00 returns 400 invalid_hours, "A window across midnight is two ranges", unbilled.

Schedule a campaign with bulk checks

POST /v1/send-time/check/bulk checks up to 100 numbers at the same moment, each under its own country's rule. A real call at 09:00 UTC on Friday 4 December 2026, with a default country of France for national numbers:

Python
numbers = [
    "+1 212 555 0142",
    "06 12 34 56 78",
    "+61 412 345 678",
    "+7 912 345-67-89",
    "+966 50 123 4567",
    "12345",
]
response = requests.post(
    f"{API}/v1/send-time/check/bulk",
    headers=HEADERS,
    json={"numbers": numbers, "country": "FR", "at": "2026-12-04T09:00:00Z"},
    timeout=30,
)
batch = response.json()
print(batch["summary"])  # {'allowed_now': 2, 'wait': 3, 'invalid': 1}

The response, trimmed to the scheduling fields:

JSON
{
  "checked_at": "2026-12-04T09:00:00Z",
  "results": [
    { "input": "+1 212 555 0142", "local_time": "2026-12-04T04:00:00-05:00", "allowed_now": false, "reason": "before_hours", "send_at_utc": "2026-12-04T13:00:00Z" },
    { "input": "06 12 34 56 78", "local_time": "2026-12-04T10:00:00+01:00", "allowed_now": true, "reason": "allowed", "window_ends_utc": "2026-12-04T20:30:00Z" },
    {
      "input": "+61 412 345 678",
      "timezone": "Australia/Sydney",
      "allowed_now": false,
      "reason": "after_hours",
      "send_at_utc": "2026-12-05T01:00:00Z",
      "notes": ["This number may be in 6 time zones, from Australia/Perth (UTC+08:00) to Australia/Sydney (UTC+11:00): the window given is open in all of them, the prudent choice, so it is shorter than for a one-zone number.", "..."]
    },
    {
      "input": "+7 912 345-67-89",
      "timezone": "Asia/Kamchatka",
      "local_time": "2026-12-04T21:00:00+12:00",
      "allowed_now": false,
      "reason": "after_hours",
      "reason_text": "21:00 on Friday in Kamchatka: too late, the window closed at 20:00. Next window: tomorrow at 18:00 local time.",
      "send_at_utc": "2026-12-05T06:00:00Z",
      "window_ends_utc": "2026-12-05T08:00:00Z"
    },
    { "input": "+966 50 123 4567", "local_time": "2026-12-04T12:00:00+03:00", "local_weekday": "Friday", "allowed_now": true, "reason": "allowed" },
    { "input": "12345", "valid": false, "reason": "invalid_number", "reason_text": "Invalid number: Not a possible number for this country (wrong length)." }
  ],
  "summary": { "allowed_now": 2, "wait": 3, "invalid": 1 },
  "notice": "Informational, not legal advice: rules change and have exceptions (consent, existing customers, B2B, state laws). Check them for your case."
}

Look at the extremes. For a multi-zone number, timezone is the deciding zone: the one farthest outside the window, Kamchatka when it is too late, Moscow when it is too early. The Australian mobile opens at 01:00 UTC, which is 09:00 in Perth and already noon in Sydney. The Russian mobile gets two hours, 06:00 to 08:00 UTC: that is 09:00 in Moscow and 20:00 in Kamchatka, the only part of the day that is daytime in all 13 zones. If you know from your own data that these customers live in Moscow, schedule them from that time zone yourself rather than accept a two-hour slot.

The Saudi mobile is allowed on a Friday, the Saudi weekend, because the default daytime window runs every day. For B2B sends, policy=business or days=workdays uses each country's own working days instead.

Turning the response into a schedule takes a few lines:

Python
from collections import defaultdict

queue = defaultdict(list)
for r in batch["results"]:
    if r.get("allowed_now") is None:
        continue  # invalid number or no time zone: fix the data first
    queue[r["send_at_utc"]].append(r["e164"])  # "now" when allowed_now is true

for slot, recipients in sorted(queue.items()):
    print(slot, len(recipients), "messages")

Hand each group to your SMS provider's scheduled send at its slot. Re-check numbers whose slot is far away just before sending: a campaign planned on Monday for Friday should use at set to the planned moment, which accounts for holidays and summer time changes on that day.

What it costs

1 credit per number checked, in single or bulk calls, and 1 credit for /policies. Failed calls (4xx, 5xx) use no credits.

Plan Price per month Credits In practice
BASIC Free 10 per day 10 numbers a day to test
PRO $3.99 20,000 about $0.0002 per number
ULTRA $9.99 150,000 about $0.00007 per number
MEGA $29.99 1,000,000 about $0.00003 per number

Beyond the monthly quota, paid plans continue at $0.002 per credit. In our market survey, phone lookup APIs that return a time zone charged $0.0006 to $0.05 per number and left the rules to the caller.

What the SMS quiet hours API does not do

  • It is not legal advice. The windows come from the texts cited in each answer, but rules have exceptions (prior consent, existing customers, B2B, state laws) and change.
  • No consent or Do Not Call checks. It does not query the US National Do Not Call Registry, France's Bloctel or any opt-out list, and it does not track France's 4-calls-per-30-days cap.
  • No US state rules. The TCPA window is built in; stricter state hours are flagged in notes, with a safe hours=09:00-20:00 suggestion.
  • No regional holidays. A phone number does not say which German Land or Spanish community a person lives in, so only national holidays are applied.
  • No real location. A mobile keeps its number when its owner travels or moves; the time zone is the number's, not the person's today.
  • No sending. It tells you when; your SMS or dialer platform sends.

Frequently asked questions

What are the TCPA quiet hours?

Under 47 CFR 64.1200(c)(1), telephone solicitations may not be made before 8 a.m. or after 9 p.m. at the called party's location. The FCC applies the TCPA to text messages, so marketing SMS to US numbers should stay inside 08:00-21:00 local time; some states are stricter.

Do quiet hours apply to transactional SMS?

The TCPA hours target telephone solicitations, and France's af2m charter excludes service messages, so a delivery notice or a one-time password is generally outside these windows. Sending a 2 a.m. reminder is still a poor experience; many teams apply a window to every non-urgent message.

What time can you send marketing SMS in France?

Under the af2m operators' charter applied since 1 March 2026, Monday to Saturday from 08:00 to 21:30; the charter tolerates Sundays and public holidays without recommending them, and the API excludes them by prudence. Telemarketing calls follow the stricter legal window: weekdays 10:00-13:00 and 14:00-20:00.

How do I find the time zone of a phone number?

From its country code and number range: libphonenumber maps each range to its possible IANA zones. GET /v1/send-time/check returns them in timezones, with the one that decides the window in timezone and the local time in local_time.

Does it handle daylight saving time?

Yes. Windows are converted to UTC day by day with the IANA database, so checks around a clock change (New York on 1 November 2026, Paris on 25 October 2026) use the right offset. Pass at to check a future moment.

Get started

SMS Send Time API

Can I text this number now? Local time, quiet hours, legal windows, holidays, next send slot.

  • SMS Marketing
  • TCPA
  • Time Zones
  • Python
  • Compliance