{
 "openapi": "3.1.0",
 "info": {
  "title": "Meru open data (read-only, no sign-in)",
  "version": "2026-11-27",
  "summary": "Today's sky in several traditions, and Meru's library of signs, traditions and terms, as static JSON.",
  "description": "Free, static JSON files from Meru: The Astrology Atlas (https://meru.love): one file per day with the sky in several traditions (the Moon's sign, phase and nakshatra, the Sun's sign, retrograde planets, the Maya Tzolk'in day, the Chinese day pillar, the universal day number), and the library behind https://meru.love/learn (zodiac signs, planets, traditions, nakshatras, Chinese animals, Tzolk'in day signs, numbers, Human Design types, and the glossary). No sign-in, no key, no cookies, no tracking; every response allows any origin (CORS). Days are US Eastern calendar days, computed for local noon by Meru's own engine (Astronomy Engine with NASA JPL tables; the Moon's and Sun's signs are tropical (Western), the nakshatra comes from sidereal positions with the Lahiri ayanamsa; the Tzolk'in in the count kept by Maya daykeepers, GMT correlation 584283). Free to use and cite with credit and a link to https://meru.love. For reflection and growth, not prediction; never medical, legal or financial advice.",
  "contact": {
   "name": "Meru",
   "email": "hello@meru.love",
   "url": "https://meru.love/embed"
  },
  "license": {
   "name": "Free to use and cite with credit and a link to meru.love",
   "url": "https://meru.love/terms"
  }
 },
 "externalDocs": {
  "description": "The open sky card and data, explained",
  "url": "https://meru.love/embed"
 },
 "servers": [
  {
   "url": "https://meru.love"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "sky",
   "description": "The day's sky in several traditions"
  },
  {
   "name": "library",
   "description": "Signs, traditions and terms from the Meru library"
  }
 ],
 "paths": {
  "/open/sky/{date}.json": {
   "get": {
    "operationId": "getSkyForDate",
    "tags": [
     "sky"
    ],
    "summary": "The sky for one day",
    "description": "One US Eastern calendar day. The feed covers about a week back and four months ahead of each deploy (2026-11-20 to 2027-03-27 at the time of this build); /open/sky/index.json gives the current range.",
    "parameters": [
     {
      "name": "date",
      "in": "path",
      "required": true,
      "description": "A date as YYYY-MM-DD (US Eastern).",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-11-20"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The day's sky",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OpenSky"
        }
       }
      }
     },
     "404": {
      "description": "No such file (a date outside the feed, or an unknown id)."
     }
    }
   }
  },
  "/open/sky/today.json": {
   "get": {
    "operationId": "getSkyToday",
    "tags": [
     "sky"
    ],
    "summary": "Today's sky (a redirect to today's file)",
    "description": "Answers 302 with the address of today's file (US Eastern date); clients that follow redirects get the day directly. Cached for at most 5 minutes and never past US Eastern midnight. For another time zone, work out the local date and ask for /open/sky/{date}.json.",
    "responses": {
     "200": {
      "description": "Today's sky, after the redirect",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OpenSky"
        }
       }
      }
     },
     "302": {
      "description": "Today's file",
      "headers": {
       "Location": {
        "description": "/open/sky/YYYY-MM-DD.json",
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "4XX": {
      "description": "A method other than GET or HEAD."
     }
    }
   }
  },
  "/open/sky/index.json": {
   "get": {
    "operationId": "getSkyRange",
    "tags": [
     "sky"
    ],
    "summary": "The dates the feed covers now",
    "responses": {
     "200": {
      "description": "The first and last date",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SkyIndex"
        }
       }
      }
     },
     "4XX": {
      "description": "A method other than GET or HEAD."
     }
    }
   }
  },
  "/open/library/index.json": {
   "get": {
    "operationId": "listLibrary",
    "tags": [
     "library"
    ],
    "summary": "Every library entry and glossary term",
    "description": "Ids, types and names (in each language that has a different name), with the address of each one's file. Use it to look an entry up by name.",
    "responses": {
     "200": {
      "description": "The index",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LibraryIndex"
        }
       }
      }
     },
     "4XX": {
      "description": "A method other than GET or HEAD."
     }
    }
   }
  },
  "/open/library/{section}/{slug}.json": {
   "get": {
    "operationId": "getLibraryEntry",
    "tags": [
     "library"
    ],
    "summary": "One library entry: a sign, planet, tradition, nakshatra and more",
    "description": "The page's full text in English, with its title, summary and address in every other language it is published in. Ids are \"<section>/<slug>\", as listed in /open/library/index.json (for example astrology/aries, traditions/vedic-astrology-jyotish, nakshatras/rohini).",
    "parameters": [
     {
      "name": "section",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "astrology",
        "chinese-zodiac",
        "human-design",
        "nakshatras",
        "numerology",
        "planets",
        "traditions",
        "tzolkin"
       ]
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "description": "Lower case with hyphens, as in the index.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9][a-z0-9-]*$",
       "examples": [
        "aries"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The entry",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LibraryEntry"
        }
       }
      }
     },
     "404": {
      "description": "No such file (a date outside the feed, or an unknown id)."
     }
    }
   }
  },
  "/open/library/terms/{group}.json": {
   "get": {
    "operationId": "getTermGroup",
    "tags": [
     "library"
    ],
    "summary": "One group of glossary terms",
    "description": "The terms of one glossary group (the index gives each term's group file as its href; find the term by its id inside), each with its plain definition and the same in every language the app has it in.",
    "parameters": [
     {
      "name": "group",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "the-basics",
        "timing",
        "the-seven-chakras",
        "what-each-chakra-holds",
        "founding-principles",
        "planets-and-zodiacs",
        "zodiac-signs",
        "nakshatras",
        "human-design",
        "numerology",
        "i-ching",
        "enneagram",
        "ikigai",
        "together",
        "body",
        "family-lineage",
        "starseed-origins",
        "tarot",
        "tarot-cards",
        "chinese-zodiac",
        "chinese-zodiac-animals",
        "bazi-and-9-star-ki",
        "zi-wei-dou-shu",
        "hellenistic-and-draconic",
        "fixed-star-lore-and-lunar-mansions",
        "chiron-and-black-moon-lilith",
        "life-cycles",
        "name-numbers",
        "tonalpohualli-trees-runes",
        "tibetan-astrology",
        "tzolkin",
        "tzolkin-day-signs",
        "mandala-and-galaxy",
        "art-styles",
        "cycles",
        "relationship-chart",
        "other-words",
        "ayurveda",
        "soul-song-pythagoras",
        "world-traditions"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The group and its terms",
      "headers": {
       "Access-Control-Allow-Origin": {
        "description": "Always *: read it from any site.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TermGroup"
        }
       }
      }
     },
     "404": {
      "description": "No such file (a date outside the feed, or an unknown id)."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "OpenSky": {
    "type": "object",
    "required": [
     "date",
     "timezone",
     "weekday",
     "moon",
     "sun",
     "retrograde",
     "tzolkin",
     "chineseDay",
     "universalDay",
     "credit",
     "license"
    ],
    "properties": {
     "date": {
      "type": "string",
      "format": "date"
     },
     "timezone": {
      "const": "America/New_York"
     },
     "weekday": {
      "type": "string"
     },
     "moon": {
      "type": "object",
      "required": [
       "sign",
       "phase",
       "illumination",
       "waxing",
       "nakshatra"
      ],
      "properties": {
       "sign": {
        "type": "string",
        "description": "Tropical (Western) zodiac sign."
       },
       "phase": {
        "type": "string"
       },
       "illumination": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100,
        "description": "Per cent of the Moon that is lit, at noon."
       },
       "waxing": {
        "type": "boolean"
       },
       "changesSign": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "time": {
           "type": "string"
          },
          "to": {
           "type": "string"
          }
         }
        },
        "description": "Sign changes during the day, US Eastern time."
       },
       "nakshatra": {
        "type": "object",
        "description": "The Moon's nakshatra, from its sidereal position (Lahiri ayanamsa).",
        "required": [
         "name",
         "pada"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "pada": {
          "type": "integer",
          "minimum": 1,
          "maximum": 4
         }
        }
       },
       "nextQuarter": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "date": {
          "type": "string"
         },
         "time": {
          "type": "string"
         }
        }
       }
      }
     },
     "sun": {
      "type": "object",
      "required": [
       "sign"
      ],
      "properties": {
       "sign": {
        "type": "string",
        "description": "Tropical (Western) zodiac sign."
       }
      }
     },
     "retrograde": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Planets moving backward (retrograde) at noon, Mercury to Pluto."
     },
     "tzolkin": {
      "type": "object",
      "required": [
       "number",
       "sign",
       "kin"
      ],
      "properties": {
       "number": {
        "type": "integer",
        "minimum": 1,
        "maximum": 13
       },
       "sign": {
        "type": "string"
       },
       "kiche": {
        "type": "string",
        "description": "The day sign's K'iche' name."
       },
       "kin": {
        "type": "integer",
        "minimum": 1,
        "maximum": 260
       },
       "direction": {
        "type": "string"
       }
      }
     },
     "chineseDay": {
      "type": "object",
      "required": [
       "pillar",
       "element",
       "animal"
      ],
      "properties": {
       "pillar": {
        "type": "string",
        "description": "The day pillar in Chinese characters (heavenly stem and earthly branch)."
       },
       "element": {
        "type": "string"
       },
       "animal": {
        "type": "string"
       },
       "yang": {
        "type": "boolean"
       },
       "year": {
        "type": "string"
       }
      }
     },
     "universalDay": {
      "type": "integer",
      "minimum": 1,
      "maximum": 33
     },
     "source": {
      "type": "string",
      "format": "uri"
     },
     "credit": {
      "type": "string"
     },
     "license": {
      "type": "string"
     }
    }
   },
   "SkyIndex": {
    "type": "object",
    "required": [
     "first",
     "last",
     "timezone",
     "pattern"
    ],
    "properties": {
     "first": {
      "type": "string",
      "format": "date"
     },
     "last": {
      "type": "string",
      "format": "date"
     },
     "timezone": {
      "type": "string"
     },
     "pattern": {
      "type": "string"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     }
    }
   },
   "LibraryIndex": {
    "type": "object",
    "required": [
     "entries",
     "terms"
    ],
    "properties": {
     "updated": {
      "type": "string",
      "format": "date"
     },
     "docs": {
      "type": "string",
      "format": "uri"
     },
     "openapi": {
      "type": "string",
      "format": "uri"
     },
     "credit": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "entries": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "id",
        "type",
        "name",
        "href"
       ],
       "properties": {
        "id": {
         "type": "string"
        },
        "type": {
         "type": "string",
         "enum": [
          "sign",
          "planet",
          "tradition",
          "human-design-type",
          "number",
          "chinese-animal",
          "tzolkin-sign",
          "nakshatra",
          "topic"
         ]
        },
        "name": {
         "type": "string"
        },
        "names": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         }
        },
        "href": {
         "type": "string"
        }
       }
      }
     },
     "terms": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "id",
        "name",
        "group",
        "href"
       ],
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "group": {
         "type": "string"
        },
        "names": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         }
        },
        "href": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "LibraryEntry": {
    "type": "object",
    "required": [
     "id",
     "type",
     "name",
     "title",
     "summary",
     "sections",
     "url",
     "languages",
     "credit",
     "license"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "type": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "summary": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "sections": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "heading",
        "text"
       ],
       "properties": {
        "heading": {
         "type": "string"
        },
        "text": {
         "type": "string"
        }
       }
      }
     },
     "languages": {
      "type": "object",
      "description": "The same item in other languages, keyed by language code (only languages that have it).",
      "propertyNames": {
       "enum": [
        "es",
        "pt-BR",
        "fr",
        "de",
        "it",
        "zh-CN",
        "hi",
        "ar",
        "ja",
        "ko",
        "ru"
       ]
      },
      "additionalProperties": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "title": {
         "type": "string"
        },
        "summary": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        }
       },
       "required": [
        "name",
        "title",
        "summary",
        "url"
       ]
      }
     },
     "related": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "credit": {
      "type": "string"
     },
     "license": {
      "type": "string"
     }
    }
   },
   "TermGroup": {
    "type": "object",
    "required": [
     "group",
     "id",
     "url",
     "terms"
    ],
    "properties": {
     "group": {
      "type": "string"
     },
     "id": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "terms": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Term"
      }
     },
     "credit": {
      "type": "string"
     },
     "license": {
      "type": "string"
     }
    }
   },
   "Term": {
    "type": "object",
    "required": [
     "id",
     "name",
     "group",
     "definition",
     "url",
     "languages",
     "credit",
     "license"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "group": {
      "type": "string"
     },
     "definition": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "languages": {
      "type": "object",
      "description": "The same item in other languages, keyed by language code (only languages that have it).",
      "propertyNames": {
       "enum": [
        "es",
        "pt-BR",
        "fr",
        "de",
        "it",
        "zh-CN",
        "hi",
        "ar",
        "ja",
        "ko",
        "ru"
       ]
      },
      "additionalProperties": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "definition": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        }
       },
       "required": [
        "name",
        "definition",
        "url"
       ]
      }
     },
     "credit": {
      "type": "string"
     },
     "license": {
      "type": "string"
     }
    }
   }
  }
 }
}