API & MCP

Everything a person can do on Jet Lag Planner, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Jet Lag Planner

Pick your home and destination time zones, travel date and usual sleep times. The planner computes the real time difference for that date (including daylight saving), shifts your sleep before departure, and lists when to seek or avoid bright light and when to stop caffeine until you are adapted. Download it as a calendar file.

Inputs of Jet Lag Planner
FieldTypeDefaultDescription
homeZoneselect (Pacific/Honolulu, America/Anchorage, America/Los_Angeles, America/Denver, America/Phoenix, America/Chicago, America/Mexico_City, America/New_York, America/Toronto, America/Bogota, America/Lima"Europe/Berlin"Home time zone
destinationZoneselect (Pacific/Honolulu, America/Anchorage, America/Los_Angeles, America/Denver, America/Phoenix, America/Chicago, America/Mexico_City, America/New_York, America/Toronto, America/Bogota, America/Lima"America/New_York"Destination time zone
homeZoneCustomtext—Other home zone (IANA name). Overrides the list if filled in.
destinationZoneCustomtext—Other destination zone (IANA name). Overrides the list if filled in.
departureDate (required)date—Departure date
arrivalDatedate—Arrival date (local). Defaults to the departure date.
bedtimetime"23:00"Usual bedtime
wakeTimetime"07:00"Usual wake time
daysBeforeinteger3Days to pre-adjust before departure
chronotypeselect (early, intermediate, late)"intermediate"Chronotype

Example request

Berlin → New York (westward, 6 h)

curl -X POST https://jetlagplanner.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"homeZone":"Europe/Berlin","destinationZone":"America/New_York","departureDate":"2026-11-10","bedtime":"23:00","wakeTime":"07:00","daysBefore":3,"chronotype":"intermediate"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "jet-lag-planner": { "type": "http", "url": "https://jetlagplanner.usefulweb.site/mcp" }
  }
}