---
title: "Planetary API | Cosmic Data Hub"
url: "https://ridwaanhall.com/projects/planetary-api-cosmic-data-hub"
markdown: "https://ridwaanhall.com/projects/planetary-api-cosmic-data-hub.md"
summary: "A RESTful API about the planets of the solar system, with Flask and SQLAlchemy."
---

# Planetary API | Cosmic Data Hub

> A RESTful API about the planets of the solar system, with Flask and SQLAlchemy.

- Category: API
- Status: Completed
- Started: October 14, 2023
- Built with: Flask-Mail, Python, JWT, Flask, SQLAlchemy

## About

### The problem

I wanted to build an API with the parts a real service needs: authentication, data management and notifications, around a dataset that is easy to verify.

### The approach

I built a RESTful API on Flask and SQLAlchemy that serves details on the solar system's planets, secured with JWT and with email through Flask-Mail.

- Planet data: type, home star, mass, radius and distance from Earth.
- JWT-secured registration, login and password recovery.
- Full CRUD for managing records, with email notifications.

### The result

Planetary API is a compact, complete example of an authenticated Flask service.

## Features

- **Planet Data**: Type, star, mass, radius and distance for each planet.
- **JWT Security**: Secure registration, access and account recovery.
- **Data Management**: Full CRUD for keeping records accurate.

## Tags

API, Space, Planets, Solar System, Flask, SQLAlchemy, JWT, Flask-Mail, Python, Education, CRUD, Data

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/planetary-api-cosmic-data-hub
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
