Maas2 is a stateless api for MAAS. Its a simple reorganization of the data available officially by nasa here.
Hosted on Cloudflare Workers.
https://api.maas2.apollorion.com/ - The official MAAS2 endpoint.
/ - Gets the latest from the API.
/$sol - Gets a specific sol.
https://api.maas2.apollorion.com/ - Gets the latest sol.
https://api.maas2.apollorion.com/3322 - Gets sol 3322.
Some sol's have incomplete data, day 2 for example does not have data which will return a 404 http status.
{"status": "sol not found"}
All responses return Content-Type: application/json.
To build, just download the offical MAAS api json to this repo as maas2.json and run main.py.
curl http://cab.inta-csic.es/rems//wp-content/plugins/marsweather-widget/api.php > maas2.jsonpython main.py
Deployment is automated via GitHub Actions on push to main. The worker is deployed using Wrangler.
Required secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID.