星座和占星术 API

API ID 5794

星座和占星术提供日常、每月、每周和每年的星座预测。提供生活各个方面的详细星座信息

100% 正常运行时间 1,255 ms 平均响应

API 文档

端点

请求
返回所有星座的列表
Endpoint ID: 7541
GET https://zylalabs.com/api/5794/horoscope+and+astrology+api/7541/get+zodiac+signs
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
{"items":[{"name":"Aries"},{"name":"Taurus"},{"name":"Gemini"},{"name":"Cancer"},{"name":"Leo"},{"name":"Virgo"},{"name":"Libra"},{"name":"Scorpio"},{"name":"Sagittarius"},{"name":"Capricorn"},{"name":"Aquarius"},{"name":"Pisces"}]}
获取星座 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5794/horoscope+and+astrology+api/7541/get+zodiac+signs' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回给定星座和月份的每月星座运势

Endpoint ID: 7542
GET https://zylalabs.com/api/5794/horoscope+and+astrology+api/7542/get+monthly+horoscope
输入参数

获取每月 horoscope — 端点功能

对象 描述
month 必需 Current or next month
sign 必需

剩余免费测试请求:3 / 3。


输入参数

month
API 示例响应
JSON
{"month":3,"year":2025,"sign":"CANCER","overview":"March 2025 brings a mixture of opportunities and challenges for Cancers. With a strong emphasis on relationships this month, you may find yourself re-evaluating connections that no longer serve you. The Full Moon in Libra on March 25th will illuminate your partnership sector, urging you to seek balance and fairness in your relationships. Use this time to communicate openly and honestly about your feelings. Professionally, some unexpected changes might occur; remain adaptable and open to new possibilities that can lead to growth. It's a good month for self-care and nurturing your emotional well-being; consider dedicating time to creative outlets or spending time near water, which will replenish your spirit. Financially, be cautious with your spending as impulsivity may lead to dissatisfaction later. Overall, focus on fostering harmony in your personal and professional life, as this will set the foundation for a fruitful future."}
获取每月 horoscope — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5794/horoscope+and+astrology+api/7542/get+monthly+horoscope?month=04&sign=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回给定星座和年份的年度 Horoscope

Endpoint ID: 7543
GET https://zylalabs.com/api/5794/horoscope+and+astrology+api/7543/get+yearly+horoscope
输入参数

获取年度 Horoscope — 端点功能

对象 描述
year 必需 Current or next year
sign 必需

剩余免费测试请求:3 / 3。


输入参数

year
API 示例响应
JSON
{"year":2026,"sign":"LIBRA","overview":"In 2026, Libras will experience a year marked by balance and harmony in both personal and professional realms. As Jupiter transits through your sign for most of the year, expect opportunities for growth, new partnerships, and an expansion of your social network. Relationship dynamics will take center stage; it's a favorable time for love and strengthening bonds with friends and family. Embrace open communication and negotiation to resolve any lingering conflicts, especially in the spring months. The influence of Saturn encourages discipline and commitment in your pursuits, cultivating a more structured approach to your goals. Health will require attention, particularly around mid-year, so prioritize self-care and mindfulness practices. Overall, 2026 is a year of personal empowerment, alignment with your true self, and elevating your aspirations."}
获取年度 Horoscope — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5794/horoscope+and+astrology+api/7543/get+yearly+horoscope?year=2026&sign=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回给定星座和周开始日期的每周星座运势

Endpoint ID: 7544
GET https://zylalabs.com/api/5794/horoscope+and+astrology+api/7544/get+weekly+horoscope
输入参数

获取每周星座运势 — 端点功能

对象 描述
week_start 必需 Current or next week
sign 必需

剩余免费测试请求:3 / 3。


输入参数

week_start
API 示例响应
JSON
{"week_start":"2025-01-05","week_end":"2025-01-11","sign":"LIBRA","overview":"This week, Libras will find themselves in a dynamic atmosphere, where the themes of cooperation and balance will be highlighted. With the Moon in your sign at the beginning of the week, you are encouraged to focus on personal relationships and how they reflect your own desires. Use this energy to connect deeply with loved ones, as open conversations can bring clarity. Midweek, Venus will be influential, enhancing your charm and persuasive abilities; this is an excellent time for negotiations or social gatherings. However, stay mindful of overindulgence in social activities or luxury, as the latter part of the week calls for introspection and reevaluating your priorities. A challenge may arise on the weekend when conflicting interests present themselves, but remember, diplomacy is your strength. Stay balanced and seek compromise — your natural ability to mediate will shine through."}
获取每周星座运势 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5794/horoscope+and+astrology+api/7544/get+weekly+horoscope?week_start=2024-01-05&sign=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

返回给定星座和日期的每日运势

Endpoint ID: 7545
GET https://zylalabs.com/api/5794/horoscope+and+astrology+api/7545/get+daily+horoscope
输入参数

获取每日星座运势 — 端点功能

对象 描述
date 必需 Date in ISO format 2025-01-01
sign 必需

剩余免费测试请求:3 / 3。


输入参数

date
API 示例响应
JSON
{"date":"2025-02-04","sign":"TAURUS","overview":"A day filled with potential and opportunities lies ahead for Taurus. With the Moon in harmony with your sign, you'll find it easier to tap into your inner resources and express your needs confidently. Embrace any changes that come your way, as they might lead to positive growth and self-discovery.","food":"Opt for comfort foods that nourish your body and soul. A hearty meal featuring root vegetables or a rich, creamy pasta dish will satisfy your cravings and provide the energy you need.","home":"Creating a serene environment will be essential. Consider decluttering a space in your home to allow for fresh energy to flow. Adding a few green plants can enhance tranquility and promote a feeling of well-being.","dog":"Your furry friend may be more energetic than usual. Take time to engage in a longer walk or play session, allowing both of you to bond and enjoy the day outdoors.","cat":"Your cat may seek extra attention today. Be prepared for some affection as they purr their way into your heart. A cozy cuddle session could be just what both of you need.","bonus":"A small gesture of kindness you offer someone today may come back to you tenfold, so don’t hesitate to spread positivity.","love":"In matters of the heart, communication remains vital. If you’re in a relationship, sharing your feelings openly can deepen your connection. For singles, a chance encounter might lead to an intriguing conversation, sparking potential romantic interest.","career":"Career-wise, this is an optimal time for collaboration. Working alongside others on projects will not only enhance productivity but may also lead to innovative solutions. Don’t hesitate to voice your ideas; your perspective will be valued.","money":"Financially, an opportunity may present itself that could enhance your income. Stay vigilant and trust your instincts when it comes to making decisions. A cautious investment might prove fruitful, but ensure you do your research.","health":"Health-wise, prioritize relaxation. A grounding practice, such as yoga or meditation, will help alleviate any stresses. Be mindful of what you consume and consider incorporating more whole foods into your diet for optimal wellness."}
获取每日星座运势 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5794/horoscope+and+astrology+api/7545/get+daily+horoscope?date=2025-02-03&sign=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 星座和占星术 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

该 API 提供了不同时间段(每日、每月、每周和每年)各种星座的 horoscope 预测。它提供了一整套全面的 horoscope 信息,包括概述、食物、家庭、爱情、职业等具体分类。

主要特点:

- 支持 12 个星座
- 提供每日、每月、每周和每年的 horoscope 预测
- 为生活的各个方面提供详细的 horoscope 信息
- 提供所有星座的列表

端点:
1. 获取每日 horoscope
端点:/v1/horoscopes/{sign}/daily
参数:sign(星座)、date(YYYY-MM-DD) - 可用日期为昨天、今天或明天。
响应:指定星座的详细每日 horoscope

2. 获取每月 horoscope
端点:/v1/horoscopes/{sign}/monthly
参数:sign(星座)、month(1-12)- 可用月份为上一个、当前或下一个
响应:指定星座和月份的每月 horoscope

