Daylight Duration Calculator API GET

Daylight Duration Calculator computes sunrise, sunset times, and total daylight hours for any geographic location and date using astronomical algorithms.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/daylightduration
Verification
Format

No key required to try it. Get a key to use it in your app.

200 OK
{
  "status": "ok",
  "error": null,
  "data": {
    // Daylight Duration Calculator response payload
  }
}

About the Daylight Duration Calculator API

Returns detailed information including day of year, sunrise/sunset times, and formatted daylight duration, perfect for solar energy, agriculture, and travel applications.

What people use it for

Solar Optimization
Calculate daylight hours for solar panel optimization and energy production forecasting based on geographic location
Activity Planning
Plan outdoor activities and events based on accurate sunset and sunrise times for any location and date
Weather Apps
Build weather and astronomy applications with precise daylight duration calculations and solar position data
Photography Scheduling
Schedule photography sessions based on golden hour timing, blue hour, and optimal natural lighting conditions

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Daylight Duration Calculator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Daylight Duration Calculator API.

Read the docs
What does the Daylight Duration Calculator API do?
Daylight Duration Calculator computes sunrise, sunset times, and total daylight hours for any geographic location and date using astronomical algorithms.
How do I authenticate Daylight Duration Calculator API requests?
Pass your API key in the x-api-key header over HTTPS. One key works across all 300+ APIVerve APIs — there are no per-endpoint credentials.
How much does the Daylight Duration Calculator API cost?
Each call spends 2 credits from your shared pool. The free tier includes 200 credits every month, and paid plans add more headroom.
How fast is the Daylight Duration Calculator API?
Response time depends on the endpoint — the p50 through p99 latency for this API is published on this page. Requests are served over HTTPS through a global edge network.
What response formats does the Daylight Duration Calculator API support?
JSON by default, plus XML and YAML via the format parameter. GraphQL and an MCP interface for AI agents are available across the catalog.
What HTTP method does the Daylight Duration Calculator API use?
GET over HTTPS, following standard REST conventions with a consistent { status, error, data } response envelope.

Ready to build with Daylight Duration Calculator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs