Skip to content

Instantly share code, notes, and snippets.

@0xJohnnyGault
Created October 3, 2023 17:48
Show Gist options
  • Save 0xJohnnyGault/a9cd17b742d069fe7d1c9fd884839da7 to your computer and use it in GitHub Desktop.
Save 0xJohnnyGault/a9cd17b742d069fe7d1c9fd884839da7 to your computer and use it in GitHub Desktop.
In the Arena
curl https://api.starsarena.com/trade/users/trending \
--silent \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
-H 'Authorization: Bearer <YOUR TOKEN HERE>' \
| jq '[.users[]] | sort_by(.twitterFollowers) | .[] | {twitterHandle: .twitterHandle, twitterName: .twitterName, twitterFollowers: .twitterFollowers, price: ((.keyPrice|rtrimstr("000000000")|tonumber)/1000000000) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment