Rapid account: Moon-API.com

Moon-API.com / MoonAPIcom

Moon-API.com is a provider of comprehensive astronomical data and APIs related to the moon, offering developers and enthusiasts access to accurate information about moon phases, lunar cycles, celestial events, and other moon-related data for various appli

Discussions

23
Title
Created at (Click to sort ascending)
A
1
Hi there eavagliano6, Thanks a lot for the kind words about our API! It's really encouraging to hear that you're finding it useful. Regarding your request for language localization, it's definitely an interesting suggestion and something we'll look into. However, I must mention that adding this feature might present a few challenges, especially since it requires providing accurate translations for numerous languages. Currently, our user base spans a wide array of countries, including Pakistan, Portugal, Netherlands, Switzerland, Kenya, France, Uzbekistan, Japan, Germany, Finland, Türkiye, Lithuania, Singapore, Poland, and more. This diversity introduces a significant hurdle in providing translations for all these languages accurately. We understand the importance of having the moon's names and current phases in your native language, and we might start by translating the phases of the moon, as you've suggested: * New Moon – la nouvelle Lune * Waxing crescent – le premier croissant * First quarter – le premier quartier * Full moon – la pleine Lune * Waning gibbous – la Lune gibbeuse décroissante * Last quarter – le dernier quartier * Waning crescent – le dernier croissant However, when it comes to more detailed information, like eclipses and specific full moons, the task becomes more complex. For these, we'd need to rely on a dynamic translation service, which brings its own set of challenges and considerations. While we can't promise this feature will be implemented immediately or to its full extent, rest assured, your feedback is invaluable, and we'll certainly explore how we can make our API more accessible to non-English speakers. Thanks again for your feedback, and please keep the suggestions coming! Best regards, Chris @ Moon-API.com 水 9:17 10/4/24
A
5
Hi Bloodlust, It's great to hear that the moon phase data has been useful for your game. I'm pleased to inform you that the eclipse data has now been deployed into our API. We're also considering your other suggestion of expanding our data to include full moon types such as supermoons, blood moons, and blue moons. While this addition is still in the works, rest assured, we're aiming to deliver this soon. Thank you for your enthusiasm and support for our API. We're thrilled to be a part of enhancing your game and look forward to bringing more updates your way. Best wishes, Luke Moon-API.com 水 9:52 6/3/24
A
5
Hi Bloodlust, It's great to hear that the moon phase data has been useful for your game. I'm pleased to inform you that the eclipse data has now been deployed into our API. We're also considering your other suggestion of expanding our data to include full moon types such as supermoons, blood moons, and blue moons. While this addition is still in the works, rest assured, we're aiming to deliver this soon. Thank you for your enthusiasm and support for our API. We're thrilled to be a part of enhancing your game and look forward to bringing more updates your way. Best wishes, Luke Moon-API.com 水 9:52 6/3/24
A
5
Hi Bloodlust, It's great to hear that the moon phase data has been useful for your game. I'm pleased to inform you that the eclipse data has now been deployed into our API. We're also considering your other suggestion of expanding our data to include full moon types such as supermoons, blood moons, and blue moons. While this addition is still in the works, rest assured, we're aiming to deliver this soon. Thank you for your enthusiasm and support for our API. We're thrilled to be a part of enhancing your game and look forward to bringing more updates your way. Best wishes, Luke Moon-API.com 水 9:52 6/3/24
A
4
Hi Dietmoonlyte, First off, cheers for your patience and apologies for the tardy response. We've had a look at the issue you mentioned regarding the Zodiac Sign data not loading as expected. After reviewing the details you've provided, it seems everything is in working order on our end. The snag appears to lie in how the Zodiac Sign data is being accessed in your code. Based on the API's response structure, the Zodiac Sign information is nested a bit deeper than your current code fetches. You're trying to grab it directly from `data.moon.zodiac_sign`, but the actual data you're after is located within `data.moon.zodiac_sign.moon_sign` for the moon's sign and `data.moon.zodiac_sign.sun_sign` for the sun's sign. Here's a quick tweak to your code that should fix the issue: ``` <script> document.addEventListener('DOMContentLoaded', function() { const url = 'https://moon-phase.p.rapidapi.com/advanced'; const options = { method: 'GET', headers: { 'X-RapidAPI-Host': 'moon-phase.p.rapidapi.com' 'X-RapidAPI-Key': 'API_KEY_HERE' } }; fetch(url, options) .then(response => response.json()) .then(data => { document.getElementById('moon-phase').innerHTML = '<span id="phase-text">' + data.moon.phase_name + '</span>'; // Updated line below to fetch the moon sign correctly document.getElementById('zodiac-sign').innerHTML = '<span id="zodiac-text">' + data.moon.zodiac.sun_sign + ' & ' + data.moon.zodiac.moon_sign + '</span>'; }) .catch(error => console.error('Error:', error)); }); </script> ``` This should ensure that the Zodiac Sign information (both sun sign and moon sign) is displayed as intended. Give this a shot, and please let us know if you're still facing any issues. We're here to help get this sorted for you. Best, Luke @ Moon-API.com 火 12:29 27/2/24
A
4
Hi Dietmoonlyte, First off, cheers for your patience and apologies for the tardy response. We've had a look at the issue you mentioned regarding the Zodiac Sign data not loading as expected. After reviewing the details you've provided, it seems everything is in working order on our end. The snag appears to lie in how the Zodiac Sign data is being accessed in your code. Based on the API's response structure, the Zodiac Sign information is nested a bit deeper than your current code fetches. You're trying to grab it directly from `data.moon.zodiac_sign`, but the actual data you're after is located within `data.moon.zodiac_sign.moon_sign` for the moon's sign and `data.moon.zodiac_sign.sun_sign` for the sun's sign. Here's a quick tweak to your code that should fix the issue: ``` <script> document.addEventListener('DOMContentLoaded', function() { const url = 'https://moon-phase.p.rapidapi.com/advanced'; const options = { method: 'GET', headers: { 'X-RapidAPI-Host': 'moon-phase.p.rapidapi.com' 'X-RapidAPI-Key': 'API_KEY_HERE' } }; fetch(url, options) .then(response => response.json()) .then(data => { document.getElementById('moon-phase').innerHTML = '<span id="phase-text">' + data.moon.phase_name + '</span>'; // Updated line below to fetch the moon sign correctly document.getElementById('zodiac-sign').innerHTML = '<span id="zodiac-text">' + data.moon.zodiac.sun_sign + ' & ' + data.moon.zodiac.moon_sign + '</span>'; }) .catch(error => console.error('Error:', error)); }); </script> ``` This should ensure that the Zodiac Sign information (both sun sign and moon sign) is displayed as intended. Give this a shot, and please let us know if you're still facing any issues. We're here to help get this sorted for you. Best, Luke @ Moon-API.com 火 12:29 27/2/24