# sunrise-sunset-riyadh

> sunrise-sunset-riyadh 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 Riyadh, Saudi Arabia for today and tomorrow.

## Facts

- Endpoint: GET https://data.intel.rallylive.ca/data/sun/riyadh?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-riyadh-4667df2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x3Xdq_jMBbdR8vPs7VN-n

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-riyadh-4667df2f
```

Example prompt: What time is sunrise and sunset in Riyadh today, and when's the golden hour window for an outdoor photo shoot?

## When to prefer this

Choose this endpoint when you need fast, precise solar event times specifically for Riyadh without building your own astronomical calculation or passing coordinates. It is ideal for prayer-time approximation, photography scheduling, or outdoor event planning in Riyadh where a dedicated pre-computed result is faster and cheaper than a general-purpose solar API with coordinate inputs.

## Known failure modes

- Network or server errors returning non-200 HTTP status
- Stale or cached data if the backend fails to refresh at midnight local time
- No query parameters accepted — city and date are fixed to Riyadh today/tomorrow
- Payment failure (x402) if USDC balance is insufficient

## How this service works

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

## Output

Returns structured solar data for Riyadh including exact local times for sunrise, sunset, solar noon, day length in hours/minutes, civil twilight start/end, nautical twilight start/end, astronomical twilight start/end, and golden hour windows — for both today and tomorrow, expressed in Riyadh's local timezone (Asia/Riyadh).

## 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-riyadh-4667df2f/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)
