Horoscoopweergave
Genereer prachtige SVG- en PNG-horoscoopafbeeldingen.
SVG-horoscopen
Genereer een SVG-geboortehoroscoop met queryparameters:
bash
curl -X GET "https://api.astroapi.cloud/api/chart/image.svg?width=800&height=800&dateTime=1990-06-15T14:30&location.longitude=-0.1278&location.latitude=51.5074&location.timezone=Europe/London" \
-H "X-Api-Key: your-api-key"PNG-horoscopen
Converteer naar PNG-formaat:
bash
curl -X GET "https://api.astroapi.cloud/api/chart/image.png?width=800&height=800&dateTime=1990-06-15T14:30&location.longitude=-0.1278&location.latitude=51.5074&location.timezone=Europe/London" \
-H "X-Api-Key: your-api-key" \
--output chart.pngHoroscooptypes
| Endpoint | Beschrijving |
|---|---|
/api/chart/image.svg | Geboortehoroscoop als SVG |
/api/chart/image.png | Geboortehoroscoop als PNG |
/api/chart/image.svg met transit.* params | Transit bi-wheel horoscoop |
/api/chart/composite.svg | Composiethoroscoop (middelpunten) |
/api/chart/composite.png | Composiethoroscoop als PNG |
Transit bi-wheel horoscoop
Voeg transitparameters toe om een bi-wheel horoscoop te renderen met geboorte (binnenste) en transit (buitenste) wielen:
bash
curl -X GET "https://api.astroapi.cloud/api/chart/image.svg?width=800&height=800&dateTime=1990-06-15T14:30&location.longitude=-0.1278&location.latitude=51.5074&location.timezone=Europe/London&transit.dateTime=2024-01-15T12:00&transit.timezone=Europe/London" \
-H "X-Api-Key: your-api-key"Transitparameters
| Parameter | Verplicht | Beschrijving |
|---|---|---|
transit.dateTime | Ja | Transitdatum/-tijd (YYYY-MM-DDTHH:mm) |
transit.timezone | Ja | Transittijdzone |
transit.longitude | Nee | Transitlocatie lengtegraad (standaard: geboortelocatie) |
transit.latitude | Nee | Transitlocatie breedtegraad (standaard: geboortelocatie) |
Composiethoroscoop
Genereer een composiethoroscoop met middelpunten tussen twee geboortehoroscopen:
bash
curl -X GET "https://api.astroapi.cloud/api/chart/composite.svg?width=800&height=800&person1.dateTime=1990-06-15T14:30&person1.timezone=Europe/London&person1.longitude=-0.1278&person1.latitude=51.5074&person2.dateTime=1988-03-22T09:15&person2.timezone=Europe/Paris&person2.longitude=2.3522&person2.latitude=48.8566" \
-H "X-Api-Key: your-api-key"Queryparameters
Geboortehoroscoop-parameters
| Parameter | Verplicht | Beschrijving |
|---|---|---|
width | Ja | Horoscoopbreedte in pixels |
height | Ja | Horoscoophoogte in pixels |
dateTime | Ja | Geboortedatum/-tijd (YYYY-MM-DDTHH:mm) |
location.longitude | Ja | Geboortelocatie lengtegraad |
location.latitude | Ja | Geboortelocatie breedtegraad |
location.timezone | Ja | Geboortelocatie tijdzone (IANA-formaat) |
Composiethoroscoop-parameters
| Parameter | Verplicht | Beschrijving |
|---|---|---|
width | Ja | Horoscoopbreedte in pixels |
height | Ja | Horoscoophoogte in pixels |
person1.dateTime | Ja | Persoon 1 geboortedatum/-tijd |
person1.timezone | Ja | Persoon 1 tijdzone |
person1.longitude | Ja | Persoon 1 lengtegraad |
person1.latitude | Ja | Persoon 1 breedtegraad |
person2.dateTime | Ja | Persoon 2 geboortedatum/-tijd |
person2.timezone | Ja | Persoon 2 tijdzone |
person2.longitude | Ja | Persoon 2 lengtegraad |
person2.latitude | Ja | Persoon 2 breedtegraad |
Response-headers
Horoscoop-endpoints retourneren de juiste content types:
- SVG:
image/svg+xml - PNG:
image/png
Horoscopen insluiten
Gebruik de geretourneerde SVG rechtstreeks in HTML:
html
<div class="chart-container">
<!-- SVG-inhoud van de API -->
</div>Of gebruik als afbeeldingsbron met data-URL:
html
<img src="data:image/svg+xml;base64,..." alt="Geboortehoroscoop" />Chart2 - Volgende generatie horoscopen
AstroAPI biedt een hooscoopweergave-engine van de volgende generatie met themaondersteuning en animaties.
Endpoints
| Endpoint | Beschrijving | Vereiste module |
|---|---|---|
/api/chart2/natal.svg | Geboortehoroscoop (SVG) | module:natal-calc |
/api/chart2/natal.png | Geboortehoroscoop (PNG) | module:natal-calc |
/api/chart2/transit.svg | Transit bi-wheel (SVG) | module:transit-calc |
/api/chart2/transit.png | Transit bi-wheel (PNG) | module:transit-calc |
/api/chart2/synastry.svg | Synastriehoroscoop (SVG) | module:synastry-calc |
/api/chart2/synastry.png | Synastriehoroscoop (PNG) | module:synastry-calc |
/api/chart2/composite.svg | Composiethoroscoop (SVG) | module:synastry-calc |
/api/chart2/composite.png | Composiethoroscoop (PNG) | module:synastry-calc |
/api/chart2/animated-transit.svg | Geanimeerde transit (SVG) | module:transit-calc |
Basisgebruik
bash
curl -X GET "https://api.astroapi.cloud/api/chart2/natal.svg?width=800&height=800&dateTime=1990-06-15T14:30&location.longitude=4.89&location.latitude=52.37&location.timezone=Europe/Amsterdam&theme=dark" \
-H "X-Api-Key: your-api-key"Themapresets
| Thema | Beschrijving |
|---|---|
default | Klassiek met witte achtergrond en gekleurde elementen |
classic | Traditionele astrologische uitstraling |
dark | Modern donker thema met levendige kleuren |
minimal | Schoon, minder visuele ruis |
colorful | Levendige planeetkleuren |
nextgen | Modern met gebogen aspectlijnen, glow-effecten en verlopen |
vintage | Oud perkament-/manuscriptstijl met sepiatinten |
neon | Cyberpunk met felle neonkleuren op zwart |
pastel | Zachte, rustgevende pastelkleuren |
print | Hoog contrast zwart/wit, geoptimaliseerd voor afdrukken |
Thema-overschrijvingen
Pas individuele thema-eigenschappen aan via queryparameters:
| Parameter | Beschrijving |
|---|---|
theme.background | Achtergrondkleur (hex) |
theme.foreground | Voorgrondkleur (hex) |
theme.strokeOnly | Alleen lijnmodus (true/false) |
theme.symbolScale | Schaalfactor voor symbolen |
theme.showDegrees | Gradenlabels tonen (true/false) |
theme.showHouseNumbers | Huisnummers tonen (true/false) |
theme.showRuler | Liniaal tonen (true/false) |
theme.signBackgroundOpacity | Achtergrondopaciteit van tekens (0-1) |
Synastrie- & composiethoroscopen
bash
curl -X GET "https://api.astroapi.cloud/api/chart2/synastry.svg?width=800&height=800&person1.dateTime=1990-06-15T14:30&person1.timezone=Europe/Amsterdam&person1.longitude=4.89&person1.latitude=52.37&person2.dateTime=1992-03-20T09:15&person2.timezone=Europe/London&person2.longitude=-0.12&person2.latitude=51.50" \
-H "X-Api-Key: your-api-key"Geanimeerde transit
Genereer een geanimeerde SVG die transitprogressie over tijd toont:
bash
curl -X GET "https://api.astroapi.cloud/api/chart2/animated-transit.svg?width=800&height=800&dateTime=1990-06-15T14:30&location.longitude=4.89&location.latitude=52.37&location.timezone=Europe/Amsterdam&transit.dateTime=2025-01-01T12:00&transit.timezone=Europe/Amsterdam&target.dateTime=2025-12-31T23:59&animation.duration=3000" \
-H "X-Api-Key: your-api-key"| Parameter | Beschrijving |
|---|---|
target.dateTime | Einddatum voor animatie |
animation.duration | Animatieduur in milliseconden |
animation.easing | Easing-functie (standaard: easeInOut) |
animation.loop | Animatie herhalen (standaard: false) |