---
title: "Star Map (SVG)"
method: POST
path: "/render/star-map"
tags: ["Visualization"]
---

# Star Map (SVG)

`POST /render/star-map`

Stereographic projection of caller-supplied points (RA/Dec). Handles brightness magnitude scaling and labels.

## Request body

- StarMap
  - `points` object[], required
    - `raHours` number
    - `raDeg` number
    - `decDeg` number, required
    - `magnitude` number
    - `name` string
    - `glyph` string
  - `observerLatDeg` number
  - `zenithDecDeg` number
  - `capAltitudeDeg` number
  - `title` string
  - `options` object
    - `size` integer
    - `theme` 'light' | 'dark' | 'console'
    - `showAspects` boolean
    - `showRetrograde` boolean
    - `title` string
    - `format` 'svg' | 'json'

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `svg` string, nullable
    - `format` string, nullable
    - `byteLength` number, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
