Skip to main content
This script reads the waiting list and saves it to waiting-list.csv. It needs Node.js 18 or later, which has fetch built in. There is nothing to install.
waiting-list.mjs
Run it:

Switch to your group

Change api-demo.scoutworks.app to api.scoutworks.app, and set your key in the environment instead of the code. read -s asks for the key without showing it, so it stays out of your shell history:
Your key needs the waiting-list:read scope.

TypeScript

The OpenAPI file describes every response. Generate types from it with openapi-typescript:
Then type a response like this:

Notes

  • Only in a server or a script. Do not call the API from a web page that other people open. The key would be in the page, and anyone could read it.
  • Fields that may be missing. A field that the key’s scopes do not allow is left out. Use w.parent?.email, not w.parent.email, for the .contacts fields.
  • Other lists. Change /waiting-list and the filters. The API reference lists every endpoint and field.