ASTROLOGY API REFERENCE DOCUMENTATION

Sudarshan Chakra Image

Get Sudarshan Chakra Image

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

Response Data

{
  "status_code": 200,
  "status": true,
  "data": {
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 510 510\" ><g fill=\"#FFFEC9\"><g stroke=\"#FFC000\" stroke-width=\"2\"><path d=\"M5 5h500v500H5z\"/><path d=\"M55 55h400v400H55z\"/><path d=\"M105 105h300v300H105z\"/><path d=\"M315 315l190 190M5 5l190 189.7m0 120.3L5 505M505 5L315 195\"/><path d=\"M5 195h500M5 315h500\"/><path d=\"M315 505V5M195 505V5\"/></g><g fill-rule=\"evenodd\" fill=\"#FF0000\" stroke=\"#FF0000\" stroke-width=\"1\"><use xlink:href=\"#B\"/><use xlink:href=\"#B\" x=\"-33\"/><use xlink:href=\"#B\" y=\"33\"/><use xlink:href=\"#B\" x=\"-33\" y=\"33\"/><path d=\"M291.6 212.9l-4.5 4.3c-.7.7-1.6 1.1-2.5 1.1h-27.7c-1.4 0-2.9.5-4 1.6s-1.4 2.5-1.4 4v27.4h-25.8v-27.4c0-1.4-.5-2.9-1.6-4s-2.3-1.6-4-1.6h-7.4l4.5 4.3c.7.7 1.1 1.6 1.1 2.5v27.7c0 1.4.5 2.9 1.6 4s2.3 1.6 4 1.6h27.6v25.8h-27.6c-1.4 0-2.9.5-4 1.6s-1.6 2.3-1.6 4v7.4l4.5-4.3c.7-.7 1.6-1.1 2.5-1.1h27.9c1.4 0 2.9-.5 4-1.6s1.6-2.3 1.6-4v-27.6h25.6V286c0 1.4.5 2.9 1.6 4s2.3 1.6 4 1.6h7.4l-4.5-4.3c-.7-.7-1.1-1.6-1.1-2.5v-27.9c0-1.4-.5-2.9-1.6-4s-2.3-1.6-4-1.6h-27.6v-25.6h27.6c1.4 0 2.9-.5 4-1.6s1.6-2.3 1.6-4c-.1 0-.2-7.2-.2-7.2z\"/></g><defs><path id=\"B\" d=\"M275.2 238.4c0 2-1.6 3.6-3.6 3.6s-3.6-1.6-3.6-3.6 1.6-3.6 3.6-3.6 3.6 1.6 3.6 3.6\"/></defs><g font-size=\"13\" fill=\"#FF0000\" stroke=\"none\" text-anchor=\"middle\"><text  x=\"250\" y=\"185\">5</text><text  x=\"250\" y=\"97\">10</text><text  x=\"250\" y=\"48\">8</text><text  x=\"180\" y=\"170\">6</text><text  x=\"115\" y=\"97\">11</text><text  x=\"63\" y=\"48\">9</text><text  x=\"165\" y=\"190\">7</text><text  x=\"90\" y=\"120\">12</text><text  x=\"40\" y=\"70\">10</text><text  x=\"175\" y=\"250\">8</text><text  x=\"90\" y=\"250\">1</text><text  x=\"40\" y=\"250\">12</text><text  x=\"160\" y=\"335\">9</text><text  x=\"90\" y=\"403\">2</text><text  x=\"40\" y=\"453\">12</text><text  x=\"180\" y=\"355\">10</text><text  x=\"115\" y=\"425\">3</text><text  x=\"63\" y=\"475\">1</text><text  x=\"250\" y=\"340\">11</text><text  x=\"250\" y=\"425\">4</text><text  x=\"250\" y=\"475\">2</text><text  x=\"327\" y=\"355\">12</text><text  x=\"395\" y=\"425\">5</text><text  x=\"445\" y=\"475\">3</text><text  x=\"345\" y=\"335\">1</text><text  x=\"417\" y=\"403\">6</text><text  x=\"468\" y=\"453\">4</text><text  x=\"330\" y=\"250\">2</text><text  x=\"417\" y=\"250\">7</text><text  x=\"468\" y=\"250\">6</text><text  x=\"350\" y=\"190\">3</text><text  x=\"417\" y=\"120\">8</text><text  x=\"468\" y=\"70\">6</text><text  x=\"327\" y=\"170\">4</text><text  x=\"395\" y=\"97\">9</text><text  x=\"445\" y=\"48\">7</text></g><g font-size=\"13\" fill=\"#0000ff\" stroke=\"none\" text-anchor=\"middle\"><text  x=\"250\" y=\"130\"><tspan dx=\"4\">Su</tspan></text><text  x=\"250\" y=\"75\"><tspan dx=\"4\">Mo</tspan></text><text  x=\"250\" y=\"30\"><tspan dx=\"4\">Asc</tspan></text><text  x=\"155\" y=\"130\"><tspan dx=\"4\">Me</tspan></text><text  x=\"130\" y=\"75\"><tspan dx=\"4\">Sa</tspan></text><text  x=\"115\" y=\"30\"><tspan dx=\"4\">Mo</tspan></text><text  x=\"120\" y=\"170\"><tspan x=\"120\" dy=\"30\">Ju</tspan><tspan x=\"120\" dy=\"-17\">Ve</tspan><tspan x=\"120\" dy=\"-17\">Ra</tspan></text><text  x=\"20\" y=\"110\"><tspan x=\"20\" dy=\"0\">Sa</tspan></text><text  x=\"140\" y=\"250\"><tspan x=\"140\" dy=\"0\">Asc</tspan></text><text  x=\"70\" y=\"250\"><tspan x=\"70\" dy=\"0\">Ke</tspan></text><text  x=\"155\" y=\"390\"><tspan dx=\"4\">Mo</tspan></text><text  x=\"130\" y=\"445\"><tspan dx=\"4\">Ma</tspan></text><text  x=\"115\" y=\"490\"><tspan dx=\"4\">Ke</tspan></text><text  x=\"250\" y=\"390\"><tspan dx=\"4\">Sa</tspan></text><text  x=\"370\" y=\"445\"><tspan dx=\"4\">Su</tspan></text><text  x=\"400\" y=\"490\"><tspan dx=\"4\">Ma</tspan></text><text  x=\"390\" y=\"350\"><tspan x=\"390\" dy=\"0\">Ke</tspan></text><text  x=\"435\" y=\"380\"><tspan x=\"435\" dy=\"0\">Me</tspan></text><text  x=\"435\" y=\"250\"><tspan x=\"435\" dy=\"30\">Ju</tspan><tspan x=\"435\" dy=\"-17\">Ve</tspan><tspan x=\"435\" dy=\"-17\">Ra</tspan></text><text  x=\"485\" y=\"250\"><tspan x=\"485\" dy=\"0\">Su</tspan></text><text  x=\"390\" y=\"170\"><tspan x=\"390\" dy=\"0\">Ma</tspan></text><text  x=\"435\" y=\"140\"><tspan x=\"435\" dy=\"0\">Asc</tspan></text><text  x=\"485\" y=\"110\"><tspan x=\"485\" dy=\"0\">Me</tspan></text><text  x=\"400\" y=\"30\"><tspan dx=\"4\">Ju</tspan><tspan dx=\"4\">Ve</tspan><tspan dx=\"4\">Ra</tspan></text></g></g></svg>"
  }
}
JSON
Params Data Type Description Example
day int Birth Date 15
month int Birth Month 9
year int Birth Year 1994
hour int Birth Hour 12
min int Birth Min 30
lat float Lat of Birth Place 28.6139
lon float Lon of Birth Place 77.1025
tzone float Timezone of Birth Place 5.5
chartStyle String Chart Style (north,south,east) east
bgClr String Image BG Color #FFFEC9
lineClr String Line Color #FFC000
signClr String Sign Color red
planetClr String Planet Color blue
chartSize int Image Size 500
lineWidth int Line Width 2
fontSize int Font Size (Default:15) 15
signSymbol String Show Sign Symbol (Y/N) N
planetSymbol String Show Planets Symbol (Y/N) N
swastikStatus String Show/Hide Swastik (show/hide) show
swastikClr String Swastik Fill Color red
swastikStrokeClr String Swastik Stroke Color) red
swastikStrokeWidth int Swastik Stroke Width 1
# cURL Request Example

