Public Number Generation API

Use the same generation logic that powers the website through simple public GET endpoints.

Rate limit: 1 request/second/IP with short burst tolerance to prevent abuse.

Random Number Generator

Generate random numbers with min and max controls, optional exclusions, and multi-number output.

Endpoint: /api/random-number

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Integer / Decimal Generator

Switch between random integer generator and random decimal generator with decimal place control.

Endpoint: /api/random-integer-decimal

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Even / Odd Number Generator

Generate random even numbers, odd numbers, or both within your chosen range.

Endpoint: /api/random-even-odd

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Prime Number Generator

Generate random prime numbers in a range with support for multiple results.

Endpoint: /api/random-prime

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Negative / Positive Number Generator

Generate negative-only, positive-only, or mixed random values in a range.

Endpoint: /api/random-negative-positive

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Lottery Number Generator

Generate lottery tickets using presets for Powerball, Mega Millions, EuroMillions, and more.

Endpoint: /api/lottery-number

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random PIN / Code Generator

Create random PINs and alphanumeric access codes with custom length and quantity.

Endpoint: /api/random-pin-code

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Timestamp Generator

Generate random timestamps between a start and end date in ISO, Unix seconds, or milliseconds.

Endpoint: /api/random-timestamp

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Number Sequence Generator

Build arithmetic or geometric sequences with configurable start value, growth, and length.

Endpoint: /api/number-sequence

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Fibonacci Generator

Generate Fibonacci numbers from any starting index with adjustable sequence length.

Endpoint: /api/fibonacci

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Custom Step Number Generator

Generate random numbers that follow a custom increment pattern such as +3 or +7 steps.

Endpoint: /api/custom-step-number

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Phone Number Generator

Generate random phone numbers for major country formats like US, UK, Germany, France, and Australia.

Endpoint: /api/random-phone-number

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}

Random Credit Card Number Generator

Generate valid-format test card numbers using Visa, Mastercard, Amex, Discover, or mixed issuer presets.

Endpoint: /api/random-credit-card

Common query params

  • min, max, quantity
  • Tool-specific: mode, decimalPlaces, exclusions

Response shape

{
  "success": true,
  "data": { "values": [42] },
  "meta": { "timestamp": "2026-01-01T00:00:00.000Z" }
}