|
12 | 12 | use RoxyAPI\Sdk\Generated\Resources\BaseResource; |
13 | 13 |
|
14 | 14 | /** |
15 | | - * Western astrology API for natal birth charts, daily, weekly, and monthly horoscopes with |
16 | | - * unique content per sign, syn... |
| 15 | + * Western astrology API for natal birth charts, daily, weekly, monthly, and yearly horoscopes |
| 16 | + * with unique content per s... |
17 | 17 | * |
18 | 18 | * Accessed via $roxy->astrology. |
19 | 19 | */ |
@@ -1301,15 +1301,19 @@ public function getCurrentMoonPhase( |
1301 | 1301 | } |
1302 | 1302 |
|
1303 | 1303 | /** |
1304 | | - * Daily horoscope by zodiac sign - Transit-based forecast with house activations |
1305 | | - * |
1306 | | - * Get the daily horoscope for any zodiac sign. Forecast is generated from real-time planetary |
1307 | | - * transits using whole-sign house positions, so every sign receives unique content. Returns |
1308 | | - * love, career, health, finance, overview with active transits, Moon sign, Moon phase, energy |
1309 | | - * rating, lucky number, lucky color, and compatible signs. Content is fixed for a given date |
1310 | | - * and rolls over at midnight, by default UTC. Pass date for editorial scheduling, or timezone |
1311 | | - * to roll over on a local clock. Daily horoscope API, zodiac forecast, sun sign horoscope, |
1312 | | - * astrology prediction. |
| 1304 | + * Daily horoscope by zodiac sign - Transit-based editorial columns |
| 1305 | + * |
| 1306 | + * A publish-ready column for any zodiac sign, built from the dated transits over it and |
| 1307 | + * returned with those events for fact-checking. The reading names the aspects, sign ingresses, |
| 1308 | + * lunations and retrograde stations driving it and reads each into the whole-sign houses of |
| 1309 | + * that sign, so every sign gets different content rather than one blurb reused twelve times. |
| 1310 | + * Alongside the column come overview, love, career, health, finance and advice, the active |
| 1311 | + * transits, Moon sign and phase, an energy rating, lucky number and color, and compatible |
| 1312 | + * signs. No language model is involved, so a given sign and date always returns the same text |
| 1313 | + * and a piece scheduled months ahead is the piece that runs. Content rolls over at midnight, |
| 1314 | + * by default UTC. Pass date for editorial scheduling, or timezone to roll over on a local |
| 1315 | + * clock. Available in eight languages. Daily horoscope API, zodiac forecast, sun sign |
| 1316 | + * horoscope, astrology prediction. |
1313 | 1317 | * |
1314 | 1318 | * GET /astrology/horoscope/{sign}/daily |
1315 | 1319 | * |
@@ -1403,13 +1407,16 @@ public function getMonthlyDeclinationParallels( |
1403 | 1407 | } |
1404 | 1408 |
|
1405 | 1409 | /** |
1406 | | - * Monthly horoscope by zodiac sign - 30-day transit forecast with key dates |
1407 | | - * |
1408 | | - * Get monthly horoscope for any zodiac sign with sign-specific week-by-week breakdown and real |
1409 | | - * lunar phase key dates. Based on planetary transits with house activations unique to each |
1410 | | - * sign, covering love, career, health, and finance for the entire month. Key dates include |
1411 | | - * actual New Moon, Full Moon, and retrograde dates from ephemeris calculations. Pass any date |
1412 | | - * inside a month to retrieve that month, or timezone to roll over on a local clock. Monthly |
| 1410 | + * Monthly horoscope by zodiac sign - Editorial column with key dates |
| 1411 | + * |
| 1412 | + * A month-long column for any zodiac sign, plus a week-by-week breakdown and dated key dates a |
| 1413 | + * calendar page renders directly. The column names every aspect, ingress, lunation and station |
| 1414 | + * of the month and reads each into the whole-sign houses of that sign, and those events come |
| 1415 | + * back beside the prose with their exact instants, so a piece can be checked against NASA JPL |
| 1416 | + * Horizons or the US Naval Observatory before it runs. Key dates are the real New Moon, Full |
| 1417 | + * Moon and retrograde instants, never approximations. Alongside the column come overview, |
| 1418 | + * love, career, health, finance and advice. Pass any date inside a month to retrieve that |
| 1419 | + * month, or timezone to roll over on a local clock. Available in eight languages. Monthly |
1413 | 1420 | * horoscope API, zodiac monthly forecast, astrology monthly prediction. |
1414 | 1421 | * |
1415 | 1422 | * GET /astrology/horoscope/{sign}/monthly |
@@ -1783,13 +1790,16 @@ public function getUpcomingMoonPhases( |
1783 | 1790 | } |
1784 | 1791 |
|
1785 | 1792 | /** |
1786 | | - * Weekly horoscope by zodiac sign - 7-day transit forecast |
| 1793 | + * Weekly horoscope by zodiac sign - Seven-day editorial column |
1787 | 1794 | * |
1788 | | - * Get weekly horoscope for any zodiac sign. Forecast covers a full Monday to Sunday period |
1789 | | - * based on planetary transits with house-based content unique to each sign, with love, career, |
1790 | | - * health, finance guidance plus lucky days, lucky numbers, and compatible signs. Pass any date |
1791 | | - * inside a week to retrieve that week, or timezone to roll over on a local clock. Weekly |
1792 | | - * horoscope API, zodiac weekly forecast, astrology weekly prediction. |
| 1795 | + * A Monday to Sunday column for any zodiac sign, naming the transits that perfect during the |
| 1796 | + * week and the days they fall on. Each event is read into the whole-sign houses of that sign, |
| 1797 | + * so content is unique per sign, and the dated events come back beside the prose so an editor |
| 1798 | + * can check a piece before it runs. Alongside the column come overview, love, career, health, |
| 1799 | + * finance and advice, plus lucky days, lucky numbers and compatible signs. No language model |
| 1800 | + * is involved, so the same sign and week always returns the same text. Pass any date inside a |
| 1801 | + * week to retrieve that week, or timezone to roll over on a local clock. Available in eight |
| 1802 | + * languages. Weekly horoscope API, zodiac weekly forecast, astrology weekly prediction. |
1793 | 1803 | * |
1794 | 1804 | * GET /astrology/horoscope/{sign}/weekly |
1795 | 1805 | * |
@@ -1823,6 +1833,52 @@ public function getWeeklyHoroscope( |
1823 | 1833 | return $this->callRequest($request); |
1824 | 1834 | } |
1825 | 1835 |
|
| 1836 | + /** |
| 1837 | + * Yearly horoscope by zodiac sign - Year ahead forecast with themes, key periods, eclipses and |
| 1838 | + * retrogrades |
| 1839 | + * |
| 1840 | + * Get the year ahead for any zodiac sign, as a long-form column plus the structured arrays a |
| 1841 | + * year-ahead page is built from: the slow-body themes that set the backdrop, a dated key |
| 1842 | + * period for each of the twelve houses, the best month for love, career, health and finance, |
| 1843 | + * and every eclipse and every retrograde and direct station with the house it falls in for |
| 1844 | + * this sign. Love, career, health, finance and advice cover the whole year, and the dated |
| 1845 | + * events behind the copy come back beside it so an editor can check the piece before it runs. |
| 1846 | + * Omit the year for the one in progress, or pass any year from 1900 to 2100 to build an |
| 1847 | + * archive or a forecast ahead of time. Yearly horoscope API, year ahead astrology, annual |
| 1848 | + * zodiac forecast, eclipse and retrograde calendar. |
| 1849 | + * |
| 1850 | + * GET /astrology/horoscope/{sign}/yearly |
| 1851 | + * |
| 1852 | + * @param string $sign |
| 1853 | + * Zodiac sign, case-insensitive (e.g., aries, Aries, ARIES all work). |
| 1854 | + * @param string|null $lang |
| 1855 | + * Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. |
| 1856 | + * Defaults to en. Coverage varies by domain, and a field with no translation in the requested |
| 1857 | + * language returns English. |
| 1858 | + * @param string|null $timezone |
| 1859 | + * Selects which year counts as current when year is omitted. Defaults to UTC, so the forecast |
| 1860 | + * rolls over at 00:00 UTC on January 1. Pass the timezone of the end user to roll over on |
| 1861 | + * their local clock instead. Ignored when year is set. Accepts an IANA name (e.g. |
| 1862 | + * "America/New_York"), decimal hours (e.g. 5.5 for IST), or a fixed UTC offset (e.g. |
| 1863 | + * "-05:00"). |
| 1864 | + * @param float|null $year |
| 1865 | + * Calendar year to forecast, 1900 to 2100. Defaults to the current year in the timezone |
| 1866 | + * parameter. |
| 1867 | + * |
| 1868 | + * @return array<string, mixed> |
| 1869 | + */ |
| 1870 | + public function getYearlyHoroscope( |
| 1871 | + string $sign, |
| 1872 | + ?string $lang = null, |
| 1873 | + ?string $timezone = null, |
| 1874 | + ?float $year = null |
| 1875 | + ): array |
| 1876 | + { |
| 1877 | + $request = new \RoxyAPI\Sdk\Generated\Requests\GetYearlyHoroscopeRequest(sign: $sign, lang: $lang, timezone: $timezone, year: $year); |
| 1878 | + |
| 1879 | + return $this->callRequest($request); |
| 1880 | + } |
| 1881 | + |
1826 | 1882 | /** |
1827 | 1883 | * Get zodiac sign details - Complete astrology sign profile with personality traits |
1828 | 1884 | * |
|
0 commit comments