# sunrise-sunset-dhaka

> sunrise-sunset-dhaka is a paid API for AI agents from data.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Returns sunrise, sunset, solar noon, day length, twilight phases, and golden hour times for Dhaka, Bangladesh for today and tomorrow.

## Facts

- Endpoint: GET https://data.intel.rallylive.ca/data/sun/dhaka?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sunrise-sunset-dhaka-e17ea453
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JBdoZFaezNd1_U042Xc4i

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sunrise-sunset-dhaka-e17ea453
```

Example prompt: What time is sunrise and sunset in Dhaka today, and when is golden hour for photography?

## When to prefer this

Choose this endpoint when you specifically need solar event data for Dhaka, Bangladesh without needing to supply coordinates or timezone parameters — the city's location is hardcoded, making it a zero-configuration call. Prefer it over generic sun/astronomy APIs when you want a simple, fixed-city lookup with no parameter setup and are already operating within the x402 micropayment ecosystem. Not suitable if you need solar data for any other city.

## Known failure modes

- Upstream solar calculation service unavailable — returns 5xx error
- Stale or cached data if the date boundary has not rolled over correctly
- No query parameters accepted; only Dhaka coordinates are supported — cannot be used for other cities
- Payment not processed (x402) — returns 402 Payment Required if USDC payment header is missing or invalid

## How this service works

Sunrise, sunset, solar noon, day length, civil/nautical/astronomical twilight and golden hour for Dhaka today (and tomorrow), computed for the city's coordinates and local timezone. Photography, outdoor scheduling and prayer-time helpers for Dhaka. $0.01 per call.

## Output

Returns a structured JSON object containing precise times (in local Dhaka timezone) for sunrise, sunset, solar noon, day length in seconds/minutes, civil twilight (morning and evening), nautical twilight (morning and evening), astronomical twilight (morning and evening), and golden hour windows — for both today and tomorrow.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sunrise-sunset-dhaka-e17ea453/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.intel.rallylive.ca](https://www.zero.xyz/host/data.intel.rallylive.ca/llms.txt)
