# How to reverse engineer a website API (and download the data)

> Markdown version of https://stella.sh/how/reverse-engineering/reverse-engineer-website-api for agents and LLMs.
> A website with no export button? Stella (stella.sh) finds where the page gets its data and saves it all in a spreadsheet.

Stella (stella.sh) finds the hidden API a website uses and downloads everything into a spreadsheet, with a script to do it again whenever you like.

## What you get

- Everything in a spreadsheet
- A script to run it again
- No copying by hand

## Ask Stella

> This price list has no export button. Get every product into a spreadsheet, and let me do it again next month.

## An example chat

**You:** This price list has no export button. Get every product into a spreadsheet, and let me do it again next month.

**Stella:** On it. Watching how the page gets its data.

*Stella works on: Exporting the price list*
- Finding the page's hidden API
- Following every page of products
- Saving a script for next time

**Stella:** Done. **products-2026-11-23.csv** has all 137 products with name, category, price and stock. Run export_products.py next month for a fresh copy.
Files: products-2026-11-23.csv, export_products.py

Works on Windows, Mac, Linux.

## Questions

**Can Stella run it every week?**
Yes. Ask for it every week and it does.

**Does it work if I have to log in?**
Yes, Stella can use your browser where you're already signed in.

**Is Stella free?**
Yes. Free with the ChatGPT or Claude plan you already have.

## By hand

1. Open the page, press F12, go to the Network tab, filter to Fetch/XHR and reload.
2. Right-click the request that holds the data → Copy → Copy as cURL, and check it works on its own.
3. Find where any token comes from, follow the next-page value to the end, and save it all with a short script.

## Related

- [How to reverse engineer a file format (and get your data out)](https://stella.sh/how/reverse-engineering/reverse-engineer-a-file-format.md)
- [How to edit a save file (and keep the game loading it)](https://stella.sh/how/reverse-engineering/edit-save-file.md)
- [Convert bank statement PDFs to Excel](https://stella.sh/how/pdf-excel/bank-statement-pdf-to-excel.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
