AstrologyAPI

Personal Month Prediction

POSThttps://json.astrologyapi.com/v1/personal_month_prediction
Copy

The personal_month_prediction API provides a monthly report based on the user's personal month number. It predicts a time for purging the past, putting others before oneself, and achieving success through helping others. The report also advises caution in speech, changes in relationships, and completion of goals and projects.

POST/personal_month_prediction
Copy
1import requests
2import json
3
4# Your API key
5api_key = "<YOUR_API_KEY>"
6
7# API endpoint URL
8api_url = "https://json.astrologyapi.com/v1/personal_month_prediction"
9
10# Request data
11data = {
12        "date": 10,
13        "month": 5,
14        "year": 1990,
15        "full_name": "John"
16    }
17
18headers = {
19    'x-astrologyapi-key': api_key,
20    'Content-Type': 'application/json'
21    # Add 'Accept-Language': '<language_code>' if needed
22}
23
24try:
25    response = requests.post(api_url, headers=headers, json=data)
26    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
27
28    # Process the response
29    response_data = response.json()
30    print(json.dumps(response_data, indent=4))
31
32except requests.exceptions.RequestException as e:
33    print(f"Error making API request: {e}")
34    if hasattr(e, 'response') and e.response is not None:
35        try:
36            print(f"Error response: {e.response.json()}")
37        except json.JSONDecodeError:
38             print(f"Error response (non-JSON): {e.response.text}")
39
40
200Response
Copy
1{
2  "personal_month_number": 9,
3  "considered_month": 11,
4  "report": [
5    "This is a time for PURGING yourself from the past, enabling the future to bring new experiences. The past comes alive through memories of both good and bad times. If you were married during the 8 year, cycle or month, then the 9 year, cycle or month can be considered the \"getting to know you\" syndrome, where all of your programming from your single days can be changed very quickly into \"we\" and how we operate as a unit, instead of \"me\" as a single entity. Old habits and thoughts die hard and the mighty 9 sees to it that thoughts and attitudes that need to be changed so that you can function as a unit, die or are modified. This may very well prove to be a very \"Frustrating\" time for you as we hold on to the old and try to reject the new. The 9 also gives us the ability to put others before ourselves, to help your new partner feel comfortable in a different environment, especially if they are moving into your home and they may feel somewhat uncomfortable in your space.",
6    "This is an auspicious time to gain favors from the government or people in authority. You can wind up in some sort of disagreements or experience harsh words with someone, so be careful in your speech. Competition with others will work out well now and some honors can come to you. You may be fortunate in unexpected financial gains, in lotteries or other source. Because of your very sensitive emotional state, you can be very easily hurt by the words or explosive deeds of others, whether they are your friends, family or spouse. The mighty 9 will force some kind of changes in the structure of your relationships and new love relationships can easily suffer a setback, changing the way you look at it, for better or worse, probably both at the same time. Perhaps the key here is that you were giving too much of yourself to another and the pain and hurt feelings is forcing you to \"step back\" and become more impersonal with it if you are to \"survive\" or coexist within it.",
7    "Achievement and success will come to those who help others. Self seeking motives will have its reward in ruin. This is the essence of the 9 month.",
8    "This is an excellent time to clear out the \"old\" garbage from your life that is not working anymore and make changes, whether it is insurance companies who don't have your best interests at heart or people that provide a service to you that you can no longer tolerate. Any conditions or situations that don't work any more should be reevaluated or replaced at this time.",
9    "This is a time of transition and letting go of unnecessary things in our lives. Should we be foolish enough to try to hang on to them, the universe and its wisdom will find ways for us to have them part from us. Changes in career, profession or job can occur along with changes in residence, choosing to relocate. Charitable and humanitarian deeds are stressed bringing fulfillment with it. Try to work WITH others for a common goal that will benefit the masses of people. Sympathy, understanding of the plights of others, compassion and love should be extended to all people that you come in contact with now. Friendships from your past take on a greater meaning and wonderful new relationships can develop. Try to complete all of the goals and projects that you have been working on at this time."
10  ]
11}

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - en

Request Parameters

date

int

required

Date of birth, eg: 10

month

int

required

Month of birth, eg: 5

year

int

required

Year of birth, eg: 1990

full_name

string

required

Name of the person, eg: John

Errors

400
Bad Request

Something is wrong with your request format or parameters.

401
Unauthorized

Your API key is missing or invalid.

403
Forbidden

You don't have permission to access this specific resource.

404
Not Found

The API endpoint you're trying to reach doesn't exist.

500
Internal Server Error

Our server is having a temporary glitch.