{"uid":"cap_UD1qXHGxflWcRGXdIvD4I","slug":"fittings-solar-sun-position-870dcc98","name":"fittings Solar Sun Position","description":"The sun's azimuth, elevation, shadow ratio and normal-facing panel angles at a coordinate and instant.","url":"https://fittings.sh/v1/solar/sun-position?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","lon"],"properties":{"at":{"type":"string","description":"ISO 8601 instant. Defaults to now."},"lat":{"type":"number","description":"Latitude, -90 to 90"},"lon":{"type":"number","description":"Longitude, -180 to 180"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Gd8myjRhFCgdW1AhLM0h2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the sun's azimuth, elevation, shadow ratio, and normal-facing panel angles for a geographic coordinate at a specific instant.","exampleAgentPrompt":"What's the sun's azimuth, elevation, and shadow ratio right now at latitude 37.7749, longitude -122.4194 (San Francisco)?","exampleUseCases":[{"title":"Solar panel installation planning","prompt":"I'm installing solar panels at latitude 51.5074, longitude -0.1278 in London. What will the sun's azimuth and the ideal panel-facing angle be at noon on June 21st?"},{"title":"Architectural shading analysis","prompt":"I'm designing a building in New York at lat 40.7128, lon -74.0060. Can you tell me the sun's elevation and shadow ratio on December 21st at 9am so I can plan the shading?"},{"title":"Real-time sun tracking for photography","prompt":"I'm doing outdoor photography in Tokyo right now — lat 35.6762, lon 139.6503. What's the current solar elevation and azimuth so I know where the light is coming from?"}],"resultDescription":"Returns the sun's azimuth (compass bearing in degrees), elevation (angle above horizon in degrees), shadow ratio (shadow length relative to object height), and the normal-facing panel angle (optimal tilt for a panel to face the sun directly) for the given latitude, longitude, and instant.","failureModes":["Missing required lat or lon parameters returns a 400 error","Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) returns a validation error","Invalid ISO 8601 format for the 'at' parameter returns a parse error","Network timeout or service unavailability returns a 5xx error","Payment failure due to insufficient USDC balance blocks the request"],"whenToPreferThis":"Choose this endpoint when you need precise, computed solar geometry data — azimuth, elevation, shadow ratio, and panel normal angles — for a specific coordinate and moment. It is ideal for solar energy planning, architectural shading studies, agricultural timing, photography, and real-time sun tracking. Prefer it over weather APIs that only give daylight hours, and over astronomy APIs focused on planetary data rather than solar geometry.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:41:59.524Z","isFirstParty":false,"canonicalSlug":"fittings-solar-sun-position-870dcc98"}