# sunrise-sunset-sofia

> sunrise-sunset-sofia 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-21).

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

## Facts

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

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-sofia-7dd72323
```

Example prompt: What time is sunrise and golden hour in Sofia today, and how long is the day?

## When to prefer this

Choose this endpoint when you need precise solar event times specifically for Sofia, Bulgaria, including golden hour and all twilight phases, without needing to supply coordinates or timezone — they are pre-configured. Ideal for photography apps, scheduling tools, or prayer-time calculators targeting Sofia.

## Known failure modes

- Service unavailability returns a non-200 HTTP error
- Payment not fulfilled returns 402 status
- Date boundary edge cases (e.g. midnight queries) may return ambiguous today/tomorrow data
- No query parameters accepted — city and coordinates are hardcoded to Sofia

## How this service works

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

## Output

Returns solar event times for Sofia for today and tomorrow, including sunrise, sunset, solar noon, total day length, civil/nautical/astronomical twilight start and end times, and golden hour windows — all expressed in Sofia's local timezone.

## 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-sofia-7dd72323/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)
