VerticalsIndustriesMCP ServerDocsPricingContactSign in

Astronomy API

The timing behind
every night sky.

Pxie's astronomy API gives sun, moon, twilight and darkness data for any place on Earth and any date, so every shoot, tour and trip starts at the right minute.

Moon, sun and darkness data is included on the free plan.

Coverage: Anywhere on Earth, any date through 2100.

Example, not a live readingWaxing crescent, 18% litMoonset 22:41 · full darkness from 23:05
Features

Sun, moon and twilight data in one API.

Sunrise and sunset

Sunrise, sunset and the sun's position for exact coordinates and any date through 2100.

Twilight stage and darkness

Day, civil, nautical or astronomical twilight, or full night, at any moment, plus a darkness score.

Moon phase and moonrise

Phase, percent lit, moonrise and moonset, and how much the moon brightens the sky.

Astronomy MCP server

Ask your AI assistant for sun, moon and twilight times through the Pxie MCP server.

More astronomy data.

Sunrise sunset API →

Sunrise, sunset and the twilight stage for any coordinates.

Moon phase API →

Phase, illumination, moonrise and moonset for any date.

Astronomy weather forecast →

Cloud, transparency and seeing for the same nights.

Who uses it

  • Astrophotographers and stargazing operators start at true darkness.
  • Outdoor, fishing and camping apps show sun and moon times for the exact spot.
  • Event planners and smart-home apps time golden hour and lights from real sunset.
Example, not a live reading

Sunset 18:52 · astronomical twilight ends 20:41

Waxing crescent, 18% lit

Ask your AI assistant

"What's the moon phase in Banff on Saturday night?"

Pxie answers with the get_moon tool. Environmental data MCP server →

Astronomy API questions.

Is the astronomy API free?

Yes. Sun, moon and darkness data is included on the free plan.

Is there an astronomy MCP server?

Yes. The Pxie MCP server lets AI assistants ask for moon, sun and twilight data. MCP access starts on the Builder plan.

How accurate are the times?

Positions and times are calculated by Pxie for your exact coordinates and moment, not read from a table for the nearest city.

Which dates are supported?

The current moment or any date through the year 2100.

Get the timing
right, every night.

Start free, or tell us about your tours, app or events.

Developers: Astronomy API docs →