Natural Language Date API - Parse "tomorrow", "next Monday"
Recognizes "today", "tomorrow", "yesterday", relative phrases ("in 3 days", "2 weeks ago"), weekday phrases ("next Monday", "last Friday"), ISO dates (2025-03-15), MM/DD/YYYY, and month-name formats ("March 15 2025"). Returns ISO date, unix timestamp, day of week, relative description, and confidence (0-1).
Code examples
curl -X POST https://api.botoi.com/v1/date \
-H "Content-Type: application/json" \
-d '{"text":"next Monday","reference_date":"2026-04-15"}'When to use this API
Add natural-language date input to forms
Calendar widgets are slow. Let users type "next Friday" or "in 2 weeks" and parse to ISO on the server. Falls back to the date picker only when parsing fails.
Parse dates from LLM responses
When an LLM returns "the meeting is tomorrow at 3pm", extract the date portion and pass to this endpoint to normalize before adding to the user's calendar.
Reminder bots
A Slack or email bot takes commands like "remind me in 3 days to review the spec". Parse the time phrase, compute the target timestamp, and schedule the callback.
Frequently asked questions
What time zone are results in?
Why reference_date?
What format does confidence follow?
Are other languages supported?
What happens on unparseable input?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.