Skip to content

Instantly share code, notes, and snippets.

@gutocarvalho
Created April 11, 2023 13:25
Show Gist options
  • Save gutocarvalho/19f14e5ae7913859c55cdca59ac2577a to your computer and use it in GitHub Desktop.
Save gutocarvalho/19f14e5ae7913859c55cdca59ac2577a to your computer and use it in GitHub Desktop.
#!/bin/bash
INSTANCE_URL="bolha.us/api/v1/instance"
echo "Getting the number of users from Mastodon..."
count=$(curl -s $INSTANCE_URL | jq '.stats.user_count')
echo "Number of users: $count"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment