{"uid":"cap_3GH5YdF9nmZJ4KgzhFpR-","slug":"sun-times-sunrise-sunset-api-8701907f","name":"Sun Times (Sunrise/Sunset) API","description":"Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.","url":"https://anibalb.duckdns.org/x402/sun-times?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"sunset":"2026-10-26T17:27:50+00:00","sunrise":"2026-10-26T06:35:27+00:00","solar_noon":"2026-10-26T12:01:38+00:00","day_length_s":39143}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GYPnr9-dzJKaWeICFhY6V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, solar noon, and day length for today at the server's default location, paid per call in USDC via x402.","exampleAgentPrompt":"What time is sunrise and sunset today, and how long is the day in total?","exampleUseCases":[{"title":"Outdoor event daylight planning","prompt":"I'm planning an outdoor event — can you tell me what time sunrise and sunset are today and how many seconds of daylight we'll have?"},{"title":"Photography golden hour lookup","prompt":"I want to know today's sunrise, sunset, and solar noon times so I can plan my golden-hour photography session."},{"title":"Automated daily solar briefing","prompt":"Every morning, pull today's sunrise, sunset, and solar noon times and include them in my daily briefing."}],"resultDescription":"A JSON object containing ISO 8601 timestamps for sunrise, sunset, and solar noon, plus the total day length in seconds (e.g. {\"sunrise\":\"2026-10-26T06:35:27+00:00\",\"sunset\":\"2026-10-26T17:27:50+00:00\",\"solar_noon\":\"2026-10-26T12:01:38+00:00\",\"day_length_s\":39143}).","failureModes":["Payment not provided or insufficient USDC — returns 402 Payment Required","Network unreachability to duckdns.org host — connection timeout","Server-side solar computation error — may return 500","No query parameters accepted; passing unexpected params may be silently ignored or error"],"whenToPreferThis":"Choose this endpoint when you need quick, no-account-required solar time lookups paid per call in USDC via x402, and do not need to specify a custom latitude/longitude (endpoint uses a default location). Ideal for lightweight agents that need ephemeris data without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:46.938Z","isFirstParty":false,"canonicalSlug":"sun-times-sunrise-sunset-api-8701907f"}