Skip to content

Instantly share code, notes, and snippets.

@soderlind
Last active July 15, 2025 07:06
Show Gist options
  • Save soderlind/e6fbf258f783fe1e930cb6d9e688086d to your computer and use it in GitHub Desktop.
Save soderlind/e6fbf258f783fe1e930cb6d9e688086d to your computer and use it in GitHub Desktop.
Prompt creating Plausible Stats Aggregator

prompt

I want to create a script that retrives all stats from all site at my plausible account:

APIs:
   https://plausible.io/docs/sites-api
   https://plausible.io/docs/stats-api

1. Find all sites in my plausible account using the site api
2. Retrieve stats for each site using the stats api
3. Combine all stats into a single data structure
4. Write the combined month to date stats to ./output/month-to-date.csv
5. Write the combined year to date stats to ./output/year-to-date.csv

First, read the requirements carefully.
Then, start with design.md first. Stop there until further instructions.

review

I reviewed design.md, everything looked fine so I asked copilot to:

Start implementing the design.

result

See https://github.com/soderlind/plausible-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment