# fittings Solar Sun Position

> fittings Solar Sun Position is a paid API for AI agents from fittings.sh, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-11).

Returns the sun's azimuth, elevation, shadow ratio, and normal-facing panel angles for a geographic coordinate at a specific instant.

## Facts

- Endpoint: GET https://fittings.sh/v1/solar/sun-position?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-solar-sun-position-870dcc98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UD1qXHGxflWcRGXdIvD4I

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 fittings-solar-sun-position-870dcc98
```

Example prompt: What's the sun's azimuth, elevation, and shadow ratio right now at latitude 37.7749, longitude -122.4194 (San Francisco)?

## When to prefer this

Choose this endpoint when you need precise, computed solar geometry data — azimuth, elevation, shadow ratio, and panel normal angles — for a specific coordinate and moment. It is ideal for solar energy planning, architectural shading studies, agricultural timing, photography, and real-time sun tracking. Prefer it over weather APIs that only give daylight hours, and over astronomy APIs focused on planetary data rather than solar geometry.

## Known failure modes

- Missing required lat or lon parameters returns a 400 error
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) returns a validation error
- Invalid ISO 8601 format for the 'at' parameter returns a parse error
- Network timeout or service unavailability returns a 5xx error
- Payment failure due to insufficient USDC balance blocks the request

## How this service works

The sun's azimuth, elevation, shadow ratio and normal-facing panel angles at a coordinate and instant.

## Output

Returns the sun's azimuth (compass bearing in degrees), elevation (angle above horizon in degrees), shadow ratio (shadow length relative to object height), and the normal-facing panel angle (optimal tilt for a panel to face the sun directly) for the given latitude, longitude, and instant.

## 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": {
      "at": {
       "type": "string",
       "description": "ISO 8601 instant. Defaults to now."
      },
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-solar-sun-position-870dcc98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
