Other apps get the same prices and the same “cheapest option” logic as the main page. Pick a route, run the server if your route needs it, then call it.
| Route | Best for | What you need |
|---|---|---|
| REST API | Any language: mobile apps, back ends, Python, spreadsheets, no-code tools | Stratus server running somewhere |
| JavaScript SDK | Web apps and Node scripts that want answers without a network call | The file stratus-sdk.js |
| Embed widget | Showing the full comparison board inside your own site | Stratus server (to host the page) |
| Raw JSON | Loading the price list into your own database | Nothing: copy it, or call /api/v1/catalog |
stratus-server.js, stratus-sdk.js and index.html in one folder on a machine with Node 18 or newer.node stratus-server.js. It listens on port 8787 and checks prices straight away, then again whenever the app is used and the last check is more than a day old. The footer shows when prices were last checked.http://localhost:8787 to see this page with live prices, or put it behind your own domain.REST: one request answers “what’s the cheapest way to store this much?”
GET /api/v1/cheapest?need=2TB¤cy=GBP GET /api/v1/quote?need=500GB¤cy=EUR&kind=consumer&limit=5 X-API-Key: your-key
Full, always-current docs for every endpoint are at /docs on the Stratus API (Swagger 2.0 spec at /api/v1/swagger.json). If API keys are switched on, send yours in the X-API-Key header.
| Endpoint | Returns | Parameters |
|---|---|---|
/api/v1/quote | Every option that fits, cheapest first | need (e.g. 2TB, 500GB), currency USD/GBP/EUR, kind consumer/object, providers (ids or big4), limit |
/api/v1/cheapest | The single cheapest option | same as quote |
/api/v1/plans | Every tier with monthly, yearly and per-TB price | currency, kind, provider |
/api/v1/providers | Providers, setup steps, badge colours, pricing links | none |
/api/v1/catalog | Everything in one document | none |
/api/v1/status | Which prices are live, when fetched, any errors | none |
Each option comes back with providerName, name, monthly, yearly, perTB, currency, badge, source (live or snapshot), checkedAt and url.
JavaScript SDK: include the file, then ask.
<script src="stratus-sdk.js"></script>
await Stratus.connect('https://your-stratus-server'); // optional: swap in live prices
const best = Stratus.cheapest('2TB', { currency: 'GBP' });
Embed widget: put the page in an iframe and talk to it with messages.
| Message | Direction | What it does |
|---|---|---|
{stratus:'quote', id, need, currency, kind, limit} | to widget | Asks for options; reply is {stratus:'result', id, data} |
{stratus:'plans', id, currency, kind, provider} | to widget | Asks for tiers; same reply shape |
{stratus:'set', need, currency, kind, bigFour} | to widget | Changes what the widget shows |
{stratus:'ready', version} | from widget | Widget has loaded |
{stratus:'select', option} | from widget | The user clicked an option |
{stratus:'error', id, error} | from widget | A request could not be answered |
Add #embed to the page address to show only the price board.
When the page is served by the Stratus server, it uses the server’s live prices, marked live. Elsewhere, including this hosted copy, it uses the snapshot checked on . Each live price must fall within a sensible range of the last known price, or the snapshot is kept.
Google One, Microsoft, Dropbox and Amazon Photos publish no machine-readable prices. To keep them current, point STRATUS_FEED_URL at a small JSON file you maintain.
These use your current currency and storage size from the main page.
One file, no dependencies. Works in the browser and in Node.
Copy the full SDK source (data included):
Run node stratus-server.js (bundled with this release) and call it from any language. CORS is open.
Drop the comparator into a page. Add #embed to the URL to show only the price board.
Every provider and tier in the selected currency, ready to paste into your own data store.