Skip to content
Protocol primitive

zstd decompress

Decompress a zstd payload.

POSTapi.tikultra.com/v1/crypto/zstd/decompressPrimitive · 2 credits
Upstreamlocal · zstd codecEvery plan

Parameters

NameTypeDescription
data_base64requiredstringThe payload, base64.
e.g. KLUv/QAAoQAAeyJoZWxsbyI6InRpa3VsdHJhIn0=

Pricing

PlanPer callPer 1,000 calls
Starter2 credits$0.23
Growth2 credits$0.16
Scale2 credits$0.12

Response fields

FieldTypeDescription
output_bytesintegerDecoded output bytes value.
decompressedstringDecoded decompressed value.
decompressed_base64stringDecoded decompressed base64 value.
jsonobjectStructured json metadata.
json.hellostringDecoded hello value.

Responses

A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes

import os
from tikultra import TikUltra

with TikUltra(api_key=os.environ["TIKULTRA_KEY"]) as client:
    res = client.request(
        "POST",
        "/v1/crypto/zstd/decompress",
        json_body={
            "data_base64": "KLUv/QAAoQAAeyJoZWxsbyI6InRpa3VsdHJhIn0=",
        },
    )
    print(res.credits_cost, res.data)
{
  "output_bytes": 20,
  "decompressed": "{\"hello\":\"tikultra\"}",
  "decompressed_base64": "eyJoZWxsbyI6InRpa3VsdHJhIn0=",
  "json": {
    "hello": "tikultra"
  }
}
Try it in the playgroundFull reference in the docs

More in Devices, signing & primitives

Ready to build?

Start with 2,500 free credits and test every public endpoint, then pick a plan.