# AgentsToolsHub Sun Position

> AgentsToolsHub Sun Position is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns the sun's azimuth, elevation angle, cardinal direction, right ascension, and declination for any geographic coordinates at any timestamp using NOAA solar equations.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/geo-time/sun-position?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-sun-position-7f2f2013
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o4EPJbD-ExIYhvjDLpoCp

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 agentstoolshub-sun-position-7f2f2013
```

Example prompt: What's the sun's azimuth and elevation angle right now at coordinates 37.7749° N, 122.4194° W in San Francisco?

## When to prefer this

Choose this endpoint when you need precise, deterministic solar position data (azimuth, elevation, cardinal direction, RA/Dec) for any coordinates and time — especially for shadow calculations, solar panel orientation, or photography planning. Prefer over general astronomy APIs when NOAA-equation accuracy and low cost per call matter. Use the sibling sunrise/sunset endpoint when you only need daily solar event times rather than instantaneous position.

## Known failure modes

- Missing required lat or lon parameters returns a 400 error
- Invalid ISO timestamp format causes a parsing error
- Coordinates outside valid range (lat -90 to 90, lon -180 to 180) may return an error or undefined behavior
- Network timeout or service unavailability returns a 5xx error

## How this service works

Where the sun is in the sky right now — or at any timestamp — for any coordinates: azimuth (compass bearing), elevation angle, cardinal direction, right ascension and declination, from the NOAA solar equations. Deterministic astronomy for shadow math, solar-panel orientation and photo planning. Use this when an agent needs to azimuth, altitude and cardinal direction, now or any time.

## Output

Returns the sun's current or historical position including azimuth (compass bearing in degrees), altitude/elevation angle (degrees above or below horizon), cardinal direction (e.g. SW, NNE), right ascension, and declination — all computed deterministically from NOAA solar equations for the given lat/lon and optional timestamp.

## 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",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude"
      },
      "lon": {
       "type": "number",
       "description": "Longitude"
      },
      "atIso": {
       "type": "string",
       "description": "At (ISO, optional)"
      }
     }
    }
   },
   "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/agentstoolshub-sun-position-7f2f2013/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
