{"uid":"cap_-LgH73A0nRcg0S1Izz2nm","slug":"writerslogic-solar-position-calculator-030b0a0a","name":"WritersLogic Solar Position Calculator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/solar-position?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$","maxLength":40,"description":"ISO 8601 instant with Z or numeric offset; the call never reads the clock."},"claim":{"type":"object","properties":{"sunset":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$","maxLength":40,"description":"Claimed sunset, ISO 8601 with Z or offset."},"sunrise":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$","maxLength":40,"description":"Claimed sunrise, ISO 8601 with Z or offset."},"azimuthDeg":{"type":"number","maximum":360,"minimum":0,"description":"Claimed azimuth, degrees clockwise from north."},"toleranceDeg":{"type":"number","maximum":10,"minimum":0,"description":"Angle tolerance in degrees."},"toleranceMinutes":{"type":"number","maximum":60,"minimum":0,"description":"Time tolerance in minutes."},"elevationRefractedDeg":{"type":"number","maximum":90,"minimum":-90,"description":"Claimed apparent elevation including refraction."}},"description":"Optional claim about the asOf instant to check; tolerances default to 0.5 deg and 2 minutes."},"instants":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$","maxLength":40,"description":"ISO 8601 instant with Z or offset."},"maxItems":99,"description":"Further instants, same place."},"latitude":{"type":"number","maximum":90,"minimum":-90,"description":"Degrees north, -90 to 90."},"longitude":{"type":"number","maximum":180,"minimum":-180,"description":"Degrees east, -180 to 180."},"utcOffsetMinutes":{"type":"integer","maximum":840,"minimum":-720,"description":"Offset from UTC used to define the local calendar day for sunrise/sunset (default 0)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a2NDk8Pz4VUURY8AweVgD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes sun elevation, azimuth, solar noon, sunrise, and sunset for a given latitude/longitude and up to 100 caller-supplied timestamps using NOAA/Meeus equations","exampleAgentPrompt":"What's the sun elevation and azimuth at latitude 40.7128, longitude -74.0060 on 2025-06-21T12:00:00Z, and when does the sun rise and set there that day (UTC offset -300 minutes)?","exampleUseCases":[{"title":"Solar panel angle optimization","prompt":"I'm setting up solar panels at latitude 34.05, longitude -118.24 and need the sun elevation and azimuth for every hour on 2025-07-15 — can you batch compute all 24 timestamps from 2025-07-15T00:00:00Z to 2025-07-15T23:00:00Z with a UTC offset of -420 minutes?"},{"title":"Verify a photographer's golden hour claim","prompt":"A photographer claims the sun was at 15.3 degrees elevation and 285 degrees azimuth at latitude 51.5074, longitude -0.1278 on 2025-05-10T19:45:00Z — can you check if that's accurate within 1 degree tolerance?"},{"title":"Polar region sunrise check","prompt":"Is there a sunrise at latitude 71.0, longitude 25.0 on 2025-12-21T00:00:00Z, or is it polar night? Give me the solar noon and any available sun position data."}],"resultDescription":"Returns sun elevation (true and refraction-corrected), azimuth (degrees clockwise from north), solar declination, equation of time, and UTC times for sunrise, solar noon, and sunset for each requested instant. Polar day and polar night return null for sunrise/sunset with a reason string. Optionally includes a claim verification result indicating whether the caller's asserted values fell within the specified tolerances.","failureModes":["Invalid latitude/longitude range returns a validation error","Malformed ISO 8601 timestamp causes a parse error","More than 99 instants in the array exceeds the batch limit","UTC offset outside -720 to +840 minutes returns a validation error","Claim tolerances outside allowed ranges (0-10 deg, 0-60 min) are rejected","Polar day/polar night locations return null sunrise/sunset with reason (not an error)"],"whenToPreferThis":"Choose this endpoint when you need deterministic, physics-based solar position calculations without reading a live clock — especially when you have your own timestamps to supply, need batch processing of up to 100 instants, need polar-region handling that returns null rather than errors, or need to verify a claimed solar position against computed values. Prefer this over weather APIs for pure solar geometry. Not suitable when you need terrain shadowing, twilight modeling, or local weather effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:43:41.796Z","isFirstParty":false,"canonicalSlug":"writerslogic-solar-position-calculator-030b0a0a"}