ASTROLOGY API REFERENCE DOCUMENTATION

Varshaphal/Varshaphal Year Chart Image

Get Varshaphal Year Chart Image

API Endpoint
varshaphal_year_chart_image
Method & Url
MethodFull Url
POSThttps://json.apireports.com/v1/varshaphal_year_chart_image

Response Data

{
  "status_code": 200,
  "status": true,
  "data": {
    "birth_datetime": "15-09-1994 12:30:00",
    "varshaphal_datetime": "15-09-2021 10:37:22",
    "chart": {
      "svg": "<svg viewBox=\"0 0 350 350\" width=\"350\" height=\"350\"><rect width=\"350\" height=\"350\" fill=\"#FFFEC9\" stroke=\"#FFC000\" stroke-width=\"4\" />\n\t\t\t\t\t\t\t<line x1=\"0\" y1=\"0\" x2=\"350\" y2=\"350\" stroke=\"#FFC000\" stroke-width=\"2\" />\n\t\t\t\t\t\t\t<line x1=\"350\" y1=\"0\" x2=\"0\" y2=\"350\" stroke=\"#FFC000\" stroke-width=\"2\" />\n\t\t\t\t\t\t\t<line x1=\"0\" y1=\"175\" x2=\"175\" y2=\"0\" stroke=\"#FFC000\" stroke-width=\"2\" />\n\t\t\t\t\t\t\t<line x1=\"175\" y1=\"350\" x2=\"350\" y2=\"175\" stroke=\"#FFC000\" stroke-width=\"2\" />\n\t\t\t\t\t\t\t<line x1=\"175\" y1=\"0\" x2=\"350\" y2=\"175\" stroke=\"#FFC000\" stroke-width=\"2\" />\n\t\t\t\t\t\t\t<line x1=\"0\" y1=\"175\" x2=\"175\" y2=\"350\" stroke=\"#FFC000\" stroke-width=\"2\" /><text id=\"sign1\" x=\"173\" y=\"165\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">7</text><text id=\"planet1\" x=\"173\" y=\"87.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan dx=\"4\">Ve</tspan></text><text id=\"sign2\" x=\"86.5\" y=\"78.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">8</text><text id=\"planet2\" x=\"85.5\" y=\"31.818181818182\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan dx=\"4\">Ke</tspan></text><text id=\"sign3\" x=\"69.5\" y=\"93.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">9</text><text id=\"planet3\" x=\"31.818181818182\" y=\"93.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan x=\"31.818181818182\" dy=\"0\">Mo</tspan></text><text id=\"sign4\" x=\"157\" y=\"181\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">10</text><text id=\"planet4\" x=\"85.5\" y=\"175\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan dx=\"4\">Ju</tspan><tspan dx=\"4\">Sa</tspan></text><text id=\"sign5\" x=\"69.5\" y=\"268.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">11</text><text id=\"planet5\" x=\"31.818181818182\" y=\"268.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan x=\"31.818181818182\" dy=\"0\">Muntha</tspan></text><text id=\"sign6\" x=\"86.5\" y=\"282.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">12</text><text id=\"planet6\" x=\"85.5\" y=\"338\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"></text><text id=\"sign7\" x=\"175\" y=\"197\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">1</text><text id=\"planet7\" x=\"175\" y=\"268.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"></text><text id=\"sign8\" x=\"260.5\" y=\"282.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">2</text><text id=\"planet8\" x=\"262.5\" y=\"338\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan dx=\"4\">Ra</tspan></text><text id=\"sign9\" x=\"278.5\" y=\"268.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">3</text><text id=\"planet9\" x=\"318.18181818182\" y=\"268.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"></text><text id=\"sign10\" x=\"190\" y=\"181\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">4</text><text id=\"planet10\" x=\"262.5\" y=\"175\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"></text><text id=\"sign11\" x=\"276.5\" y=\"93.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">5</text><text id=\"planet11\" x=\"318.18181818182\" y=\"93.5\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan x=\"318.18181818182\" dy=\"0\">Su</tspan></text><text id=\"sign12\" x=\"260.5\" y=\"78.5\" font-size=\"15\" fill=\"red\" stroke=\"none\" text-anchor=\"middle\">6</text><text id=\"planet12\" x=\"262.5\" y=\"31.818181818182\" font-size=\"15\" fill=\"blue\" stroke=\"none\" text-anchor=\"middle\"><tspan dx=\"4\">Ma</tspan><tspan dx=\"4\">Me</tspan></text></svg>"
    }
  }
}
JSON
Params Data Type Description Example
day int Date of Birth 15
month int Month of Birth 9
year int Year of Birth 1994
hour int Hour of Birth 12
min int Min of Birth 30
lat float Latitude of Birth Place 28.6139
lon float Longitude of Birth Place 77.1025
tzone float Timezone of Birth Place 5.5
varshaphal_year String Varshaphal Year 2021
chartStyle String Chart Style (north,south,east) east
bgClr String Image BG Color (Default:#FFFEC9) #FFFEC9
lineClr String Line Color (Default:#FFC000) #FFC000
signClr String Sign Color (Default:red) red
planetClr String Planet Color (Default:blue) blue
chartSize int Image Size (Default:350) 350
lineWidth int Line Width (Default:2) 2
fontSize int Font Size (Default:15) 15
signSymbol String Show Sign Symbol Y/N (Default:N) N
planetSymbol String Show Planets Symbol Y/N (Default:N) N
# cURL Request Example

curl --location --request POST 'https://json.apireports.com/v1/varshaphal_year_chart_image' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5,
    "varshaphal_year": 2021,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 350,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N"
}'

# END
cURL
/* JavaScript Request Example */

var apiEndPoint = "varshaphal_year_chart_image";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5,
    "varshaphal_year": 2021,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 350,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N"
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;

var request = $.ajax({
	url: url,
	method: "POST",
	dataType:'json',
	headers: {
		"Authorization": "Basic " + btoa(userId+":"+apiKey),
		"Accept-Language": "en",
		"Content-Type":'application/json'
	},
	data:JSON.stringify(data)
});

request.then(
	function(resp){
		console.log(resp);
	},
	function(err){
		console.log(err);
	}
);

/* END */
JavaScript
<?php
/* PHP Request Example */

$apiEndPoint = "varshaphal_year_chart_image";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
	"day" => 15,
	"month" => 9,
	"year" => 1994,
	"hour" => 12,
	"min" => 30,
	"lat" => 28.6139,
	"lon" => 77.1025,
	"tzone" => 5.5,
	"varshaphal_year" => 2021,
	"chartStyle" => "east",
	"bgClr" => "#FFFEC9",
	"lineClr" => "#FFC000",
	"signClr" => "red",
	"planetClr" => "blue",
	"chartSize" => 350,
	"lineWidth" => 2,
	"fontSize" => 15,
	"signSymbol" => "N",
	"planetSymbol" => "N"
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;

/* END */
PHP
# Python Request Example

import requests
import json

apiEndPoint = "varshaphal_year_chart_image";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint

data = json.dumps({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5,
    "varshaphal_year": 2021,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 350,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N"
})

headers = {
  'Accept-Language': 'en',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)

print(response.text)

# END
Python
/* NodeJS Request Example */

var request = require('request');
var apiEndPoint = "varshaphal_year_chart_image";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
  'method': 'POST',
  'url': url,
  'auth': {
    'user': userId,
    'password': apiKey
  },
  'headers': {
    'Accept-Language': 'en',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5,
    "varshaphal_year": 2021,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 350,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N"
})
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

/* END */
NodeJS

Astrology API Reports in News