curl --location --request POST 'https://json.apireports.com/v1/sudarshan_chakra' \
-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,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 500,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N",
    "swastikStatus": "show",
    "swastikClr": "red",
    "swastikStrokeClr": "red",
    "swastikStrokeWidth": "1"
}'

# END
cURL
/* JavaScript Request Example */

var apiEndPoint = "sudarshan_chakra";
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,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 500,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N",
    "swastikStatus": "show",
    "swastikClr": "red",
    "swastikStrokeClr": "red",
    "swastikStrokeWidth": "1"
};
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 = "sudarshan_chakra";
$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,
	"chartStyle" => "east",
	"bgClr" => "#FFFEC9",
	"lineClr" => "#FFC000",
	"signClr" => "red",
	"planetClr" => "blue",
	"chartSize" => 500,
	"lineWidth" => 2,
	"fontSize" => 15,
	"signSymbol" => "N",
	"planetSymbol" => "N",
	"swastikStatus" => "show",
	"swastikClr" => "red",
	"swastikStrokeClr" => "red",
	"swastikStrokeWidth" => 1
);
$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 = "sudarshan_chakra";
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,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 500,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N",
    "swastikStatus": "show",
    "swastikClr": "red",
    "swastikStrokeClr": "red",
    "swastikStrokeWidth": "1"
})

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 = "sudarshan_chakra";
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,
    "chartStyle": "east",
    "bgClr": "#FFFEC9",
    "lineClr": "#FFC000",
    "signClr": "red",
    "planetClr": "blue",
    "chartSize": 500,
    "lineWidth": 2,
    "fontSize": 15,
    "signSymbol": "N",
    "planetSymbol": "N",
    "swastikStatus": "show",
    "swastikClr": "red",
    "swastikStrokeClr": "red",
    "swastikStrokeWidth": "1"
})
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

/* END */
NodeJS

Astrology API Reports in News