Accessing Tiddlyhost data as JSON - tiddlyhost/tiddlyhost-com GitHub Wiki

It's possible to access Tiddler data in a Tiddlyhost site in JSON format.

Here are some example urls to show how it works. To use these with your site, replace "simon" with your real site name.

The url params can be combined as required to pick out the data you want.

You can also access tiddlers by their name in ".tid" format, which is a text format sometimes used to represent Tiddlers. For example:

Using curl and jq you can extract just the fields you want, for example this lists the titles of all tiddlers tagged with (just) "Hello":

$ curl -s https://simon.tiddlyhost.com/tiddlers.json | jq '.[] | select(.tags=="Hello") | .title'
"About Tiddlyhost"
"Experiments & demos"
"The original site #1"