user@neofetch:~$ curl -I neofetch.dev/api

API Docs

Programmatic access to MOTD generation and discovery. All endpoints return JSON.

GET /php/api.php?action=count

Retrieve the total number of scripts created since the platform launch.

ParameterTypeRequired
actionstringYes (count)
Live Response
{ "click": "Execute" }
GET /php/api.php?action=list

Get a list of the 20 most recently created public scripts.

ParameterTypeRequired
actionstringYes (list)
Live Response
{ "click": "Execute" }
POST /php/api.php?action=generate

Generate a new MOTD script. Requires a JSON body and a valid CSRF token header if called from the web UI.

Request Body (JSON)
{ "ascii": "arch", "theme": "dracula", "fields": ["os", "kernel", "uptime"], "separator": "dashes", "hostname": "user@arch", "message": "Welcome back!" }
FieldTypeDescription
asciistringOne of: arch, tux, ubuntu, debian, etc.
themestringOne of: dracula, nord, synthwave, etc.
layoutstringOne of: classic, reversed, stacked, minimal.
fieldsarrayList of info field IDs.
GET /php/api.php?action=download&id={ID}

Fetch the metadata for a specific script by its ID.

ParameterTypeRequired
actionstringYes (download)
idstringYes (8-12 alphanumeric chars)