# EU Weather & Geo – Sunrise/Sunset

> EU Weather & Geo – Sunrise/Sunset is a paid API for AI agents from eu-weather-geo.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns sunrise time, sunset time, and day length in minutes for a given city or latitude/longitude on a specific date.

## Facts

- Endpoint: GET https://eu-weather-geo.frcompanycheck.workers.dev/v1/sun?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-weather-geo-sunrise-sunset-a32dfaf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jJu9TrDL3C1rewADDQKwZ

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 eu-weather-geo-sunrise-sunset-a32dfaf7
```

Example prompt: What time does the sun rise and set in Lyon, France on June 21, 2026, and how many minutes of daylight will there be?

## When to prefer this

Choose this endpoint when you need precise local sunrise/sunset times or day length for a specific city or coordinate on a specific date, paid per-call in USDC without requiring an account or API key. It is ideal for lightweight, on-demand astronomical lookups without the overhead of a subscription service.

## Known failure modes

- City not found or population below 50k threshold — 404 or empty result
- Ambiguous city name without country code — wrong city returned
- Invalid date format (not YYYY-MM-DD) — 400 validation error
- Missing both city and lat/lon — 400 missing parameter error
- Payment failure via x402 — 402 response, no charge applied

## How this service works

Weather and geo utilities for AI agents, paid per call in USDC via x402 (no account, no API key): current weather and up-to-9-day daily forecasts for any city or lat/lon (MET Norway open data, CC BY 4.0), city geocoding with time zones (GeoNames, CC BY 4.0) and sunrise/sunset. Errors are never charged.

## Output

A JSON object with the date, local sunrise datetime, local sunset datetime, and total day length in minutes for the requested location and date.

## 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": {
      "lat": {
       "type": "number",
       "description": "Latitude (if no city)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude (if no city)"
      },
      "city": {
       "type": "string",
       "example": "Paris",
       "description": "City name, optionally ',CC' (e.g. Lyon,FR); cities >= 50k inhabitants"
      },
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD (default today UTC)"
      },
      "country": {
       "type": "string",
       "description": "ISO country code to disambiguate"
      },
      "timezone": {
       "type": "string",
       "description": "IANA zone for local times/days (default: city zone or UTC)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-06-21",
  "sunset_local": "2026-06-21T21:58:00",
  "sunrise_local": "2026-06-21T05:47:00",
  "day_length_minutes": 971
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-weather-geo-sunrise-sunset-a32dfaf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eu-weather-geo.frcompanycheck.workers.dev](https://www.zero.xyz/host/eu-weather-geo.frcompanycheck.workers.dev/llms.txt)
