Skip to main content
POST
/
generic
/
data
/
generate
/
airline
Generate synthetic airline data
curl --request POST \
  --url https://apix.spotzee.com/api/ext/generic/data/generate/airline \
  --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 allowNumerics=false \
  --data allowVisuallySimilarCharacters=false \
  --data aircraftType=widebody \
  --data addLeadingZeros=false \
  --data length=3 \
  --data lengthMin=2 \
  --data lengthMax=4
{
  "status": "success",
  "data": {
    "airlines": [
      {
        "method": "profile",
        "value": "KIFRWE",
        "airline": {
          "name": "American Airlines",
          "iataCode": "AA"
        },
        "airplane": {
          "name": "Airbus A321neo",
          "iataTypeCode": "32Q"
        },
        "airport": {
          "name": "Dallas Fort Worth International Airport",
          "iataCode": "DFW"
        },
        "aircraftType": "widebody",
        "flightNumber": "0425",
        "flightCode": "AA0425",
        "recordLocator": "KIFRWE",
        "seat": "42K",
        "allowNumerics": true,
        "addLeadingZeros": true,
        "length": 3
      }
    ],
    "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 airline 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>

Airline generation method. Defaults to profile.

Available options:
profile,
aircraftType,
airline,
airplane,
airport,
flightNumber,
recordLocator,
seat
Example:

"profile"

allowNumerics
enum<string>

Allow numeric characters in generated record locators.

Available options:
true,
false
Example:

"false"

allowVisuallySimilarCharacters
enum<string>

Allow visually similar characters in generated record locators.

Available options:
true,
false
Example:

"false"

aircraftType
enum<string>

Aircraft type for seat output.

Available options:
narrowbody,
regional,
widebody
Example:

"widebody"

addLeadingZeros
enum<string>

Pad generated flight numbers up to four digits.

Available options:
true,
false
Example:

"false"

length
string

Exact flight-number digit count. Range: 1-4.

Pattern: ^[1-9]\d*$
Example:

"3"

lengthMin
string

Minimum flight-number digit count. Range: 1-4.

Pattern: ^[1-9]\d*$
Example:

"2"

lengthMax
string

Maximum flight-number digit count. Range: 1-4.

Pattern: ^[1-9]\d*$
Example:

"4"

Response

Successfully generated airline data

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