Star Map Generator: Night Sky Poster for Any Date & Place
Pricing
Pay per event
Star Map Generator: Night Sky Poster for Any Date & Place
Draw the night sky as it was over any place at any date and time: a print-ready star map poster (PNG and SVG) with constellations, the Milky Way, planets and the Moon's phase, plus the sky's facts as JSON. For gifts, print shops, apps and AI agents.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Jumble Mog
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 hours ago
Last modified
Categories
Features
Share
Draw the night sky exactly as it was over any place on any date, as a print-ready poster. Give a city and a date (a wedding, a birth, a first date, tonight) and you get back:
- A star map as PNG and SVG: the stars you could see with the naked eye, the 88 constellations' figures and names, the Milky Way, the planets, and the Moon in its real phase, with your title and subtitle, the place, the date and the coordinates set under it.
- Five styles and three layouts: midnight blue, black, white (ink on paper), vintage (navy on cream) and forest green; a 3:4 poster with a title block, a square, or the round map alone with transparent corners for your own design.
- The facts behind the picture as data: the Moon's phase and how much of it was lit, which planets were up and where, the ten brightest stars with their height and direction, the constellations above the horizon, sidereal time, and whether it was night, twilight or day.

The sky is computed, not looked up from a template: every star and planet is placed for that latitude, longitude and minute, so two maps are only alike if the place and moment are.
It's made for:
- Print-on-demand shops and gift sellers who need a custom star map for each order from Shopify, Etsy or WooCommerce, without a designer or a subscription to a poster app.
- Developers who want a star map API: one request with a place and a date, one image back.
- AI agents and chatbots asked "what did the sky look like the night I was born?" that need a picture and the facts to describe it.
- Teachers, astronomy clubs and writers who want to know what was up on a given night.
How to use it
- Write the Place: a city, with its country or US state if the name is common (
Paris, France,Portland, Oregon), or coordinates (48.8566, 2.3522). - Write the Date, and the Time if you know it. Without a time, the map is for 22:00.
- Optionally add a Title and a Subtitle, and pick a Style and Layout.
- Click Start. Each map is a row in the results with links to its files.
To draw many maps in one run, list them under More maps, one line each: Paris, France | 2019-07-14 22:30 | The Night We Met | a subtitle.
Examples
{"place": "Paris, France", "date": "2019-07-14", "time": "22:30", "title": "The Night We Met"}→ a midnight-blue poster and "The sky over Paris on 14 July 2019 at 22:30: 1302 stars drawn in 44 constellations, a waxing gibbous Moon (95.9% lit) in Sagittarius, with Mars, Jupiter, Saturn up. Brightest star: Arcturus."{"maps": ["Sydney | 2024-12-25 21:00 | Christmas Down Under"]}→ the southern sky with Sirius brightest, Venus, Jupiter and Saturn up, and the Moon (a waning crescent, 27.6% lit) below the horizon.{"place": "New York", "date": "July 4, 1976 9pm", "style": "vintage", "layout": "circle"}→ the round map alone on a transparent background: a first quarter Moon in Virgo, with Mars beside Regulus in Leo.
How-to examples
The result lines are from runs of these inputs.
How to make a star map for a date and place
{"place": "Paris, France", "date": "2019-07-14", "time": "22:30", "title": "The Night We Met", "subtitle": "Under these stars, everything began"}
Result: a 2400 × 3200 pixel poster at imageUrl, with caption "Paris, France · 14 July 2019 · 22:30", moon.phase "Waxing Gibbous" in Sagittarius, and visiblePlanets Mars, Jupiter and Saturn.
How to generate star map posters in bulk for a print shop
{"maps": ["Paris, France | 2019-07-14 22:30 | The Night We Met", "Sydney | 2024-12-25 21:00 | Christmas Down Under", {"place": "Reykjavik", "date": "2023-12-24", "time": "23:00", "title": "Our First Winter", "style": "white"}], "outputs": ["png", "svg"], "imageWidth": 5400}
Result: three rows, each with a PNG 5400 pixels wide (18 × 24 inches at 300 dpi) and an SVG that prints at any size. Each entry can have its own style and layout; a line that can't be drawn (a misspelled city, say) comes back as a failed row with the reason, and isn't charged.
How to see what the night sky looked like on the day you were born
{"place": "Houston, Texas", "date": "20 July 1969", "time": "9:30pm", "layout": "square", "grid": true}
Result: the map for that evening, and in the data a waxing crescent Moon (about a third lit), which planets were up, the brightest stars with their directions and the constellations above the horizon. Leave the time out if you don't know it and the map is for 22:00, with a note saying so.
How to let an AI agent draw and describe a night sky
Add this Actor to the Apify MCP server with https://mcp.apify.com/?tools=jumblemog/star-map-generator. The agent passes a place and a date and reads summary, moon, visiblePlanets and brightestStars to describe the sky in words, and can show imageUrl, instead of guessing at astronomy from memory.
FAQ
Is the star map accurate? Yes. Positions come from the PyEphem astronomy library (planets by the VSOP87 theory, stars precessed to the date), for the exact latitude, longitude and minute. The Moon's phase and the planets match what observatory software shows for the same moment.
What if I don't know the exact time? Leave it empty. The map is drawn for 22:00 local time and the result says so. The stars turn by about 15° an hour, so an evening map still shows the right constellations for that night.
Which places does it know? About 34,000 cities and towns of 15,000 people or more, with their time zones, under their English and local names (Munich or München, Tokyo or 東京). For a village, a beach or a mountain top, give coordinates: the time zone is taken from the nearest listed town.
Does it handle time zones and daylight saving time? Yes. The time you give is local time at the place, with summer time applied for that date, back to the start of time zone records. Set timezone only to override it.
Why does the map say twilight or daylight? Because the sky is drawn for the time you gave. At 22:30 in Paris in July the Sun has only just set. The stars were all there, and the poster shows them all; the notes tell you the real sky was still bright.
Why is east on the left? A star map is the view looking up, not down at the ground. Hold it over your head with N toward north and east falls to your left, matching the sky.
Can I sell the posters? Yes. The images are yours to use, including commercially. The star and constellation data is open (BSD license) and the fonts are open (SIL Open Font License).
How big can I print? The SVG is vector and prints at any size. For PNG, set the width: 5400 pixels gives 18 × 24 inches at 300 dpi, and the largest (7200) gives 24 × 32 inches.
Does it work with Zapier, Make or n8n? Yes. Call the Actor with its Apify app or an HTTP request when an order comes in, and pass imageUrl on to your print provider.
Input
| Field | What it is |
|---|---|
place | A city (Paris, France, Springfield, IL) or coordinates (48.8566, 2.3522) |
date | The date: 2019-07-14, 14 July 2019, July 14, 2019. It may hold the time too |
time | Local time at the place: 22:30 or 10:30pm (22:00 if empty) |
title, subtitle | The lines under the map (the title is "The Night Sky" if empty) |
maps | More maps: lines of place | date time | title | subtitle, or objects with place (or latitude and longitude), date, time, timezone, title, subtitle, placeLabel, style, layout |
style | midnight (default), black, white, vintage or forest |
layout | poster (3:4 with title block, default), square or circle (the map alone) |
outputs | png (default), svg, or both |
imageWidth | Width of the PNG in pixels (2400 by default, 300 to 7200) |
magnitudeLimit | Faintest stars drawn: 4 (a city sky) to 6 (every naked-eye star); 5.5 by default |
constellations, constellationNames, starNames, planets, moon, milkyWay, compass | Switches for each layer, all on by default |
grid | Altitude circles and direction lines (off by default) |
clock | 24 (22:30, default) or 12 (10:30 PM) |
hideTime | Leave the time off the poster |
timezone | Override the place's time zone: Europe/Paris or +02:00 |
maxMaps | Stop after this many maps (100 by default) |
In an object under maps, placeLabel replaces the place line on the poster ("Our garden, Lyon"), and latitude and longitude with a place name draw the sky for the exact spot under the name you chose.
Output
One dataset item per map. The first map is also saved as the run's OUTPUT record:
{"index": 1, "status": "ok","title": "The Night We Met", "subtitle": "Under these stars, everything began","caption": "Paris, France · 14 July 2019 · 22:30","summary": "The sky over Paris on 14 July 2019 at 22:30: 1302 stars drawn in 44 constellations, a waxing gibbous Moon (95.9% lit) in Sagittarius, with Mars, Jupiter, Saturn up. Brightest star: Arcturus.","place": {"name": "Paris", "country": "France", "latitude": 48.85341, "longitude": 2.3488, "matched": "Paris, France (population 2,138,551)"},"localTime": "2019-07-14T22:30+02:00", "utcTime": "2019-07-14T20:30Z", "timezone": "Europe/Paris","siderealTime": "16:09:03", "sky": "civil twilight", "sunAltitude": -5.87,"moon": {"altitude": 14.75, "azimuth": 154.71, "direction": "SSE", "illuminatedPercent": 95.9, "phase": "Waxing Gibbous", "constellation": "Sagittarius", "up": true},"planets": [{"name": "Jupiter", "altitude": 18.13, "azimuth": 168.09, "direction": "SSE", "magnitude": -2.4, "constellation": "Ophiuchus", "up": true}, "..."],"visiblePlanets": ["Mars", "Jupiter", "Saturn"],"brightestStars": [{"name": "Arcturus", "magnitude": -0.05, "altitude": 52.6, "azimuth": 227.2, "direction": "SW"}, "..."],"constellationsUp": ["Andromeda", "Aquila", "Boötes", "..."], "starsDrawn": 1302,"style": "midnight", "layout": "poster","notes": ["The sky was in civil twilight at this time, so only the brighter stars were out."],"imageUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-Paris-2019-07-14.png","svgUrl": null}
Altitude is degrees above the horizon and azimuth is degrees from north through east. planets lists all seven with where they were, up or not; visiblePlanets are those above the horizon and bright enough to see without a telescope. A map that can't be drawn has "status": "failed" and the reason in error, and isn't billed.
How it works
- Find the place among GeoNames cities (or read the coordinates) and take its time zone.
- Fix the moment: your local date and time, with daylight saving time for that date, converted to universal time.
- Compute the sky with PyEphem: the altitude and azimuth of 5,044 stars down to magnitude 6, the planets, the Sun and the Moon with its phase.
- Draw everything above the horizon in a stereographic projection (which keeps the constellations' shapes), with the zenith in the middle, north at the top and the lit side of the Moon turned toward the Sun, then set the title block and rasterize with resvg.
Pricing
You pay one low price per map, at the price shown on this page, whatever style, size and formats you pick. Requests that can't be drawn are never charged. If you set a maximum cost per run, the Actor stops before a map that wouldn't fit.
Speed
A map takes one to two seconds at the default size, about 6 at 5400 pixels wide and about 11 at the largest size. A run through the API adds a few seconds for the cloud container to start.
Tips and limits
- Common city names need a country or state:
Parisis Paris, France (the largest of that name); writeParis, Texasfor the other. Theplace.matchedfield shows which city was used. - Small places (under 15,000 people) aren't listed; give coordinates and a
placename orplaceLabelto print. - Uranus and Neptune are in the data but not drawn, because you can't see them without a telescope. Comets, satellites and meteor showers aren't included.
- The horizon is ideal: no hills, buildings or bending of light by the air, so objects within a degree of the rim may have been just out of sight.
- Old and far dates work, from year 1 to 9998. Dates before 15 October 1582 are read in the Julian calendar, as history books write them. Stars are placed without their own slow drift (proper motion), which stays under the width of a star's dot within about five centuries of today.
- Text that's too long for the poster is shrunk to fit; titles under 30 characters look best. Titles can be in Latin, Greek, Cyrillic, Chinese, Japanese, Korean, Hebrew or Arabic letters; the place and date lines are in English.
- Memory: the default 4 GB draws every size. The largest PNG (7200 pixels wide) needs about 1 GB, so don't run that size with less than 2 GB.
- Fonts: titles are set in EB Garamond and labels in Lato. The SVG names those fonts and doesn't carry them, so install them (both free) where you open or print it, or use the PNG.
For AI agents and developers
- Input: a place and a date are enough. Everything else has a default.
- Output:
summarysays the sky in a sentence;moon,visiblePlanets,brightestStarsandconstellationsUpare the facts;imageUrlis the picture. - Errors: an unknown place or unreadable date gives
status"failed" with a sentence inerrorthat says what to change. - Cost: one event per map drawn, nothing for failures.
Get the map's data from one HTTP call:
curl -X POST "https://api.apify.com/v2/acts/jumblemog~star-map-generator/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"place": "Paris, France", "date": "2019-07-14", "time": "22:30", "title": "The Night We Met"}'
run-sync instead returns the run's OUTPUT: the first map as a PNG, ready to save as a file.
In Python, with the apify-client package:
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("jumblemog/star-map-generator").call(run_input={"maps": ["Paris, France | 2019-07-14 22:30 | The Night We Met", "Sydney | 2024-12-25 21:00"],"style": "vintage", "outputs": ["png", "svg"],})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["summary"], item["imageUrl"])
Credits
- Star, constellation and Milky Way data: d3-celestial by Olaf Frohn (BSD license), which draws on the XHIP extended Hipparcos star catalog (Anderson and Francis, 2012) and Jose R. Vieira's Milky Way Outline Catalog.
- Astronomy: PyEphem (MIT), built on XEphem's routines.
- Places and time zones: GeoNames (CC BY 4.0) through geonamescache (MIT).
- Fonts: EB Garamond, Lato and Noto Sans CJK (SIL Open Font License), with DejaVu for other scripts.
- Rasterizing: resvg (Apache-2.0 or MIT) through resvg-py (MIT).
