{"uid":"cap_l5xovikwx50IXiwT4ot_F","slug":"fastx402-sun-position-times-5bdbe18a","name":"FastX402 Sun Position & Times","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/sun-position-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"],"type":"string"},"queryParams":{"type":"object","required":["lat","lng","date"],"properties":{"lat":{"type":"string","description":"Latitude in decimal degrees, between -90 and 90 (e.g. 40.7128)"},"lng":{"type":"string","description":"Longitude in decimal degrees, between -180 and 180 (e.g. -74.0060)"},"date":{"type":"string","description":"Date of the observation, YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"lat":{"type":"number"},"lng":{"type":"number"},"date":{"type":"string"},"sunset":{"type":"string"},"sunrise":{"type":"string"},"day_length":{"type":"string"},"solar_noon":{"type":"string"},"civil_twilight_end":{"type":"string"},"civil_twilight_begin":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"lat":40.7128,"lng":-74.006,"date":"2026-06-21","sunset":"2026-06-21T20:29:00+00:00","sunrise":"2026-06-21T08:24:00+00:00","day_length":"12:05:00","solar_noon":"2026-06-21T14:26:00+00:00","civil_twilight_end":"2026-06-21T21:03:00+00:00","civil_twilight_begin":"2026-06-21T07:50:00+00:00"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wN4wU4EOof7Yo77jWnJv9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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, civil twilight times, and day length for a given location and date","exampleAgentPrompt":"What time does the sun rise and set in New York City (40.7128, -74.0060) on June 21, 2026, and how long is the day?","exampleUseCases":[{"title":"Photography golden hour planning","prompt":"I'm doing an outdoor photo shoot in Los Angeles (34.0522, -118.2437) on August 15, 2025 — what time is sunset and when does civil twilight end so I know my golden hour window?"},{"title":"Camping trip sunrise alarm","prompt":"We're camping near Denver at coordinates 39.7392, -104.9903 on July 4th, 2025. What time does the sun rise so I can set my alarm?"},{"title":"Winter day length check","prompt":"How many hours of daylight will there be in Reykjavik (64.1355, -21.8954) on December 21, 2025? I want to know sunrise, sunset, and total day length."}],"resultDescription":"A JSON object containing the latitude, longitude, and date of the query, along with ISO 8601 timestamps for sunrise, sunset, solar noon, civil twilight begin, and civil twilight end, plus a string representing the day length as HH:MM:SS","failureModes":["Missing required parameters (lat, lng, or date) — likely returns 400 or validation error","Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) — invalid input error","Date in unsupported format (not YYYY-MM-DD) — parse error","Payment failure via x402 — 402 Payment Required response","Extreme polar coordinates on dates with no sunrise or sunset (polar day/night) — may return unusual or null values"],"whenToPreferThis":"Choose this endpoint when you need precise astronomical sun times (sunrise, sunset, solar noon, civil twilight) for any geographic coordinate and date without registering an account or managing API keys. It is ideal for AI agents that need pay-per-call access with USDC micropayments via x402. Prefer this over weather APIs when you specifically need solar event times rather than meteorological data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:07:43.441Z","isFirstParty":false,"canonicalSlug":"fastx402-sun-position-times-5bdbe18a"}