South Star

Natural Language Date Parser Timezone API

Free tier included · Tools
Parse natural language dates in 20+ languages with confidence scores, ranges, and business days.

Natural Language Date Parser API parses dates written in natural language across 20+ languages, including relative expressions ("in 3 days", "in 2 weeks"), absolute dates, ranges ("March 3 - March 9, 2026"), and imprecise phrases ("Q3 2024", "last month"). Built on the dateparser library, it supports language detection, locale-aware formatting, and business day counting.

This API covers parsing, relative resolution, language detection, range extraction, timezones, confidence scores, and formatting. It includes advanced endpoints like `/parse/full` for confidence scores, `/range` for date ranges, `/business_days` for workday counting, `/timezones` for IANA timezone identifiers, and `/format` for human-readable relative strings.

The service is offline and stateless: no external calls, no data retention. However, it has honest limits. Phrases combining next/last with weekdays ("next friday") are not supported by the dateparser engine and return `parsed=null`. The `/parse/full` and `/range` endpoints return flexible JSON objects without strict schemas. All text inputs are capped at 200 characters, and language hints are limited to 5 codes.

Use cases: international e-commerce platforms parsing delivery dates from customer input in multiple languages; calendar apps resolving relative reminders ("remind me in 2 weeks"); project management tools calculating business days between milestones; and multilingual chatbots extracting date ranges from user messages.

Endpoints

MethodPathWhat it does
GET/Service info: API name, version, and paths to documentation and healthcheck.
GET/healthLiveness probe; returns status "ok" when the service is up.
GET/parseParse a natural language date into ISO-8601 UTC. Supports relative expressions, absolute dates, and 20+ languages. Returns parsed=null with an error message when the input cannot be understood.
GET/parse/fullExtended parsing with confidence score, precision level, and ambiguity flag. Same parameters as /parse.
GET/rangeParse date ranges or imprecise expressions into start/end ISO-8601 boundaries.
GET/detect_languageDetect the language of a natural language date string using dateparser's built-in detection.
GET/timezonesList all IANA timezone identifiers available in the system's zoneinfo database.
GET/formatFormat an ISO-8601 datetime as a human-readable relative string with correct pluralization.
GET/business_daysCount business days (Monday–Friday) between two ISO-8601 dates, excluding weekends.

Quick start

curl -X GET "https://dateparser.p.rapidapi.com/parse?text=in+3+days&languages=en" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: dateparser.p.rapidapi.com"

FAQ

Does the API support "next friday" or "в следующую пятницу"?

No. The dateparser engine does not understand phrases that combine next/last with a weekday. These return `parsed=null` with an error message.

Is the API truly offline with no external calls?

Yes. All parsing is done locally using the dateparser library. There are no external network calls, databases, or logs.

What's the difference between /parse and /parse/full?

`/parse/full` returns the same parsed date plus a confidence score, precision level, and ambiguity flag. It's useful when you need reliability metadata.

Can I parse dates in non-English languages?

Yes. The API supports 20+ languages including Russian, Spanish, French, German, Korean, and more. You can provide language hints via the `languages` parameter or let the API auto-detect.

Try Natural Language Date Parser Timezone free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs