{
  "openapi": "3.0.1",
  "info": {
    "title": "Star Map Generator: Night Sky Poster for Any Date & Place",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "wa3osEFUVwblNnTHU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~star-map-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-star-map-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jumblemog~star-map-generator/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-star-map-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jumblemog~star-map-generator/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-star-map-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "place": {
            "title": "Place",
            "type": "string",
            "description": "A city, with its country or US state if the name is common (Paris, France; Portland, Oregon; Springfield, IL), or coordinates (48.8566, 2.3522). Cities of 15,000 people or more are known; for a village, use coordinates or the nearest town."
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "The date, such as 2019-07-14, 14 July 2019 or July 14, 2019. Any year from 1 to 9998."
          },
          "time": {
            "title": "Time",
            "type": "string",
            "description": "Local time at the place, such as 22:30 or 10:30pm. Left empty, the map is for 22:00."
          },
          "title": {
            "title": "Title",
            "type": "string",
            "description": "The large line under the map. Left empty: The Night Sky."
          },
          "subtitle": {
            "title": "Subtitle",
            "type": "string",
            "description": "A smaller line under the title: names, a quote, a dedication."
          },
          "maps": {
            "title": "More maps",
            "type": "array",
            "description": "A list of maps to draw in one run. Each is a line of text, \"Paris, France | 2019-07-14 22:30 | The Night We Met | a subtitle\", or an object with place (or latitude and longitude), date, time, timezone, title, subtitle, placeLabel, style and layout."
          },
          "style": {
            "title": "Style",
            "enum": [
              "midnight",
              "black",
              "white",
              "vintage",
              "forest"
            ],
            "type": "string",
            "description": "The poster's colors.",
            "default": "midnight"
          },
          "layout": {
            "title": "Layout",
            "enum": [
              "poster",
              "square",
              "circle"
            ],
            "type": "string",
            "description": "Poster is 3:4, the shape of 18 × 24 inch and 30 × 40 cm prints. Square and circle are the map alone, for your own layout.",
            "default": "poster"
          },
          "outputs": {
            "title": "File formats",
            "type": "array",
            "description": "PNG for screens and most print shops; SVG scales to any print size. The price per map is the same whatever you pick.",
            "items": {
              "type": "string",
              "enum": [
                "png",
                "svg"
              ],
              "enumTitles": [
                "PNG image",
                "SVG (vector, for print)"
              ]
            },
            "default": [
              "png"
            ]
          },
          "imageWidth": {
            "title": "PNG width (pixels)",
            "minimum": 300,
            "maximum": 7200,
            "type": "integer",
            "description": "2400 is sharp on screens and prints well to about 8 inches wide; 5400 gives an 18 × 24 inch print at 300 dpi.",
            "default": 2400
          },
          "magnitudeLimit": {
            "title": "Faintest stars (magnitude)",
            "enum": [
              "4",
              "4.5",
              "5",
              "5.5",
              "6"
            ],
            "type": "string",
            "description": "How faint the stars go. About half of them are above the horizon at any moment.",
            "default": "5.5"
          },
          "constellations": {
            "title": "Constellation lines",
            "type": "boolean",
            "description": "Draw the 88 constellations' figures.",
            "default": true
          },
          "constellationNames": {
            "title": "Constellation names",
            "type": "boolean",
            "description": "Label the larger constellations.",
            "default": true
          },
          "starNames": {
            "title": "Star names",
            "type": "boolean",
            "description": "Label the brightest stars, such as Vega and Sirius.",
            "default": true
          },
          "planets": {
            "title": "Planets",
            "type": "boolean",
            "description": "Mark Mercury, Venus, Mars, Jupiter and Saturn when they're up.",
            "default": true
          },
          "moon": {
            "title": "Moon",
            "type": "boolean",
            "description": "Draw the Moon with its phase when it's up.",
            "default": true
          },
          "milkyWay": {
            "title": "Milky Way",
            "type": "boolean",
            "description": "Shade the Milky Way.",
            "default": true
          },
          "grid": {
            "title": "Grid",
            "type": "boolean",
            "description": "Draw altitude circles and direction lines.",
            "default": false
          },
          "compass": {
            "title": "Compass letters",
            "type": "boolean",
            "description": "Mark N, E, S and W around the map.",
            "default": true
          },
          "clock": {
            "title": "Clock",
            "enum": [
              "24",
              "12"
            ],
            "type": "string",
            "description": "How the time is written under the map.",
            "default": "24"
          },
          "hideTime": {
            "title": "Leave the time off the poster",
            "type": "boolean",
            "description": "Show only the place and date under the map.",
            "default": false
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "Only if you need to override the place's own time zone: an IANA name (Europe/Paris) or an offset (+02:00). Daylight saving time is applied for the date."
          },
          "maxMaps": {
            "title": "Maximum maps",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many maps.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}