Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active June 26, 2018 12:10
Show Gist options
  • Save mamemomonga/32d60a1b7489b3f7dd036f7ecfb234ee to your computer and use it in GitHub Desktop.
Save mamemomonga/32d60a1b7489b3f7dd036f7ecfb234ee to your computer and use it in GitHub Desktop.
マストドンで正確なトゥート数を調べる方法

マストドンで正確なトゥート数を調べる方法

  1. ターゲットとなる人の最新のトゥートの「今」とか「xx分前」とかあたりをおす。
  2. URLにくっついてるたくさんの数字を https://mstdn.jp/api/v1/statuses/[番号] にしてブラウザでアクセス。
  3. JSONデータの accountの中のstatuses_countが多分それ

未確認だけどそれっぽい数字がでてるのでたぶんあってる。

コマンド例

curlとjqコマンドが必要です。

$ curl -s https://mstdn.jp/api/v1/statuses/100271044536676901 | jq -r .account.statuses_count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment