The Neocities API is small: four endpoints at https://neocities.org/api/, authenticated with a Bearer API key.
| Endpoint | What it does |
|---|---|
POST /upload |
Multipart upload. The form field name is the remote path, e.g. blog/post.html. It overwrites anything already at that path. |
POST /delete |
Deletes the paths given as filenames[]. Deletes can't be undone, and index.html can't be deleted. |
GET /list |
Every file with its path, size, updated_at and sha1_hash. |
GET /info |
Site metadata. |
You can get your API key from Site Settings or from GET /api/key using basic auth.