AstrologyAPI

Romantic Forecast Report

POSThttps://json.astrologyapi.com/v1/romantic_forecast_report/tropical
Copy

This API provides a romantic forecast report based on the position of various planets. It returns a list of predictions, each consisting of the date, planet position, and a forecast. The forecast includes advice on how to navigate potential romantic challenges and opportunities, such as being mindful of one's critical tendencies or being charming and expressive to attract a potential partner.

POST/romantic_forecast_report/tropical
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/romantic_forecast_report/tropical"
9
10# Request data
11data = {
12        "day": 10,
13        "month": 5,
14        "year": 1990,
15        "hour": 19,
16        "min": 55,
17        "lat": 19.2056,
18        "lon": 25.2056,
19        "tzone": 5.5,
20        "house_type": "placidus"
21    }
22
23headers = {
24    'x-astrologyapi-key': api_key,
25    'Content-Type': 'application/json'
26    # Add 'Accept-Language': '<language_code>' if needed
27}
28
29try:
30    response = requests.post(api_url, headers=headers, json=data)
31    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
32
33    # Process the response
34    response_data = response.json()
35    print(json.dumps(response_data, indent=4))
36
37except requests.exceptions.RequestException as e:
38    print(f"Error making API request: {e}")
39    if hasattr(e, 'response') and e.response is not None:
40        try:
41            print(f"Error response: {e.response.json()}")
42        except json.JSONDecodeError:
43             print(f"Error response (non-JSON): {e.response.text}")
44
45
200Response
Copy
1{
2  "romantic_forecast": [
3    {
4      "planet_position": "Transiting Mercury Opposition Natal Mercury",
5      "date": "19-6-2017",
6      "forecast": "You actually run the risk now of being openly critical of other people, rejecting their ideas and viewpoints as silly or uneducated.What could start out as a friendly debate could turn ugly if you let yourself be derisive or overly combative. As a matter of fact, you might want to just stick to the people you know well during this transit, because you're not at your mental best. If someone has caught your eye, you've got a better chance of connecting with them in a positive way once this energy clears, because if you go out with them now, you'll just show them your prickly, stubborn, judgmental side."
7    },
8    {
9      "planet_position": "Transiting Mercury Opposition Natal Neptune",
10      "date": "19-6-2017",
11      "forecast": "You're not the best bet in terms of romance during this transit. You might run at the first sign of trouble or conflict with that special someone, and part of the problem will be that you'll probably be making up the conflict in the first place. You're not in the clearest space of mind at this time, and you're very much prone to projecting anything and everything onto your potential sweetie (and everyone else, but that's another story).You might think things are going awry between you when they're not, and you'll react by heading in the opposite direction instead of sticking in there and trying to communicate about the misunderstanding."
12    },
13    {
14      "planet_position": "Transiting Saturn Conjunction Natal Neptune",
15      "date": "19-6-2017",
16      "forecast": "You could come to a deeper spiritual understanding at this time of love and life in general, but it's more likely that this ten-month transit will be a time of confusion and even insecurity for you in love. Your ideals about what you're looking for in a relationship are running high and strong, but you'll be faced with the reality check that perfection in love is impossible. The most you can hope for is fleeting moments of ecstasy, and even that's asking a lot.Why does that have to be a bad thing."
17    },
18    {
19      "planet_position": "Transiting Sun Square Natal Mars",
20      "date": "20-6-2017",
21      "forecast": "If you contact someone or go on a date during this period, don't be surprised if you rub them the wrong way without even meaning to. What might start out as a perfectly good connection could go bad fast if you're argumentative or competitive with them. You might not even mean to argue; you might just think you're being your normal, opinionated self.After all, what's wrong with a little friendly competition between friends."
22    },
23    {
24      "planet_position": "Transiting Mercury Square Natal Mars",
25      "date": "21-6-2017",
26      "forecast": "This is really not a good time to get in touch with someone new; with the mood you're in during this transit, you'll try the patience of even your closest friends. If you choose to go out with someone during this time, don't be surprised if you end up arguing even if you don't know themThe problem is, you don't know how to be tactful at this time, and all your communications will be forceful. Logically, you might know that they're a nice person and you shouldn't get mad at them, but emotionally, you'll be like a ball of dry weeds on a hot summer day ready to ignite."
27    },
28    {
29      "planet_position": "Transiting Mercury Trine Natal Jupiter",
30      "date": "23-6-2017",
31      "forecast": "You've got a great attitude during this transit for dating and finding love. You're charming and funny now, talkative and expressive, and your natural intelligence is easily conveyed.You might even be feeling so on a high that you'll feel a bit intellectually superior to the people around you but don't let yourself fall into that trap. After all, you're smart, but you don't know all there is to know about the world."
32    },
33    {
34      "planet_position": "Transiting Sun Trine Natal Jupiter",
35      "date": "24-6-2017",
36      "forecast": "If you go out on a date during this period with someone new, you're sure to impress them with your array of friends, your sharp mind, your creative sensibility and your knack for attracting good luck and admirers everywhere you go. You're in a good mood at this time, but more than that, you've got an open mind, so it's the perfect time to make contact with someone new.You won't make any snap judgments; you'll be happy to take your time in getting to know them, and you'll appreciate any surprises they bring your way. Your tolerance and generosity of spirit will definitely impress them."
37    }
38  ]
39}

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - enSpanish - esPortuguese - ptFrench - frItalian - itGerman - deRussian - ru

Request Parameters

day

int

required

Date of birth, eg: 10

month

int

required

Month of birth, eg: 5

year

int

required

Year of birth, eg: 1990

hour

int

required

Hour of birth, eg: 19

min

int

required

Minute of birth, eg: 55

lat

float

required

Latitude, eg: 19.2056

lon

float

required

Longitude, eg: 25.2056

tzone

float

required

Timezone, eg: 5.5

house_type

string

required

Default : placidus // koch/topocentric/poryphry/equal_house/whole_sign

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.