/api/astro/birth-panchanga-effects/1 créditLectures du panchanga de naissance (vos éléments)
La signification traditionnelle de chacun des éléments de votre panchanga de naissance. Indiquez la tithi, le karana, le yoga, le vaara, la hora et le paksha de votre naissance : vous obtenez la lecture traditionnelle de chacun en un seul appel, au lieu de six appels avec six noms de clés que personne ne devinerait. Ces lectures sont recherchées par NOM, et non calculées à partir d’un thème : utilisez /api/astro/panchang/ pour savoir dans quelle tithi et quel karana tombe une naissance, puis passez ces noms ici. /api/astro/panchanga-elements/ liste toutes les orthographes acceptées.
https://api.occultapi.com/api/astro/birth-panchanga-effects/Authentification
Envoyez votre clé dans l’en-tête X-API-Key. Une clé est un identifiant côté serveur : ne la placez jamais dans du JavaScript exécuté par le navigateur ni dans une application mobile.
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonChamps de la requête
| Champ | Type | Obligatoire | Remarques |
|---|---|---|---|
| hora | string | facultatif | |
| karana | string | facultatif | |
| keys | array | facultatif | Les calculs à renvoyer, sous forme de liste de noms. Consultez le tableau des clés de cet endpoint ; un nom non reconnu fait rejeter toute la requête. Un appel coûte un crédit quel que soit le nombre de clés demandées : demandez donc tout ce dont vous avez besoin en une seule fois plutôt que de faire plusieurs appels. |
| paksha | string | facultatif | |
| tithi | string | facultatif | |
| vaara | string | facultatif | |
| yoga | string | facultatif |
Exemple de requête
curl -X POST https://api.occultapi.com/api/astro/birth-panchanga-effects/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tithi":"pratipada","karana":"bava","yoga":"vishkumbha","vaara":"sunday","hora":"surya","paksha":"shukla"}'Réponse
{
"data": {
"elements": [
{
"element": "tithi",
"is": "Lunar day",
"value": "pratipada",
"effect": "These individuals face critical early life periods but if they navigate these successfully, they develop remarkable strength and luminosity. They tend to be highly enterprising, righteous, and virtuous in their conduct."
},
{
"element": "karana",
"is": "Half of a lunar day",
"value": "bava",
"effect": "Individuals who may have strong desires but are charitable, wealthy, and happy. They often hold leadership positions and may work with children or in youthful endeavors, displaying courage."
},
{
"element": "yoga",
"is": "Sun-Moon combination",
"value": "vishkumbha",
"effect": "Though traditionally considered challenging for longevity, this yoga brings lovely appearance and fondness for family, home, and spouse. These individuals are typically wealthy, skillful in undertakings, and victorious over enemies. They maintain good physical appearance, enjoy independence, and are generally fortunate with family-oriented nature and leadership skills."
},
{
"element": "vaara",
"is": "Weekday",
"value": "sunday",
"effect": "Individuals born on Sunday typically possess a steady and determined nature with a fearless approach to life. They often have a naturally authoritative disposition and demonstrate skillfulness in their endeavors. These individuals tend to be honorable and maintain high standards of purity in their conduct. They may have a tendency toward bilious temperament and often exhibit leadership qualities with a noble bearing."
},
{
"element": "hora",
"is": "Planetary hour",
"value": "surya",
"effect": "Periods of dedicated effort and perseverance, with experiences that build character through challenges."
},
{
"element": "paksha",
"is": "Lunar fortnight",
"value": "shukla",
"effect": "Individuals born during the bright half of the lunar month are typically blessed with longevity and strong family connections. They often become protectors and supporters of many people, displaying charitable and friendly natures. These individuals tend to be honorable and may experience influence from their spouse. They are usually blessed with children and material wealth, following righteous paths and showing mercy to others."
}
]
},
"status": 200,
"is_error": false,
"message": "successful"
}Réponse capturée lors d’un vrai appel, avec exactement la requête ci-dessus. Les résultats se trouvent dans data.
Erreurs
Les erreurs du contrôle de clé et de crédits renvoient { "error": "…", "message": "<code>", "is_error": true }. Affichez error à vos utilisateurs et basez votre logique sur message. Voir la référence des erreurs.