Overview
- Category
- Travel & Auto
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/jet-lag-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/jet-lag-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
origin_offset· number · required- Enter origin utc offset.
destination_offset· number · required- Enter destination utc offset.
direction· string · required-
Enter travel direction. Accepted values:
east, west. travel_days· number · required- Enter adjustment days available.
{
"type": "object",
"properties": {
"origin_offset": {
"type": "number",
"description": "Enter origin utc offset."
},
"destination_offset": {
"type": "number",
"description": "Enter destination utc offset."
},
"direction": {
"type": "string",
"description": "Enter travel direction.",
"enum": [
"east",
"west"
]
},
"travel_days": {
"type": "number",
"description": "Enter adjustment days available."
}
},
"required": [
"origin_offset",
"destination_offset",
"direction",
"travel_days"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
time_shift· number- Time-zone shift produced by the tool.
adjustment_days· number- Estimated adjustment days produced by the tool.
daily_shift_plan· array- Daily shift plan produced by the tool.
{
"type": "object",
"properties": {
"time_shift": {
"type": "number",
"description": "Time-zone shift produced by the tool."
},
"adjustment_days": {
"type": "number",
"description": "Estimated adjustment days produced by the tool."
},
"daily_shift_plan": {
"type": "array",
"description": "Daily shift plan produced by the tool."
}
},
"additionalProperties": false
}
Jet Lag Calculator worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/jet-lag-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"origin_offset": -5,
"destination_offset": 1,
"direction": "east",
"travel_days": 3
}'
{
"ok": true,
"data": {
"slug": "jet-lag-calculator",
"result": {
"values": {
"time_shift": 6,
"adjustment_days": 6,
"daily_shift_plan": [
{
"day": 1,
"suggested_clock_shift_hours": 2,
"direction": "east"
},
{
"day": 2,
"suggested_clock_shift_hours": 4,
"direction": "east"
},
{
"day": 3,
"suggested_clock_shift_hours": 6,
"direction": "east"
}
]
},
"display": {
"display": "6"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.