{
  "openapi": "3.1.0",
  "info": {
    "title": "Horoscope & Zodiac API",
    "version": "1.0.0",
    "description": "Daily horoscopes for the 12 signs with mood, lucky number and colour, plus sign facts and date-to-sign lookup.\n\nDaily horoscopes for all 12 zodiac signs (today, tomorrow, or yesterday) with mood, lucky number, lucky color, and compatibility — plus factual sign metadata and a date-to-sign lookup. Readings are generated for entertainment.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/horoscope.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/horoscope-zodiac"
  },
  "servers": [
    {
      "url": "https://api-horoscope.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Entertainment",
      "description": "Horoscope & Zodiac API belongs to the Entertainment category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/horoscope/{sign}": {
      "get": {
        "operationId": "dailyHoroscope",
        "summary": "Daily Horoscope",
        "description": "Daily Horoscope endpoint of the Horoscope & Zodiac API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/horoscope-zodiac/daily-horoscope"
        },
        "parameters": [
          {
            "name": "sign",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "leo"
          },
          {
            "name": "day",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "today"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "sign": "Leo",
                  "symbol": "♌",
                  "element": "Fire",
                  "quality": "Fixed",
                  "ruling_planet": "Sun",
                  "date_range": "July 23 – August 22",
                  "day": "today",
                  "date": "2026-06-06",
                  "horoscope": "A wave of positive energy surrounds you. Career matters take center stage. Small, deliberate steps lead to real progress. By evening, clarity will arrive.",
                  "mood": "Confident",
                  "lucky_number": 15,
                  "lucky_color": "Gold",
                  "compatibility": "Sagittarius",
                  "disclaimer": "For entertainment purposes only."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/signs": {
      "get": {
        "operationId": "listSigns",
        "summary": "List Signs",
        "description": "List Signs endpoint of the Horoscope & Zodiac API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/horoscope-zodiac/list-signs"
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 12,
                  "signs": [
                    {
                      "sign": "Aries",
                      "symbol": "♈",
                      "element": "Fire",
                      "quality": "Cardinal",
                      "ruling_planet": "Mars",
                      "date_range": "March 21 – April 19"
                    },
                    {
                      "sign": "Taurus",
                      "symbol": "♉",
                      "element": "Earth",
                      "quality": "Fixed",
                      "ruling_planet": "Venus",
                      "date_range": "April 20 – May 20"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/sign": {
      "get": {
        "operationId": "signByDate",
        "summary": "Sign By Date",
        "description": "Sign By Date endpoint of the Horoscope & Zodiac API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/horoscope-zodiac/sign-by-date"
        },
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "1990-07-15"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "date": "1990-07-15",
                  "sign": "Cancer",
                  "symbol": "♋",
                  "element": "Water",
                  "quality": "Cardinal",
                  "ruling_planet": "Moon",
                  "date_range": "June 21 – July 22"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}