Daylight Duration Calculator API
Daylight Duration Calculator computes sunrise, sunset times, and total daylight hours for any geographic location and date using astronomical algorithms.
Live Test API
Try out the Daylight Duration Calculator with a live request and see the response in real-time.
API Request
API Response
1234567891011121314151617181920212223{ "status": "ok", "error": null, "data": { "date": "2024-06-21", "location": { "latitude": 40.7128, "longitude": -74.006 }, "condition": "Normal", "description": "Standard sunrise and sunset", "sunrise": "09:25:09", "sunset": "24:30:44", "daylight_duration": { "total_minutes": 905.58, "hours": 15, "minutes": 5, "formatted": "15:05:00" }, "day_of_year": 173, "is_valid": true } }
Multiple Access Methods
REST API with multiple response formats, GraphQL, and MCP for AI agents
View all integrationsJSON
JavaScript Object Notation
XML
Extensible Markup Language
YAML
Human-readable data format
CSV
Comma-separated values
GraphQL
Query language for APIs
MCP
AI agent integration
Skip the HTTP calls. Use our official packages
Integrate faster with type-safe SDKs and comprehensive documentation
View all integrationsRelated APIs
Explore other math/calculations APIs that complement the Daylight Duration Calculator
Frequently Asked Questions
Get answers to common questions about the Daylight Duration Calculator API
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. The API returns structured data in JSON, XML, or YAML format, making it easy to integrate into any application or workflow.
How fast is the Daylight Duration Calculator API?
The Daylight Duration Calculator API has an average response time of 223ms, with a median (p50) of 211ms and 99th percentile of 303ms. Our infrastructure maintains 99.9% uptime with servers distributed globally for low latency.
How much does the Daylight Duration Calculator API cost?
Each call to the Daylight Duration Calculator API uses 1 credit. The free tier includes 100 credits per month. Paid plans start at $29.99/month with higher limits, and enterprise plans offer custom pricing with priority support.
How do I authenticate Daylight Duration Calculator API requests?
Include your API key in the request header as X-API-Key: your_key_here. All requests are made over HTTPS for security. You can get your API key by signing up for a free account.
What HTTP methods does Daylight Duration Calculator support?
The Daylight Duration Calculator API supports GET requests. Simply pass your parameters as query strings in the URL. Check our documentation for detailed parameter specifications.
Ready to integrate Daylight Duration Calculator API?
Join thousands of developers building amazing applications with reliable API data. Get started with your free API key today.