Skip to content

n8n

Automate astrology workflows with n8n and Occult API.

HTTP Request Node

Add an HTTP Request node. Set method to POST and URL to https://api.occultapi.com/api/astro/panchanga/.

Authentication

Add header X-API-Key with your key.

Body Parameters

Use JSON body with date_time, latitude, longitude, timezone_as_float, and keys array.

body
{
  "date_time": "2026-09-17T06:00:00+05:30",
  "latitude": 26.9124,
  "longitude": 75.7873,
  "timezone_as_float": 5.5,
  "keys": ["tithi", "nakshatra", "yogam"]
}

Example Workflow

Trigger on webhook → parse input → call Occult API → send result via email or Slack.

n8n-workflow
{
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.occultapi.com/api/astro/panchanga/",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [{ "name": "X-API-Key", "value": "={{$env.OCCULT_API_KEY}}" }]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            { "name": "date_time", "value": "2026-09-17T06:00:00+05:30" },
            { "name": "latitude", "value": "26.9124" },
            { "name": "longitude", "value": "75.7873" }
          ]
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "name": "Occult API Panchang"
    }
  ]
}