Skip to content
96Astro API

By topic / Flutter and mobile

Integrations

Astrology API for Flutter, Android and iOS apps

A mobile app should never hold the secret key. The app sends the birth details to your backend or a serverless function, which adds the key and calls the API, then returns the JSON for your screens. Flutter uses `package:http` (or our `astro96_api` package in Dart server code); Android uses OkHttp, Ktor or Retrofit; iOS uses URLSession.

Ideas

What people build with it

  • A Flutter horoscope app

  • Kundli screens in an Android matrimony app

  • Daily panchang notifications

Reference

The endpoints

Try them in API testing

Code

Your first call

Flutter (package:http)
final res = await http.post(
  Uri.parse('https://your-backend.example.com/api/chart'),
  headers: {'Content-Type': 'application/json'},
  body: jsonEncode({'datetime': '1990-10-18T14:30:00', 'timezone': 'Asia/Kolkata', 'latitude': 28.6139, 'longitude': 77.209}),
);
final chart = jsonDecode(res.body);

FAQ

Common questions

Is there a Dart SDK?

Yes: astro96_api on pub.dev (dart pub add astro96_api or flutter pub add astro96_api). Use it in your backend or other server-side Dart, never inside the shipped app, because the app must not hold the key; the app itself can call your backend with package:http.

Guides

Read next

Start building with Flutter and mobile

5,000 free trial credits. No card required.

Send us feedback

What is it about?