Skip to main content
POST
/
generic
/
data
/
generate
/
number
Generate synthetic number data
curl --request POST \
  --url https://apix.spotzee.com/api/ext/generic/data/generate/number \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data count=10 \
  --data locale=en \
  --data seed=12345 \
  --data method=profile \
  --data min=10 \
  --data max=100 \
  --data multipleOf=5 \
  --data fractionDigits=2 \
  --data bigIntMin=1000000 \
  --data bigIntMax=9999999 \
  --data bigIntMultipleOf=7
{
  "status": "success",
  "data": {
    "numbers": [
      {
        "method": "profile",
        "value": 57,
        "int": 57,
        "float": 23.947,
        "binary": "10110101",
        "hex": "af17",
        "octal": "4766",
        "bigInt": "431433",
        "romanNumeral": "XVII"
      }
    ],
    "generated": 1,
    "locale": "en",
    "seed": 12345,
    "method": "profile"
  },
  "performance": {
    "generationTime": 2,
    "itemsGenerated": 1,
    "locale": "en"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
count
string

Number of number records to generate (1-100). Passed as string but must be numeric.

Pattern: ^[1-9]\d?$|^100$
Example:

"10"

locale
string

Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)

Example:

"en"

seed
string

Seed for deterministic generation. Same seed produces same results.

Example:

"12345"

method
enum<string>

Number generation method. Defaults to profile.

Available options:
profile,
bigInt,
binary,
float,
hex,
int,
octal,
romanNumeral
Example:

"profile"

min
string

Minimum generated number for supported scalar methods.

Pattern: ^-?(?:\d+|\d*\.\d+)$
Example:

"10"

max
string

Maximum generated number for supported scalar methods.

Pattern: ^-?(?:\d+|\d*\.\d+)$
Example:

"100"

multipleOf
string

Positive multiple for integer or float output.

Pattern: ^-?(?:\d+|\d*\.\d+)$
Example:

"5"

fractionDigits
string

Maximum decimal places for float output. Range: 0-10.

Pattern: ^\d+$
Example:

"2"

bigIntMin
string

Minimum generated BigInt value as an integer string.

Pattern: ^-?\d{1,16}$
Example:

"1000000"

bigIntMax
string

Maximum generated BigInt value as an integer string.

Pattern: ^-?\d{1,16}$
Example:

"9999999"

bigIntMultipleOf
string

Positive BigInt multiple as an integer string.

Pattern: ^-?\d{1,16}$
Example:

"7"

Response

Successfully generated number data

status
enum<string>
required
Available options:
success
data
object
required
performance
object