# Sunrise Sunset API

> Sunrise Sunset API on Apizie: 1 endpoint (Sun times) returned as clean JSON through one API key. 1 endpoint is live now. Call it over REST at https://zieapi.vercel.app/v1/places:sunrise-sunset/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `places:sunrise-sunset`
- Category: Places
- Status: live
- Source: https://sunrise-sunset.org/api
- Page: https://zieapi.vercel.app/api/places/sunrise-sunset
- OpenAPI: https://zieapi.vercel.app/api/places/sunrise-sunset/openapi.json

Sunrise, sunset, solar noon and twilight times for a coordinate and date.

## Endpoints

### Sun times
`GET https://zieapi.vercel.app/v1/places:sunrise-sunset/times`

| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | number | yes |  |
| lng | number | yes |  |
| date | string | no | YYYY-MM-DD, default today |

## Example
```
curl "https://zieapi.vercel.app/v1/places:sunrise-sunset/times" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Sunrise Sunset API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/places:sunrise-sunset/times with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Sunrise Sunset API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Sunrise Sunset API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key places:sunrise-sunset.

### What is the status of the Sunrise Sunset API?
Live: works with just an Apizie key
