zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

(Feature request) API Method to get all notes #3964

Open BeatLink opened 1 year ago

BeatLink commented 1 year ago

Describe feature

Is there a way to get all notes in the system via the backend api?

Additional Information

No response

perfectra1n commented 1 year ago

You can export the root note (therefore all notes) using a Python wrapper like pytrilium or trilium-py. You can also use cURL:

curl --location 'https://<yourtrilium>/etapi/notes/root/export?format=html' \
--header 'Accept: application/zip' \
--header 'Authorization: <yourapikey>' \
--output output.zip