title: API: Retrieve evaluated metadata and content of an existing zettel in various encodings
role: manual
tags: #api #manual #zettelstore
syntax: zmk
back: 00001006000000 00001012000000 00001012053600
backward: 00001006000000 00001012000000 00001012053600 00001012920500
box-number: 1
copyright: (c) 2020-present by Detlef Stern <ds@zettelstore.de>
created: 20210726174524
forward: 00001006050000 00001010040100 00001012050200 00001012920000 00001012920500 00001012920510 00001012920516 00001012920519 00001012920800
lang: en
license: EUPL-1.2-or-later
modified: 20260609123237
published: 20260609123237
visibility: public

The [endpoint](00001012920000) to work with evaluated metadata and content of a specific zettel is `/z/{ID}`, where `{ID}` is a placeholder for the [zettel identifier](00001006050000).

For example, to retrieve some evaluated data about this zettel you are currently viewing in [Sz encoding](00001012920516), just send an HTTP GET request to the endpoint `/z/00001012053500` with the query parameter `enc=sz`.
If successful, the output is a symbolic expression value:

    # curl 'http://127.0.0.1:23123/z/00001012053500?enc=sz'
    (BLOCK (PARA (TEXT "The ") (LINK-ZETTEL () "00001012920000" (TEXT "endpoint")) (TEXT " to work with evaluated metadata and content of a specific zettel is ") (LITERAL-INPUT () "/z/{ID}") (TEXT ", where ") (LITERAL-INPUT () "{ID}") (TEXT " is a placeholder for the ") ...

To select another encoding, you must provide the query parameter `enc=ENCODING`.
Others are &ldquo;[html](00001012920510)&rdquo;, &ldquo;[text](00001012920519)&rdquo;, and some [more](00001012920500).
In addition, you may provide a query parameter `part=PART` to select the relevant [part](00001012920800) of a zettel.

    # curl 'http://127.0.0.1:23123/z/00001012053500?enc=html&part=zettel'
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta content="API: Retrieve evaluated metadata and content of an existing zettel in various encodings" name="title">
    <meta content="manual" name="role">
    <meta content="#api #manual #zettelstore" name="tags">
    <meta content="zmk" name="syntax">
    <meta content="00001006000000 00001012000000 00001012053600" name="back">
    <meta content="00001006000000 00001012000000 00001012053600 00001012920500" name="backward">
    <meta content="1" name="box-number">
    <meta content="(c) 2020-present by Detlef Stern &lt;ds@zettelstore.de&gt;" name="copyright">
    <meta content="20210726174524" name="created">
    <meta content="00001006050000 00001010040100 00001012050200 00001012920000 00001012920500 00001012920510 00001012920516 00001012920519 00001012920800" name="forward">
    <meta content="en" name="lang">
    <meta content="EUPL-1.2-or-later" name="license">
    <meta content="20260605140944" name="modified">
    <meta content="20260605140944" name="published">
    <meta content="public" name="visibility">
    <title>API: Retrieve evaluated metadata and content of an existing zettel in various encodings</title>
    </head>
    <body><h1>API: Retrieve evaluated metadata and content of an existing zettel in various encodings</h1>
    <p>The <a href="00001012920000">endpoint</a> to work with evaluated metadata and content of a specific zettel is <kbd>/z/{ID}</kbd>, where <kbd>{ID}</kbd> is a
    ...

# HTTP Status codes

