Scraped or user-entered hours arrive as prose. Get back a predictable object: seven days, each with an intervals array of open/close times in 24-hour form, plus a confidence score and anything that failed to parse.
…
Mon-Fri, M-Th, Sat & Sun, weekdays.9, 9am, 9.30, 09:30, noon, midnight.closed, by appointment, 24/7.The response includes a confidence float and an
unparsed_segments list. The parser is deterministic — no LLM — so it never
invents hours; anything it can't read is handed back to you for review instead of
being silently guessed.
This page runs on the public OpenHours API. The same call handles bulk input — up to 500 hours strings per request — and returns all three formats at once. Free tier is 100 requests/day with no signup.
curl -X POST https://smeltworks.com/openhours/v1/parse \
-H 'content-type: application/json' \
-d '{"text":"Mon-Fri 9am-5pm, Sat 10-2, closed Sun"}'