3. 获取每周 horoscope
端点:/v1/horoscopes/{sign}/weekly
参数:sign(星座)、week_start(YYYY-MM-DD) - 可用为上一个、当前或下一个星期。
响应:从给定日期起指定星座的每周 horoscope

4. 获取每年 horoscope
端点:/v1/horoscopes/{sign}/yearly
参数:sign(星座)、year(YYYY) - 可用为上一个、当前或下一个年份。
响应:指定星座和年份的每年 horoscope

5. 获取所有星座
端点:/v1/zodiac-signs
响应:所有 12 个星座的列表

最佳实践:
使用提供的端点获取不同星座和时间段的 horoscope 数据
妥善处理潜在的错误响应(400、401、403、404、500)
该 API 非常适合占星爱好者、希望集成 horoscope 功能的应用开发者或任何有兴趣以编程方式访问详细 horoscope 信息的人。

 

星座和占星术 API FAQs

占星API是一个综合解决方案,提供12个星座在不同时间段的详细星座信息。它提供每日、每月、每周和每年的星座运势预测,涵盖生活的各个方面,如爱情、事业、财务、健康等更多内容。

该API包含以下关键特性: - 每日、每月、每周和每年的星座预测 - 关于生活各个方面的详细信息 - 易于使用的端点,便于快速集成到应用程序中

选择此API的原因有几个 - 精确性:每个预测都基于全面的研究和分析 - 可靠性:99.99%的正常运行时间保证您可以信任API在需要时可用 - 灵活性:适用于小型项目和大型应用程序 - 综合数据:提供对生活各个方面的详细见解

该API提供多个端点以获取不同类型的星座预测: - 获取每日星座运势:/v1/horoscopes/{sign}/daily - 获取每月星座运势:/v1/horoscopes/{sign}/monthly - 获取每周星座运势:/v1/horoscopes/{sign}/weekly - 获取每年星座运势:/v1/horoscopes/{sign}/yearly - 获取所有星座:/v1/zodiac-signs

此API可以集成到各种应用程序中,例如: - 专注于占星术的移动应用 - 提供占星服务的网站 - 融合占星见解的个人发展工具 - 分享每日星座运势的社交媒体平台 - 为占星作家提供内容创作的平台

每个端点返回针对特定时间框架的星座预测 每日 每周 每月 和 每年 端点提供对各种生活方面的概述和详细见解,例如爱情 职业 和 健康 而生肖端点返回12个生肖的列表

响应数据中的关键字段包括“星座”、“概述”和每日 Horoscope 的特定类别,如“食物”、“家庭”和“爱情”。每月和每年的响应还包括“月份”、“年份”和与这些时期相关的详细见解

每个端点接受特定的参数:每日星座运势需要“星座”和“日期”,月度星座运势需要“星座”和“月份”,每周星座运势使用“星座”和“周开始”,年度星座运势需要“星座”和“年份”。星座符号端点没有参数

响应数据采用JSON格式结构,每个端点返回一个包含相关字段的对象。例如,每日星座运势的响应包括“日期”、“星座”和各种生活方面的预测,而星座列表端点返回一个星座对象的数组

每个端点提供独特的见解:每日星座运势提供每日预测和具体建议;每周星座运势涵盖本周主题;每月星座运势提供对整个月的广泛概述;每年星座运势概述本年度的重要趋势。星座符号端点列出了所有星座

用户可以根据需求通过指定星座和相关时间参数(日期、月份、周开始或年份)来自定义请求。例如,要获取三月份巨蟹座的月运,用户可以调用月运接口并传入“sign=CANCER”和“month=3”

在响应数据中“概述”提供一般预测,而“食品”“家庭”和“爱情”等领域则为生活的这些方面提供量身定制的建议。例如,在每日星座运势的响应中“食品”可能建议安慰食品,而“家庭”则可能建议创造一个宁静的环境

通过占星专家的深入研究和分析来保持数据的准确性 定期更新和质量检查确保预测的相关性和可靠性 为用户提供关于不同时间段内其星座的可信见解

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API