Sunrise Sunset API GET

Sunrise Sunset is a simple tool for getting the sunrise and sunset times. It returns the sunrise and sunset times for a given location and date.

Try it — live request, no key required

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

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

200 OK
{
  "status": "ok",
  "error": null,
  "data": {
    // Sunrise Sunset response payload
  }
}

About the Sunrise Sunset API

Sunrise Sunset works by calculating the sunrise and sunset times based on the location and date provided. It returns the sunrise and sunset times in a structured format.

What people use it for

Photography
Use the Sunrise Sunset API to get sunrise and sunset times for photography. Use the data to plan shoots, capture golden hours, and optimize lighting
Outdoor Activities
Plan outdoor activities by using the Sunrise Sunset API to get sunrise and sunset times. Use the data to schedule events, organize trips, and optimize experiences
Gardening
Get sunrise and sunset times by using the Sunrise Sunset API for gardening. Use the data to plan planting, schedule harvests, and optimize crop growth
Weather App
Use the Sunrise Sunset API to get sunrise and sunset times for a weather app. Use the data to display weather information, provide forecasts, and offer alerts

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 Sunrise Sunset

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

Questions.

Common questions about the Sunrise Sunset API.

Read the docs
What does the Sunrise Sunset API do?
Sunrise Sunset is a simple tool for getting the sunrise and sunset times. It returns the sunrise and sunset times for a given location and date.
How do I authenticate Sunrise Sunset 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 Sunrise Sunset 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 Sunrise Sunset 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 Sunrise Sunset 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 Sunrise Sunset API use?
GET over HTTPS, following standard REST conventions with a consistent { status, error, data } response envelope.

Ready to build with Sunrise Sunset? 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