About BirthChart API

This Api Provides Astrological Birth Chart According to North Indian vedic Astrology.Developers May Build Astrological chats or choose to display their the data according to their need.
            API End Point
            https://kundali.mainak.tech/api/getchart,
                Method: POST,
                headers: {
                        'Content-Type': 'application/json'
                         },
                body: " {
                        "username": "XXXX",
                        "password": "XXXXXXXX",
                        "date": "1994-10-13",
                        "time": "14:30",
                        "latitude": 22.5744,
                        "longitude": 88.3629
                        }"
To use this Api you need a UserName And Password which will be provided by the tech Team.For development Purpose this Api is free to use for Students.For Comercial use it is chargeable at a minimum of 500Rs per month.To get a Valid UserName and password just contact the tech team by clicking the Contact button at bottom of the Page. This Api provides the Following Data:
            Sample Response:
            {
  "planets": {
    "Rahu_Mean": {
      "nakshatra": "Punarvasu",
      "house_longitude": 29.037755399749514,
      "pada": 3,
      "house": "Gemini",
      "longitude": 89.03775539974951
    },
    "Saturn": {
      "nakshatra": "Krittika",
      "house_longitude": 6.529854316355284,
      "pada": 3,
      "house": "Taurus",
      "longitude": 36.529854316355284
    },
    "Moon": {
      "nakshatra": "Purva Bhadrapada",
      "house_longitude": 0.28874774254654767,
      "pada": 4,
      "house": "Pisces",
      "longitude": 330.28874774254655
    },
    "Uranus": {
      "nakshatra": "Dhanishtha",
      "house_longitude": 24.723943942018366,
      "pada": 1,
      "house": "Capricorn",
      "longitude": 294.72394394201837
    },
    "Sun": {
      "nakshatra": "Magha",
      "house_longitude": 1.2765258454883934,
      "pada": 1,
      "house": "Leo",
      "longitude": 121.2765258454884
    },
    "Ketu_True": {
      "nakshatra": "Uttara Ashadha",
      "house_longitude": 0.45839832724266216,
      "pada": 2,
      "house": "Capricorn",
      "longitude": 270.45839832724266
    },
    "ASC": {
      "nakshatra": "Rohini",
      "house_longitude": 20.938769732845024,
      "pada": 4,
      "house": "Taurus",
      "longitude": 50.938769732845024
    },
    "Mars": {
      "nakshatra": "Ashlesha",
      "house_longitude": 16.908885911700835,
      "pada": 1,
      "house": "Cancer",
      "longitude": 106.90888591170084
    },
    "Neptune": {
      "nakshatra": "Shravana",
      "house_longitude": 10.766584541046484,
      "pada": 1,
      "house": "Capricorn",
      "longitude": 280.7665845410465
    },
    "Jupiter": {
      "nakshatra": "Rohini",
      "house_longitude": 14.513039958266162,
      "pada": 2,
      "house": "Taurus",
      "longitude": 44.51303995826616
    },
    "Ketu_Mean": {
      "nakshatra": "Uttara Ashadha",
      "house_longitude": 29.03775539974953,
      "pada": 1,
      "house": "Sagittarius",
      "longitude": 269.0377553997495
    },
    "Venus": {
      "nakshatra": "Purva Phalguni",
      "house_longitude": 19.71217569087213,
      "pada": 2,
      "house": "Leo",
      "longitude": 139.71217569087213
    },
    "Mercury": {
      "nakshatra": "Ashlesha",
      "house_longitude": 26.78583274134381,
      "pada": 4,
      "house": "Cancer",
      "longitude": 116.78583274134381
    },
    "Rahu_True": {
      "nakshatra": "Punarvasu",
      "house_longitude": 0.45839832724264795,
      "pada": 4,
      "house": "Cancer",
      "longitude": 90.45839832724265
    }
  },
  "svg": "<\svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 800 461.8802154\">\n<\path d=\"M200,115.4700538, 400,0, 600,115.4700538, 400,230.9401077z\"/><\path d=\"M0,0, 400,0, 200,115.4700538z\"/><\path d=\"M0,0, 200,115.4700538, 0,230.9401077z\"/><\path d=\"M0,230.9401077, 200,115.4700538, 400,230.9401077, 200,346.4101615z\"/><\path d=\"M0,230.9401077, 200,346.4101615, 0,461.8802154z\"/><\path d=\"M0,461.8802154, 200,346.4101615, 400,461.8802154z\"/><\path d=\"M200,346.4101615, 400,230.9401077, 600,346.4101615, 400,461.8802154z\"/><\path d=\"M400,461.8802154, 600,346.4101615, 800,461.8802154z\"/><\path d=\"M600,346.4101615, 800,230.9401077, 800,461.8802154z\"/><\path d=\"M400,230.9401077, 600,115.4700538, 800,230.9401077, 600,346.4101615z\"/><\path d=\"M600,115.4700538, 800 0, 800,230.9401077z\"/><\path d=\"M400,0, 800 0, 600,115.4700538z\"/><\text x=\"360\" y=\"40\" font-size=\"14\" fill=\"black\">2 \<\/text><\text x=\"330\" y=\"56\" font-size=\"12\" fill=\"blue\">ASC Ju Sa\<\/text><\text x=\"50\" y=\"20\" font-size=\"14\" fill=\"black\">3 \<\/text><\text x=\"80\" y=\"36\" font-size=\"12\" fill=\"blue\">Ra_M<\/text><\text x=\"10\" y=\"80\" font-size=\"14\" fill=\"black\">4 <\/text><\text x=\"10\" y=\"96\" font-size=\"12\" fill=\"blue\">Me Ma Ra<\/text><\text x=\"160\" y=\"160\" font-size=\"14\" fill=\"black\">5 <\/text><\text x=\"130\" y=\"176\" font-size=\"12\" fill=\"blue\">Su Ve<\/text><\text x=\"10\" y=\"310\" font-size=\"14\" fill=\"black\">6 <\/text><\text x=\"160\" y=\"390\" font-size=\"14\" fill=\"black\">7 <\/text><\text x=\"360\" y=\"275\" font-size=\"14\" fill=\"black\">8 <\/text><\text x=\"560\" y=\"390\" font-size=\"14\" fill=\"black\">9 <\/text><\text x=\"530\" y=\"406\" font-size=\"12\" fill=\"blue\">Ke_M<\text><\text x=\"700\" y=\"310\" font-size=\"14\" fill=\"black\">10 <\/text><\text x=\"670\" y=\"326\" font-size=\"12\" fill=\"blue\">Uranus Neptune Ke<\/text><\text x=\"556\" y=\"160\" font-size=\"14\" fill=\"black\">11 <\text><\text x=\"696\" y=\"80\" font-size=\"14\" fill=\"black\">12 <\/text><\text x=\"666\" y=\"96\" font-size=\"12\" fill=\"blue\">Mo<\/text><\text x=\"450\" y=\"20\" font-size=\"14\" fill=\"black\">1 <\/text><\/svg>",
  "ayanamsa": 23.865822467692396
}
        
Create a div container in your html page with id="svg-container". Fetch data from api add the following javascript code to your javascript.js file linked with the html
                
    function addSVG(response){
    const svgContent = jsonData.svg;
    console.log(svgContent);
    document.getElementById('svg-container').innerHTML = svgContent;
  }

  addSVG(jsonData);
                
            

Contact Us