SunRay.global
# ☀️ Sunray REST API The **Sunray REST API** is a specialised geospatial service designed to deliver precise information about **effective sunlight exposure** at any geographic coordinate worldwide. Unlike conventional solar data services that simply report astronomical sunrise and sunset times, the Sunray API computes **actual visibility of direct sunlight** at a location, accounting for the…
SunRay.global endpoints
| Method | Endpoint | Description |
|---|---|---|
| SunExposure | ||
| GET |
/api/v1/sun-exposure/days /api/v1/sun-exposure/days |
Returns daylight and direct-sunlight information for one day. If no date is provided, the server uses today's date (UTC) as default. |
| GET |
/api/v1/sun-exposure/days/{date} /api/v1/sun-exposure/days/{date} |
Returns daylight and direct-sunlight information for the given ISO date. |
| GET |
/api/v1/sun-exposure/years /api/v1/sun-exposure/years |
Returns aggregated daylight/direct-sunlight statistics per month for a year. If no year is provided, the server uses the current year as default. |
| GET |
/api/v1/sun-exposure/years/{year} /api/v1/sun-exposure/years/{year} |
|
| GET |
/api/v1/sun-exposure/years/with-daily-details /api/v1/sun-exposure/years/with-daily-details |
Same as the yearly summary, but includes a compressed year-wide minute status payload. If no year is provided, the server uses the current year as default. |
| GET |
/api/v1/sun-exposure/years/{year}/with-daily-details /api/v1/sun-exposure/years/{year}/with-daily-details |
|
SunRay.global pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $24 / month | 1 / second |
|
| ULTRA | $48 / month | 5 / second |
|
| MEGA | $98 / month | — |
|