Our Horoscopes API is designed to provide developers with daily horoscopes for each zodiac sign, generated using accurate and reliable astrological principles. Whether you’re building a mobile app, website, or any other kind of digital platform, our API can contribute valuable quality content for your audience.
Our API provides daily horoscopes for all 12 zodiac signs, updated every 24 hours to ensure the latest and most accurate predictions. With our API, you can easily integrate horoscope content into your application or website, allowing your users to access personalized horoscopes with just a few clicks.
Our horoscopes are based on tried and tested astrological principles algorithms and machine learning models to generate horoscopes that are both engaging and full of valuable positive guidance. Our horoscopes cover various aspects of life, including love, career, finance, health, and more, providing your users with a comprehensive and insightful reading.
In addition to providing high-quality horoscope data, we also offer flexible pricing plans to fit your budget and needs. Our API is easy to use and comes with extensive documentation and support, ensuring a seamless integration process.
So if you’re looking to add a touch of fun and personalization to your digital platform, look no further than the Daily Horoscopes API. Sign up today and start integrating horoscope data into your project!
Signup for Updates and Free Support
Features:
- All Horoscopes covered – Daily, Weekly and Monthly
- Horoscope Subtypes Available – Overview, Love and Money
- Content Features: Our horoscopes cover various aspects of life, including love, career, finance, health, and more, providing your users with a comprehensive and insightful reading.
- Customisation: You can request for customisation of content to suit your audience demographics including tone, region, gender, age, length of horoscopes and any other customisation you can think of that needs to part of the content.
- Multiple output formats: We offer multiple formats for retrieving data, including JSON, SQL, and CSV, making it easy to integrate our data into your platform. By default our API returns content in JSON format. If you would like any other format including monthly dump sent by email please request for customisation.
- Developer-friendly: Our API is designed with developers in mind, with code samples, tutorials, and best practices to help you integrate our data into your platform seamlessly. Please feel free to contact support to help with integration.
- Scalable: Our API can handle large volumes of requests and is built on a scalable infrastructure, ensuring fast and reliable performance even during peak usage periods.
Price Plans
We offer both monthly and yearly subscription pricing plans. Our yearly plans offer upto 20% discount over monthly plans. You can cancel anytime. Feel free to get in touch if you have further questions.
Yearly Plans
Monthly Plans
Getting Started and Documentation
Horoscopes JSON RESTful API
If you are looking forward to use our horoscopes on your apps, software or some custom requirements you can send API calls to api.ask-oracle.com/v2/ endpoint with dt date parameters in YYYY-MM-DD format
https://api.ask-oracle.com/v2/?key=demo&dt=2023-04-11
Above returns daily, weekly and monthly horoscopes content in JSON format as per your plan. Use API KEY demo to view our content
Code Samples
Basic Implementation
<?php $askoracle_api_key = "demo"; //$dt = date("Y-m-d"); $dt = "2023-04-11"; $url = "https://api.ask-oracle.com/v2/?key={$askoracle_api_key}&dt={$dt}"; $data = file_get_contents($url); $json = json_decode($data); // Loop through each zodiac sign and retrieve the horoscope foreach ($json->{'content'}->{'daily'}->{'overview'} as $sign => $horoscope) { echo $sign . ' horoscope: ' . $horoscope . '<br>'; } ?>
import requests url = 'https://api.ask-oracle.com/v2/' #params = {'key': 'demo', 'dt': date.today().strftime("%Y-%m-%d")} params = {'key': 'demo', 'dt': '2023-04-11'} response = requests.get(url, params=params) json_data = response.json() # Loop through each zodiac sign and retrieve the horoscope for sign, horoscope in json_data['content']['daily']['overview'].items(): print(sign + ' horoscope: ' + horoscope)
//const url = 'https://api.ask-oracle.com/v2/?key=demo&dt=' + new Date().toISOString().split('T')[0]; const url = 'https://api.ask-oracle.com/v2/?key=demo&dt=2023-04-11'; fetch(url) .then(response => response.json()) .then(data => { // Loop through each zodiac sign and retrieve the horoscope for (const sign in data.content.daily.overview) { const horoscope = data.content.daily.overview[sign]; console.log(sign + ' horoscope: ' + horoscope); } });
Past and Future Horoscopes
<?php function fetch_horoscope($api_key, $date) { $url = "https://api.ask-oracle.com/v2/?key={$api_key}&dt={$date}"; $data = file_get_contents($url); return json_decode($data); } function display_horoscope($json, $day, $sign) { $horoscope = $json->{'content'}->{'daily'}->{'overview'}->{$sign}; echo $day . ' ' . $sign . ' horoscope: ' . $horoscope . '<br>'; } $askoracle_api_key = "demo"; $current_date = new DateTime(); $yesterday = $current_date->modify('-1 day')->format('Y-m-d'); $tomorrow = $current_date->modify('+2 day')->format('Y-m-d'); $json_yesterday = fetch_horoscope($askoracle_api_key, $yesterday); $json_tomorrow = fetch_horoscope($askoracle_api_key, $tomorrow); $sign = 'aries'; display_horoscope($json_yesterday, 'Yesterday\'s', $sign); echo '<br>'; display_horoscope($json_tomorrow, 'Tomorrow\'s', $sign); ?>
import requests from datetime import datetime, timedelta def fetch_horoscope(api_key, date): url = f"https://api.ask-oracle.com/v2/?key={api_key}&dt={date}" response = requests.get(url) return response.json() def display_horoscope(json_data, day, sign): horoscope = json_data['content']['daily']['overview'][sign] print(f"{day} {sign} horoscope: {horoscope}") askoracle_api_key = "demo" current_date = datetime.now() yesterday = (current_date - timedelta(days=1)).strftime('%Y-%m-%d') tomorrow = (current_date + timedelta(days=1)).strftime('%Y-%m-%d') json_yesterday = fetch_horoscope(askoracle_api_key, yesterday) json_tomorrow = fetch_horoscope(askoracle_api_key, tomorrow) sign = 'aries' display_horoscope(json_yesterday, "Yesterday's", sign) print() display_horoscope(json_tomorrow, "Tomorrow's", sign)
const fetchHoroscope = async (apiKey, date) => { const url = `https://api.ask-oracle.com/v2/?key=${apiKey}&dt=${date}`; const response = await fetch(url); return await response.json(); }; const displayHoroscope = (json, day, sign) => { const horoscope = json.content.daily.overview[sign]; console.log(`${day} ${sign} horoscope: ${horoscope}`); }; const askoracleApiKey = 'demo'; const currentDate = new Date(); const yesterday = new Date(currentDate); yesterday.setDate(yesterday.getDate() - 1); const yesterdayFormatted = yesterday.toISOString().split('T')[0]; const tomorrow = new Date(currentDate); tomorrow.setDate(tomorrow.getDate() + 1); const tomorrowFormatted = tomorrow.toISOString().split('T')[0]; const sign = 'Aries'; fetchHoroscope(askoracleApiKey, yesterdayFormatted).then((jsonYesterday) => { displayHoroscope(jsonYesterday, "Yesterday's", sign); }); fetchHoroscope(askoracleApiKey, tomorrowFormatted).then((jsonTomorrow) => { displayHoroscope(jsonTomorrow, "Tomorrow's", sign); });
WordPress Plugin
Step 1: Upload and Activate the Plugin
- Go to the WordPress Admin Dashboard.
- Navigate to “Plugins” > “Add New Plugin”.
- Download the plugin zip file and upload it on your WordPress Add New Plugin screen.
Step 2: Use the Shortcode
You can now use the shortcode [horoscope sign="gemini" category="daily" type="overview" showPrevNext="true"]
in posts or pages to display the horoscope for Gemini.
Step 3: Configure the API Key
- Go to “Settings” > “Horoscope” in the WordPress Admin Dashboard.
- Enter your API key and save changes.
Example usage in a wordpress page or post:
[horoscope sign="gemini" category="daily" type="overview" showPrevNext="true"]
Frequently Asked Questions
Can I get Horoscopes API for free?
Unfortunately we are unable to offer free subscriptions to our API at this time to anyone for any reasons. You can use the demo key to preview our content and prepare your app before making the mind to purchase our subscription.
What API types are supported?
We offer a RESTful API. The default output format is JSON. Feel free to contact us and get it customised to your needs
What do I need to access the API?
You will need an API KEY to get unlimited unrestricted access to our Horoscope API. Buy your desired plan and your order will be under processing. Once the order has been marked as completed, go to My Account API KEY section where you will see your API KEY. For any queries regarding your order, please feel free to Contact Us.
You can then use our code samples to easily integrate the api in your frontend or backend.
Are these horoscopes based on Astrology? What astrology technique is being used to prepare these horoscopes?
Yes, our horoscopes are 100% based on Astrology. Our astrologer has 20 years of experience in this field and is very well versed in various forms of Astrology including western astrology, Vedic (hindu) astrology, natal chart horoscopy, horary horoscopy and use of planetary transits, progressions and divisional charts.
We use transits of Moon to prepare our daily horoscopes, we make use of transits of Mercury and Venus to prepare our weekly horoscopes and for the monthly horoscopes we make use of solar returns as well as transits of Mars.
We have done extensive testing and research on our methods and they produce accurate and reliable horoscopes.
Is this horoscope content suitable to all audiences?
Yes! Horoscopes are suitable for everyone above 13+ years of age but generally apply to women in their 20s and 30s. They should acc
Is yesterday and tomorrow daily horoscope available? What about previous week and next week? and previous month and next month?
Yes we have you covered! Fetching the yesterday horoscopes or tomorrow horoscopes is just a matter of passing the correct date with your api request. Same goes for weekly and monthly. Please refer to our code samples to get you started.
Can I customise the content to suit my audience?
Yes! We offer customisation options such as tone, region, gender, age, and length of horoscopes, among others. We charge an initial setup fee to process your request. Contact us to discuss your requirements.
What are the supported languages?
We offer horoscope API in every major language including English, Spanish, Hindi, Chinese, Korean and so on.
Is there any limit to API usage?
Currently the APIs are unmetered and unrestricted. We do not allow abuse of our API and may throttle the requests in certain cases to keep our systems stable.
What countries and payment methods are supported?
We support all customers having a valid VISA or a MasterCard. Certain countries with Apple Pay and Google Pay are supported too. We also offer PayPal for all other global customers. An 18% GST will be levied on our customers from India.
How can I get in touch with you for support and requests?
If you face any issues, please feel free to Contact Us.
How to access your API? Is this a paid feature?
Wanted to own a portal(app and desktop) for astrology marketplace
Ask Oracle website with ad placement plugin use
I wan API
I am interested for Astrology API for my Website AskAcharya.com
It’s actually a nice and helpful piece of information. I
am glad that you shared this useful info with us. Please keep us
up to date like this. Thank you for sharing.
Hi, how do I get access to your API? How much does it cost?
How Can I get Your Reputed API
How Can I get API for Dial199.com
Please check your email inbox.
Hello there,
I notice your WordPress plugin has been closed down by the WP people. Can you suggest the next most effective solution, will the iFrame work?
Plugin uses iframe internally. You can use iframe, it is as good as plugin.
how can I get API key
how can i remove copy right is it possible?
We do offer a White Label solution that allows for removal of copyright and attribution requirements. Available as API or a monthly dump. Please contact us for pricing.
Do you provide software solution for these readings too. I mean can we download or purchase the software you use currently we are running Android app kickboss
You can use our APIs.
i want to delete the copywrite, Can I will do that?
Please use the API and give us the credit somewhere on the page.
We do offer a White Label solution that allows for removal of copyright and attribution requirements. Available as API or a monthly dump. Please contact us for pricing.
How to change the tamil language
Currently only available in English and Hindi.
I added your widget to our website. I’m wondering why the actual horoscopes are in gray type and difficult to read. Is there a fix? This is how I customized the code:
You have to use this value in params (for Black) –
textcolor=black
Hello, i used this plug in on my metaphysical site https://mysticculture.com but I want to customize it. How do you recommend I do that? Please let me know. Thanks!
Hi, exactly what customizations do you need? Would you like to match it to your site’s theme and color ?
I would like to enlarge the over a widget. Also is there a way for me to replace the icons?
Do you have new icons ready? Replacing icons isn’t possible without recreating the entire widget. We can make this change for a small fee.
I am not sure what you mean by “enlarge the over a widget”.
thanks for publishing this post, i will use this for my next website
I have used this service on my website at http://bongoflavamp3.com and it looks good.