AstrologyAPI

Sub Conscious Self Number

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

The sub_conscious_self_number API provides a report on a person's subconscious self number based on their name and birth date. The response includes the person's name, birth date, subconscious self number, and a report that describes the personality traits associated with that number.

POST/sub_conscious_self_number
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/sub_conscious_self_number"
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  "name": "Ajeet kanojia",
3  "birth_date": "2011-5-15",
4  "subconscious_self_number": 5,
5  "report": [
6    "With Subconscious Self number 5, you seem to come across as fickle-minded. It is hard for you to keep yourself focused on one task for long and be disciplined especially while shouldering responsibilities. Your attitude to rushing from one thing to another could make you disorganized. You may lack the dedication needed towards completion of what you have taken up and thus, leaving things half done or mid-way is quite common with you. Your escapist tendencies will not do any good, especially when faced with a problem. It would be wise on your part to face the issues and figure out a way to work through it. You need to learn to remain grounded and stay still. Hence, a good self-control and self-discipline are qualities that you need to imbibe to make you more functional and productive at things you do. "
7  ]
8}

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.