Sun Position API GET

Sun Position is a simple tool for getting sun position data. It returns data such as altitude, azimuth, and distance of the sun from the location provided.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/sunposition
Verification
Format

No key required to try it. Get a key to use it in your app.

200 OK
{
  "status": "ok",
  "error": null,
  "data": {
    // Sun Position response payload
  }
}

About the Sun Position API

Sun Position works by analyzing the location provided and calculating sun position data. It uses advanced algorithms to calculate data such as altitude, azimuth, and distance of the sun from the location and returns the sun position data.

What people use it for

Solar Energy
Use the Sun Position API to get sun position data for solar energy. Use the data to optimize solar panel placement, improve energy efficiency, and maximize power generation
Astronomy
Get sun position data by using the Sun Position API for astronomy. Use the data to track celestial events, observe solar phenomena, and enhance stargazing
Photography
Use the Sun Position API to get sun position data for photography. Use the data to plan photo shoots, optimize lighting conditions, and capture stunning images
Outdoor Activities
Get sun position data by using the Sun Position API for outdoor activities. Use the data to plan outdoor events, schedule activities, and enhance experiences

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Sun Position

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Sun Position API.

Read the docs
What does the Sun Position API do?
Sun Position is a simple tool for getting sun position data. It returns data such as altitude, azimuth, and distance of the sun from the location provided.
How do I authenticate Sun Position API requests?
Pass your API key in the x-api-key header over HTTPS. One key works across all 300+ APIVerve APIs — there are no per-endpoint credentials.
How much does the Sun Position API cost?
Each call spends 2 credits from your shared pool. The free tier includes 200 credits every month, and paid plans add more headroom.
How fast is the Sun Position API?
Response time depends on the endpoint — the p50 through p99 latency for this API is published on this page. Requests are served over HTTPS through a global edge network.
What response formats does the Sun Position API support?
JSON by default, plus XML and YAML via the format parameter. GraphQL and an MCP interface for AI agents are available across the catalog.
What HTTP method does the Sun Position API use?
GET over HTTPS, following standard REST conventions with a consistent { status, error, data } response envelope.

Ready to build with Sun Position? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs