{"uid":"cap_bmIwVCpR2845oASUYGzMF","slug":"saylor-innovations-sleep-cycle-calculator-88f1eb51","name":"Saylor Innovations Sleep Cycle Calculator","description":"Bedtimes that end a 90-minute sleep cycle at a given wake time, or wake times for a given bedtime, with total sleep hours and time to fall asleep.","url":"https://saylorinnovations.com/api/health/sleep-cycles?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["wake_time"],"properties":{"wake_time":{"type":"string","description":"when you need to wake, HH:MM 24-hour (or give bedtime)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["options","best_option"],"properties":{"mode":{"type":"string","description":"Which direction was calculated"},"note":{"type":"string","description":"Plain-language caveat about how to read and use the result"},"source":{"type":"string","description":"Where the data or formula comes from"},"options":{"type":"array","items":{"type":"object","properties":{"cycles":{"type":["number","null"],"description":"Number of sleep cycles"},"quality":{"type":["string","null"],"description":"How that amount of sleep rates"},"sleep_hours":{"type":["number","null"],"description":"Total sleep"},"go_to_bed_at":{"type":["string","null"],"description":"Bedtime for the supplied wake time"}}},"description":"Candidate times for 6, 5, 4 and 3 cycles"},"input_time":{"type":"string","description":"Time supplied"},"best_option":{"type":"object","description":"The five-cycle option, usually 7.5 hours"},"cycle_minutes":{"type":"number","description":"Cycle length used"},"minutes_to_fall_asleep":{"type":"number","description":"Time to fall asleep used"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VWdGKcXbe4A6parnVyqwm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns optimal bedtimes that end on a 90-minute sleep cycle boundary for a given wake time, or wake times for a given bedtime, with quality ratings and total sleep hours.","exampleAgentPrompt":"What time should I go to bed tonight if I need to wake up at 06:30 tomorrow — give me the options that land on complete 90-minute sleep cycles and tell me which one you'd recommend?","exampleUseCases":[{"title":"Morning alarm back-calculation","prompt":"I have to be up at 7:00 AM for work — what are my best bedtime options so I wake up at the end of a sleep cycle instead of in the middle of one?"},{"title":"Night-shift worker sleep planning","prompt":"I finish my shift at 02:00 and need to sleep — calculate the wake times that would give me complete 90-minute sleep cycles so I feel rested, starting from a 02:30 bedtime."},{"title":"Nap or short sleep optimization","prompt":"I only have a few hours to sleep before a flight — if I go to bed at 23:00, which wake time options give me the most complete sleep cycles and how many hours would that be?"}],"resultDescription":"A JSON object containing an array of candidate sleep options (for 3, 4, 5, and 6 sleep cycles) each with the corresponding bedtime or wake time, total sleep hours, cycle count, and a quality rating. Includes a best_option field highlighting the recommended 5-cycle/7.5-hour option, the cycle length in minutes, assumed minutes-to-fall-asleep, the input time echoed back, the mode (wake-time or bedtime direction), a plain-language note, and a source attribution.","failureModes":["Missing required wake_time or bedtime parameter returns an error","Malformed time string (not HH:MM 24-hour format) may return a parsing error or unexpected results","No sleep option available for very short windows (e.g. only 1-2 hours available) may return empty or limited options array"],"whenToPreferThis":"Choose this endpoint when you need a quick, formula-based computation of sleep cycle-aligned bedtimes or wake times without requiring any personal biometric data. It is ideal for scheduling assistants, wellness apps, or alarm-planning agents that want to present users with multiple sleep window options ranked by quality. It is not a substitute for medical advice or personalized sleep tracking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:21:44.548Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-sleep-cycle-calculator-88f1eb51"}