Skip to content
96Astro API

By topic / JavaScript and Node.js

Integrations

Astrology API for JavaScript and Node.js

Install `@96astro/api` from npm. It has no dependencies, ships ESM and CommonJS with type declarations, and runs anywhere `fetch` does: Node.js 18+, Bun, Deno, and serverless and edge functions. Call it from server code so the key stays secret.

Ideas

What people build with it

  • An Express or NestJS astrology service

  • A serverless endpoint for a mobile app

  • A Discord or Slack horoscope bot

Reference

The endpoints

Try them in API testing

Code

Your first call

Install
npm install @96astro/api
TypeScript
import { Astro96Client } from "@96astro/api";

const astro = new Astro96Client({ apiKey: process.env.ASTRO_API_KEY });
const { data } = await astro.vedicCharts.planetPositions({
  datetime: "1990-10-18T14:30:00",
  timezone: "Asia/Kolkata",
  latitude: 28.6139,
  longitude: 77.209,
});

FAQ

Common questions

Can I call it from the browser?

Not with a secret key. Call it from your server, or use a widget, which calls the API with a publishable key limited to your website.

Guides

Read next

Start building with JavaScript and Node.js

5,000 free trial credits. No card required.

Send us feedback

What is it about?