Astronomy API website screenshot

Astronomy API

AstronomyAPI is a web API for retrieving astronomical information including data about celestial bodies, moon phases, planet positions, star charts, and astronomical events for a given location and time. The API provides developers with access to celestial body positions, astronomical event data, star chart generation, moon phase imagery, and deep space object search capabilities for any geographic location and date/time combination.

1 APIs 5 Features
AstronomyCelestial DataSpaceMoon PhasesStar Charts

APIs

Astronomy API

The Astronomy API provides access to astronomical data including celestial body positions, moon phases, planet positions, star charts, astronomical events, and deep space object...

Collections

Pricing Plans

Rate Limits

Astronomy Api Rate Limits

5 limits

RATE LIMITS

FinOps

Features

Celestial Body Positions

Retrieve real-time and historical positions of celestial bodies including planets, moons, and other astronomical objects for any geographic location and date/time.

Astronomical Events

Access data on celestial events such as eclipses, conjunctions, and other notable astronomical occurrences for a given body and date range.

Star Chart Generation

Generate customizable star charts as images for any sky position, date, and observer location for use in applications and publications.

Moon Phase Imagery

Generate moon phase images showing the illumination and appearance of the moon for any given date and location.

Deep Space Object Search

Search for stars and deep space objects by name or catalog designation to retrieve positional and descriptive data.

Use Cases

Astronomy Education Apps

Developers build educational astronomy applications that display real-time planet positions, star charts, and moon phases for learners and enthusiasts.

Observation Planning Tools

Amateur astronomers use the API to plan observing sessions by retrieving celestial body positions and upcoming astronomical events for their location.

Astrology and Horoscope Applications

Astrology apps integrate the Astronomy API for accurate planetary position data to power birth chart calculations and transit predictions.

Integrations

Mobile Astronomy Apps

Mobile applications integrate the Astronomy API to provide real-time sky data and star chart overlays for stargazing experiences.

Planetarium Software

Planetarium and sky simulation software integrates celestial body position data from the Astronomy API for accurate sky rendering.

Resources

👥
GitHubOrganization
GitHubOrganization
🌐
Astronomy API Website
Portal
🔗
Documentation
Documentation
📝
Sign Up
Signup
💰
Pricing
Pricing
🔗
LlmsText
LlmsText

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Astronomy API
  version: '2.0'
items:
- info:
    name: Bodies
    type: folder
  items:
  - info:
      name: List supported celestial bodies
      type: http
    http:
      method: GET
      url: https://api.astronomyapi.com/api/v2/bodies
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: List supported celestial bodies
  - info:
      name: Get positions of all bodies for an observer
      type: http
    http:
      method: GET
      url: https://api.astronomyapi.com/api/v2/bodies/positions
      params:
      - name: latitude
        value: ''
        type: query
      - name: longitude
        value: ''
        type: query
      - name: elevation
        value: ''
        type: query
      - name: from_date
        value: ''
        type: query
      - name: to_date
        value: ''
        type: query
      - name: time
        value: ''
        type: query
      - name: output
        value: ''
        type: query
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Get positions of all bodies for an observer
  - info:
      name: Get positions of a single body for an observer
      type: http
    http:
      method: GET
      url: https://api.astronomyapi.com/api/v2/bodies/positions/:body
      params:
      - name: body
        value: ''
        type: path
      - name: latitude
        value: ''
        type: query
      - name: longitude
        value: ''
        type: query
      - name: elevation
        value: ''
        type: query
      - name: from_date
        value: ''
        type: query
      - name: to_date
        value: ''
        type: query
      - name: time
        value: ''
        type: query
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Get positions of a single body for an observer
- info:
    name: Events
    type: folder
  items:
  - info:
      name: Get celestial events for a body
      type: http
    http:
      method: GET
      url: https://api.astronomyapi.com/api/v2/bodies/events/:body
      params:
      - name: body
        value: ''
        type: path
      - name: latitude
        value: ''
        type: query
      - name: longitude
        value: ''
        type: query
      - name: elevation
        value: ''
        type: query
      - name: from_date
        value: ''
        type: query
      - name: to_date
        value: ''
        type: query
      - name: time
        value: ''
        type: query
      - name: type
        value: ''
        type: query
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Get celestial events for a body
- info:
    name: Studio
    type: folder
  items:
  - info:
      name: Generate a moon phase image
      type: http
    http:
      method: POST
      url: https://api.astronomyapi.com/api/v2/studio/moon-phase
      body:
        type: json
        data: '{}'
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Generate a moon phase image
  - info:
      name: Generate a star chart image
      type: http
    http:
      method: POST
      url: https://api.astronomyapi.com/api/v2/studio/star-chart
      body:
        type: json
        data: '{}'
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Generate a star chart image
- info:
    name: Search
    type: folder
  items:
  - info:
      name: Search for stars and deep space objects
      type: http
    http:
      method: GET
      url: https://api.astronomyapi.com/api/v2/search
      params:
      - name: term
        value: ''
        type: query
      - name: match_type
        value: ''
        type: query
      - name: ra
        value: ''
        type: query
      - name: dec
        value: ''
        type: query
      - name: order_by
        value: ''
        type: query
      - name: limit
        value: ''
        type: query
      - name: offset
        value: ''
        type: query
      auth:
        type: basic
        username: '{{username}}'
        password: '{{password}}'
    docs: Search for stars and deep space objects
bundled: true