Skip to main content
POST
Generate Random User Profiles

Request contract

  • Method and path: POST /apis/v1/api-ninjas/generate-random-user
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/generate-random-user
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
count
integer
default:10

Number of random user profiles to generate. Must be between 1 and 30. Default: 10

Required range: 1 <= x <= 30
Examples:

1

5

10

exclude
enum<string>[]

Profile fields to exclude from the response. All other fields are returned.

Available options:
id,
username,
password,
email,
uuid,
locale,
name,
first_name,
last_name,
full_name,
prefix,
suffix,
phone,
cell,
company_email,
street_address,
city,
state,
postal_code,
country,
address,
latitude,
longitude,
timezone,
dob,
age,
gender,
job,
company,
ssn,
credit_card,
credit_card_provider,
iban,
ipv4,
ipv6,
mac_address,
user_agent,
url,
domain,
md5,
sha1,
sha256,
picture,
avatar
Examples:
fields
enum<string>[]

Profile fields to include in the response. Only these fields are returned.

Available options:
id,
username,
password,
email,
uuid,
locale,
name,
first_name,
last_name,
full_name,
prefix,
suffix,
phone,
cell,
company_email,
street_address,
city,
state,
postal_code,
country,
address,
latitude,
longitude,
timezone,
dob,
age,
gender,
job,
company,
ssn,
credit_card,
credit_card_provider,
iban,
ipv4,
ipv6,
mac_address,
user_agent,
url,
domain,
md5,
sha1,
sha256,
picture,
avatar
Examples:
gender
enum<string>

Gender filter for random user generation

Available options:
male,
female,
nonbinary,
any
Examples:

"male"

"female"

"nonbinary"

"any"

locale
string

Locale for generating localized data such as names, addresses, and phone numbers. Use standard locale codes like 'en_US' (English - United States), 'de_DE' (German - Germany), 'fr_FR' (French - France), 'es_ES' (Spanish - Spain), etc. Default: 'en_US'

Examples:

"en_US"

"de_DE"

"fr_FR"

"es_ES"

max_age
integer

Maximum age for generated users. Must be between 0 and 1000. Default: 100

Required range: 0 <= x <= 1000
Examples:

50

65

100

min_age
integer

Minimum age for generated users. Must be between 0 and 1000. Default: 0

Required range: 0 <= x <= 1000
Examples:

18

25

30

seed
string

Seed value for reproducible random data generation. Using the same seed value will always produce the same set of random users, which is useful for testing or creating consistent demo data.

Examples:

"my-test-seed-123"

"demo-data-v1"

Response

Tool result data

address
string
age
integer
avatar
string
cell
string
city
string
company
string
company_email
string
country
string
credit_card
string
credit_card_provider
string
dob
string
domain
string
email
string
first_name
string
full_name
string
gender
string
iban
string
id
string
ipv4
string
ipv6
string
job
string
last_name
string
latitude
number
locale
string
longitude
number
mac_address
string
md5
string
name
string
password
string
phone
string
picture
string
postal_code
string
prefix
string
sha1
string
sha256
string
ssn
string
state
string
street_address
string
suffix
string
timezone
string
url
string
user_agent
string
username
string
uuid
string