plntxt
Dead simple, lightning fast APIs.
API Status
- POST
/api/diff
Compares two text inputs and returns their difference.
Parameters:
a
(required)First text input
b
(required)Second text input
Returns:
A UNIX-style diff between values of "a" and "b".
- GET
/api/html
Fetches HTML content from a specified URL.
Parameters:
url
(required)The URL to fetch HTML from
Returns:
The HTML content of the specified URL as plain text.
- GET
/api/archive
Compares current and archived versions of a webpage.
Parameters:
url
(required)The URL to compare
daysago
(optional)Number of days in the past for the archived version (default: 7)
Returns:
A diff between the current and archived versions of the specified URL.
- GET
/api/url-to-markdown
Converts webpage content to Markdown format.
Parameters:
url
(required)The URL of the webpage to convert
Returns:
The content of the specified URL converted to Markdown.
- POST
/api/diff-pages
Compares the content of two webpages.
Parameters:
a
(required)URL of the first webpage
b
(required)URL of the second webpage
Returns:
A diff between the contents of the two specified URLs.
- GET
/api/encode
Encodes text using various encoding methods.
Parameters:
input
(required)Text to encode
encoder
(optional)Encoding method (supported: base64, hex, url, base32, ascii85, rot13; default: base64)
Returns:
The encoded text.
- GET
/api/decode
Decodes text using various decoding methods.
Parameters:
input
(required)Text to decode
encoder
(optional)Decoding method (supported: base64, hex, url, base32, ascii85, rot13; default: base64)
Returns:
The decoded text.
- POST
/api/compress
Compresses data using various compression methods.
Parameters:
input
(optional)Text data to compress
url
(optional)URL of the file to compress
format
(optional)Compression format (supported: gzip, zlib, lzw, flate, brotli, zstd; default: gzip)
Returns:
The compressed data as base64-encoded string.
- POST
/api/decompress
Decompresses data using various decompression methods.
Parameters:
input
(optional)Base64-encoded compressed data
url
(optional)URL of the compressed file to decompress
format
(optional)Decompression format (supported: gzip, zlib, lzw, flate, brotli, zstd; default: gzip)
Returns:
The decompressed data as plain text.
- GET
/api/hash
Hashes data using various hashing algorithms.
Parameters:
input
(optional)Text data to hash
url
(optional)URL of the file to hash
algorithm
(optional)Hashing algorithm (supported: md5, sha1, sha256, sha512; default: sha256)
Returns:
The hash of the input data as a hexadecimal string.