text
FormatConverts the current value to a plain text string and sets Content-Type to text/plain. If the value is already a string it is emitted as-is; objects and arrays are JSON-serialised.
Syntax
textUse cases
| Use case | Description | URL | |
|---|---|---|---|
| Unwrap a string from JSON | Get a raw image URL string without JSON quotes or wrappers. | https://httpip.es/api/pipe/fetch:https://dog.ceo/api/breeds/image/random|get:message|text | |
| Plain-text count | Return a bare number as plain text without a JSON wrapper. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|count|text | |
| Plain IP address | Extract and serve the raw IP string as plain text. | https://httpip.es/api/pipe/fetch:https://ipapi.co/json|get:ip|text | |
| Serialise an object to text | Emit a JSON object as a plain-text string (JSON-serialised) for logging. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts/1|pick:id,title|text |