Daylight Duration Calculator API GET
https://api.apiverve.com/v1/daylightduration
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
GETapi.apiverve.com/v1/daylightduration
VerificationFormat
No key required to try it. Get a key to use it in your app.
{
"status": "ok",
"error": null,
"data": {
// Daylight Duration Calculator response payload
}
}Code examples — ready to paste, with real parameters
curl "https://api.apiverve.com/v1/daylightduration?latitude=40.7128&longitude=-74.0060&date=2024-06-21" \
-H "x-api-key: YOUR_API_KEY"Replace
YOUR_API_KEY with your key.Full reference in the docs →Access methods
Call it however you build.
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
Zero-code embed
Drop it into any site.
Add an interactive form for Daylight Duration Calculator with a single snippet — no backend, no keys in your markup.
Loading preview…
Other ways to use Daylight Duration Calculator
Same data, same APIVerve account, same credit balance — one key works on all of them.
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.on VerveKit Use it in Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.on VerveSheets Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.on VerveContext
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 1 credit from your shared pool. The free tier includes 100 credits every month, and paid plans add more headroom.
How fast is the Daylight Duration Calculator API?
Typical responses return in around 211 ms (p50), served from 24 regions under a 99.9% uptime SLA.
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.