Planet Positions API

POST

Locate any solar system planet from any coordinates on Earth.

Planet Positions locates solar system bodies for any observer coordinates on Earth. It checks if the sun, moon, or planets sit below the horizon, while paid plans add celestial coordinates and distance.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/planetpositions
Body
Verification
Format

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

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "planet": "Moon",
    "isBelowHorizon": false,
    "date": "2025-04-15T10:37:00Z",
    "observer": {
      "latitude": 37.7749,
      "longitude": -122.4194
    },
    "rightAscension": {
      "hours": 15,
      "minutes": 13,
      "seconds": 11
    },
    "declination": {
      "degrees": -23,
      "minutes": 10,
      "seconds": 56
    },
    "distance": {
      "km": 402457.36,
      "lightTravelSeconds": 1.342,
      "astronomicalUnits": 0.003
    },
    "siderealTime": {
      "hours": 16,
      "minutes": 2,
      "seconds": 42
    },
    "hourAngle": {
      "hours": 0,
      "minutes": 49,
      "seconds": 31
    },
    "vectors": {
      "x": -0.0016452947779903913,
      "y": -0.0018463324771434563,
      "z": -0.0010590407236111441
    }
  }
}

About the Planet Positions API

Pass observer latitude, longitude, and a chosen planet from Pluto to the Moon. The API calculates observation geometry with optional observer altitude and observation time, returning whether the target sits below the local horizon. Paid plans let you set specific dates and return right ascension, declination, distances, sidereal time, and Cartesian position vectors.

What people use it for

Stargazing Tour Scheduling
When planning evening viewing sessions, astronomy guides check if target planets sit below the horizon at their field camp location and scheduled observation time.
Telescope Mount Pointing
Astrophotographers on paid plans calculate exact right ascension and declination coordinates to aim automated tracking mounts toward visible solar system targets.
Astrology Chart Generation
Natal chart software queries planetary bodies across specific dates on paid plans to map celestial positions for birth chart generation.
Planetarium Display Sync
To project accurate night sky exhibits, science museum kiosks query live planetary coordinates based on local building coordinates and viewing time.

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 Planet Positions

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

Questions.

Common questions about the Planet Positions API.

Read the docs
Can I calculate planetary positions for past or future dates?
Yes, you can calculate positions for specific dates using the date parameter formatted as MM-DD-YYYY, along with an optional 24-hour time. Specifying custom dates requires a paid subscription, while standard queries check positions at the current date. Time defaults to 00:00 if not provided.
Do I get celestial coordinates like right ascension on the Free plan?
No, detailed coordinate data requires a paid plan. Premium fields include right ascension, declination, distance in kilometers and astronomical units, sidereal time, hour angle, and 3D position vectors. On the Free plan, you receive the observer location, planet name, and whether the planet is below the horizon.
How does the API show whether a planet is visible?
The API returns the isBelowHorizon boolean field based on your observer coordinates, time, and optional altitude in meters. If the planet is beneath the local horizon at the specified observation point, isBelowHorizon returns true.
Which plan fits 25,000 planet position lookups a month?
The Starter plan easily covers that volume. Each lookup costs 2 credits, so 25,000 calls require 50,000 credits out of the 200,000 credits provided monthly on Starter, which supports up to 100,000 calls. That works out to about $0.30 per 1,000 calls. The Free plan provides 100 calls per month.
Can I use planet position data in a commercial app?
Yes, commercial use is permitted on any paid plan. You can use the calculated positions and coordinates inside your own software, mapping tools, or stargazing apps. You cannot resell or redistribute the raw API response data as a standalone dataset.

Ready to build with Planet Positions? 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