Do I need a WordPress plugin to use the astrology API?
No plugin is required. You can integrate the API directly using PHP (via wp_remote_get) or JavaScript (via fetch). This means it works with any WordPress theme — Elementor, Divi, Astra, GeneratePress, or custom. You control exactly what is displayed, where, and how.
Can I use this with WooCommerce to sell personalised reports?
Yes. Many developers use the API to power paid astrology report generation in WooCommerce. A customer purchases a "personalised kundli report" product, fills in their birth details on the thank-you page, and you call our API to generate and deliver a PDF or on-screen reading. We have PDF report endpoints for this exact workflow.
How do I keep my API key secure in WordPress?
Store your API key in wp-config.php or as a WordPress option using the wp_options table (add_option / get_option). Never hard-code it in theme files that might be version-controlled. All API calls should be made server-side (PHP) rather than exposing the key in frontend JavaScript. Only make client-side calls if you implement a WordPress proxy endpoint that calls our API from your PHP backend.
How much will the API cost for a high-traffic WordPress site?
Our natal chart caching means repeat visitors with the same birth details never consume additional API calls — the result is returned from our Supabase cache instantly. For a daily panchang widget showing one result per day, you use 1 call/day per timezone regardless of traffic. The Starter plan (100,000 calls/month) handles most high-traffic WordPress sites comfortably at $49/mo.
Can I show the kundli chart as an image on the page?
Yes. The /horoscope/chart-image endpoint returns a North or South Indian kundli diagram as a base64-encoded SVG or PNG. In PHP: echo base64_decode($response['image']). In JavaScript: embed it directly as an inline SVG or set it as an <img> src with a data URI. The chart renders at any size without pixelation.