← Blog

The Star Map API, for developers and sellers

A generated star map, rendered from the Starmap360 API
Starmap360 Studio

Everything below — the visual builder, saved presets, and the API itself — lives inside one free Studio account. Preview is always free; a plan is only needed to export.

Start Studio free

The Starmap360 API turns a place, date, and time into a personalized star map — as SVG or PNG, on demand, from a single request. It’s the same generator behind One map and Starmap Studio, available directly to your own app, storefront, or print pipeline.

Choose your workflow

Studio gives you three ways to get from an idea to a finished map — pick whichever fits how you work:

Who the API is for

Developers

Building an app, a website, or a tool that involves the night sky? Use the API to:

Sellers, print-on-demand, and dropshipping shops

Add personalized star maps to your product line without building or hosting a renderer — this is the workflow shops offering personalization, print-on-demand, and dropshipping fulfillment ask us about most:

See Starmap API for print-on-demand & dropshipping for the fulfillment-specific details (order-time rendering, no inventory, per-order cost).

Astronomy enthusiasts

Visualize the sky as it appeared on a specific night, and experiment with celestial data in your own projects.

How the API works

Endpoint

GET /api/starmap.{format}

Supported formats

Query parameters

ParameterTypeRequiredDescription
api_keyStringYesYour Studio API key
latitudeFloatYesObserver latitude, in degrees
longitudeFloatYesObserver longitude, in degrees
dateStringYesYYYY-MM-DD, local to the location
timeStringYesHH:mm:ss, local to the location
background_colorStringYes6-digit hex, e.g. 000000
main_colorStringYesStar/line/Milky Way color, 6-digit hex
show_milky_wayBooleanYestrue or false
show_constellationsBooleanYestrue or false
widthIntegerNoOutput width in pixels, square image

Example request

GET /api/starmap.svg?api_key=your-api-key&latitude=52.2297&longitude=21.0122&date=2025-01-01&time=20:15:00&background_color=000000&main_color=FFFFFF&show_milky_way=true&show_constellations=true

Every response reports quota via headers (X-Quota-Used, X-Quota-Remaining), so you can track usage without a separate account-status call. Full parameter and response docs, with an in-browser try-it-out, live at the API reference.

A star map generated by the Starmap360 API
Output of the request above

Credits

Previewing a map — in the visual builder or via the API — is always free and never touches your quota. One final map export or successful API render draws from a single shared pool of monthly map credits, no matter which workflow produced it, so you can move between the visual builder and the API without tracking two separate balances.

Why use the Starmap360 API

Getting an API key

API keys come from a Starmap Studio subscription — Basic and Pro plans include a monthly render quota, metered per key. Creating a Studio account is free; the API key activates with a plan.

Create a free Studio account Read the API reference