AstrologyAPI

Varshphal Saham Points

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

POST/varshaphal_saham_points
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/varshaphal_saham_points"
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        "varshphal_year": 1990
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  {
3    "saham_id": 1,
4    "saham_name": "Punya",
5    "saham_degree": 242.6899
6  },
7  {
8    "saham_id": 2,
9    "saham_name": "Vidya",
10    "saham_degree": 20.482
11  },
12  {
13    "saham_id": 3,
14    "saham_name": "Yasas",
15    "saham_degree": 116.561
16  },
17  {
18    "saham_id": 4,
19    "saham_name": "Mitra",
20    "saham_degree": 279.7386
21  },
22  {
23    "saham_id": 5,
24    "saham_name": "Mahatmya",
25    "saham_degree": 318.4342
26  },
27  {
28    "saham_id": 6,
29    "saham_name": "Asha",
30    "saham_degree": 309.4401
31  },
32  {
33    "saham_id": 7,
34    "saham_name": "Samartha",
35    "saham_degree": 136.7244
36  },
37  {
38    "saham_id": 8,
39    "saham_name": "Bhrati",
40    "saham_degree": 344.5743
41  },
42  {
43    "saham_id": 9,
44    "saham_name": "Gauraa",
45    "saham_degree": 146.561
46  },
47  {
48    "saham_id": 10,
49    "saham_name": "Pitri",
50    "saham_degree": 269.0731
51  },
52  {
53    "saham_id": 11,
54    "saham_name": "Rajya",
55    "saham_degree": 324.0989
56  },
57  {
58    "saham_id": 12,
59    "saham_name": "Matri",
60    "saham_degree": 198.0312
61  },
62  {
63    "saham_id": 13,
64    "saham_name": "Putra",
65    "saham_degree": 203.1654
66  },
67  {
68    "saham_id": 14,
69    "saham_name": "Jeeva",
70    "saham_degree": 314.5743
71  },
72  {
73    "saham_id": 15,
74    "saham_name": "Karma",
75    "saham_degree": 149.4526
76  },
77  {
78    "saham_id": 16,
79    "saham_name": "Roga",
80    "saham_degree": 47.9949
81  },
82  {
83    "saham_id": 17,
84    "saham_name": "Kali",
85    "saham_degree": 108.4592
86  },
87  {
88    "saham_id": 18,
89    "saham_name": "Shastra",
90    "saham_degree": 39.4164
91  },
92  {
93    "saham_id": 19,
94    "saham_name": "Bandhu",
95    "saham_degree": 35.2667
96  },
97  {
98    "saham_id": 20,
99    "saham_name": "Mrityu",
100    "saham_degree": 290.9983
101  },
102  {
103    "saham_id": 21,
104    "saham_name": "Paradesa",
105    "saham_degree": 93.5909
106  },
107  {
108    "saham_id": 22,
109    "saham_name": "Artha",
110    "saham_degree": 222.4073
111  },
112  {
113    "saham_id": 23,
114    "saham_name": "Paradara",
115    "saham_degree": 251.9272
116  },
117  {
118    "saham_id": 24,
119    "saham_name": "Vanik",
120    "saham_degree": 35.2667
121  },
122  {
123    "saham_id": 25,
124    "saham_name": "Karyasiddhi",
125    "saham_degree": 87.4047
126  },
127  {
128    "saham_id": 26,
129    "saham_name": "Vivaha",
130    "saham_degree": 279.4401
131  },
132  {
133    "saham_id": 27,
134    "saham_name": "Santapa",
135    "saham_degree": 9.0889
136  },
137  {
138    "saham_id": 28,
139    "saham_name": "Sraddha",
140    "saham_degree": 89.5785
141  },
142  {
143    "saham_id": 29,
144    "saham_name": "Preeti",
145    "saham_degree": 74.3781
146  },
147  {
148    "saham_id": 30,
149    "saham_name": "Jadya",
150    "saham_degree": 227.5431
151  },
152  {
153    "saham_id": 31,
154    "saham_name": "Vyapara",
155    "saham_degree": 143.7193
156  },
157  {
158    "saham_id": 32,
159    "saham_name": "Satru",
160    "saham_degree": 136.7244
161  },
162  {
163    "saham_id": 33,
164    "saham_name": "Jalapatana",
165    "saham_degree": 266.2625
166  },
167  {
168    "saham_id": 34,
169    "saham_name": "Bandhana",
170    "saham_degree": 128.5726
171  },
172  {
173    "saham_id": 35,
174    "saham_name": "Apamrityu",
175    "saham_degree": 212.5457
176  },
177  {
178    "saham_id": 36,
179    "saham_name": "Labha",
180    "saham_degree": 336.4575
181  }
182]

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - enHindi - hiMarathi - maBengali - bnTamil - taTelugu - teMalayalam - mlKannada - kn

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

varshphal_year

int

required

Varshphal year, eg: 1990

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.