Visit pricing and choose a plan. API keys are
delivered instantly to your dashboard. Keys begin with am_live_
(production) or am_test_ (sandbox).
Throughout these docs, code samples use YOUR_API_KEY as a placeholder.
Replace it with the key from your dashboard before running any sample.
2. Make your first call
Fetch today's general horoscope for Aries (default Vedic Moon-sign system, English).
Use the language switcher on the right to view the request in your stack — cURL,
JavaScript, Python, PHP, Flutter, Swift, Kotlin, Go, or Ruby.
3. Read the response
All StarsAPI responses follow the envelope format: { "status": 200, "success": true, "data": {...}, "meta": {...} }
on success, or { "success": false, "error": {"code": "...", "message": "..."} } on failure.
See the errors reference for the full list of error codes.
The data object always includes three pre-formatted content fields —
content (HTML), content_text (plain), and
content_paragraphs (array). Pick whichever fits your platform; no parser needed.
4. Add authentication
Pass your API key in the X-Api-Key request header on every call. Bearer
and query-string methods also work but the header method is the recommendation for
production. See authentication
for details.