Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
/ mastodon-stats Public archive

[OUTDATED] Get easily the data from the about page of Mastodon instances.

License

Notifications You must be signed in to change notification settings

Themimitoof/mastodon-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastodon-Stats

Get easily the data from the about page of Mastodon instances.

This API is accessible without installing the server here: https://mastodon-stats.themimitoof.fr

Prerequisites

  • NodeJS

Installation

Clone this repo and install all project dependencies:

npm install

Rename config.js.default to config.js and edit binding informations.

Finaly, start the server with npm start or with node index.js.

If you prefer execute the server in background with automatic reload (of crash), I recommend using pm2 or forever.

API

The server response only with JSON format.

[GET] /

  • Result: Hello message
  • Result example: { code: 200, message: "Hello! Mastodon-stats API are operational :)" }

[GET] /stats?instance=instance_url

  • Result: Return data from /about/more page of specified instance
  • ?instance: give the URL of the instance or the complete URL to the about page of the instance
  • Example: https://masto.themimitoof.fr
  • Example: https://masto.themimitoof.fr/about/more
  • Result example: {"users":576,"messages":1141,"connected_instances":92}

Feedback, suggestions

This repo is totally open to suggestions, merge requests and feedbacks. For that, please open issue.

About

[OUTDATED] Get easily the data from the about page of Mastodon instances.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published