Data Conversion

File Size Formatter

Convert bytes to human-readable file size

get/v1/filesizeformatter

Request

  • Base URL: https://api.apiverve.com
  • URL: https://api.apiverve.com/v1/filesizeformatter
  • Auth: API key in header x-api-key

Query parameters

bytesinteger required

Number of bytes to format

unitstring

Specific target unit (optional, auto-selects best unit if not specified)

precisioninteger

Decimal places (0-10)

standardstring

Standard to use: binary (1024) or decimal (1000)

Response

Successful Response

statusstring

status

errorstring

error

dataobject

data

Changes

No recorded changes to this operation across all 1 revision of this API.