Property Types
This guide provides comprehensive information about the various property types you can set for each property of a model. These models are used to generate random data for API responses based on the types set for each model property.
Address Property Types
Building Number: Generates a random building number.
Samples: 101, 202, 303
City: Generates a random city name.
Samples: New York, London, Tokyo
City Name: Generates a random city name (specific naming convention).
Samples: Paris, Berlin, Madrid
Country: Generates a random country name.
Samples: USA, Canada, UK
Country Code: Generates a random country code.
Samples: US, CA, GB
County: Generates a random county name.
Samples: Los Angeles County, Cook County, Harris County
Latitude: Generates a random latitude coordinate.
Samples: 34.0522, 40.7128, 51.5074
Longitude: Generates a random longitude coordinate.
Samples: -118.2437, -74.0060, -0.1278
State: Generates a random state name.
Samples: California, Texas, New York
State Abbreviation: Generates a random state abbreviation.
Samples: CA, TX, NY
Street: Generates a random street name.
Samples: Main St, Second St, Elm St
Street Address: Generates a random street address.
Samples: 123 Main St, 456 Elm St, 789 Oak St
Time Zone: Generates a random time zone.
Samples: EST, CST, PST
Zip Code: Generates a random zip code.
Samples: 10001, 90001, 73301
Animal Property Types
Bear: Generates a random bear species.
Samples: Grizzly Bear, Polar Bear, Black Bear
Bird: Generates a random bird species.
Samples: Sparrow, Eagle, Parrot
Cat: Generates a random cat breed.
Samples: Siamese, Persian, Maine Coon
Cetacean: Generates a random cetacean species.
Samples: Blue Whale, Dolphin, Orca
Cow: Generates a random cow breed.
Samples: Holstein, Angus, Jersey
Crocodilia: Generates a random crocodilia species.
Samples: Crocodile, Alligator, Caiman
Dog: Generates a random dog breed.
Samples: Labrador, German Shepherd, Bulldog
Fish: Generates a random fish species.
Samples: Salmon, Goldfish, Tuna
Horse: Generates a random horse breed.
Samples: Arabian, Thoroughbred, Clydesdale
Insect: Generates a random insect species.
Samples: Butterfly, Ant, Bee
Lion: Generates a random lion species.
Samples: African Lion, Asiatic Lion, White Lion
Rabbit: Generates a random rabbit breed.
Samples: Netherland Dwarf, Angora, Lionhead
Rodent: Generates a random rodent species.
Samples: Mouse, Rat, Squirrel
Snake: Generates a random snake species.
Samples: Python, Rattlesnake, Cobra
Color Property Types
Human Color: Generates a random human skin color.
Samples: Peach, Olive, Ivory
RGB Color: Generates a random RGB color.
Samples: 255,0,0; 0,255,0; 0,0,255
Commerce Property Types
Department: Generates a random department name.
Samples: Electronics, Clothing, Home & Garden
Price: Generates a random price.
Samples: $19.99, $99.50, $249.00
Product: Generates a random product name.
Samples: Smartphone, Sneakers, Coffee Maker
Product Description: Generates a random product description.
Samples: High-resolution camera, Lightweight and comfortable, Brews in under 5 minutes
Product Name: Generates a random product name.
Samples: GalaxyX, Runner's Choice, MorningBrew
Company Property Types
Company Name: Generates a random company name.
Samples: Globex Corp, Initech, Umbrella Corporation
Catch Phrase: Generates a random company catchphrase.
Samples: Innovate strategic solutions, Empower seamless markets, Drive sustainable growth
Company Suffix: Generates a random company suffix.
Samples: Inc, LLC, Ltd
Database Property Types
Column: Generates a random database column name.
Samples: user_id, email_address, phone_number
Type: Generates a random database column type.
Samples: VARCHAR(255), INT, BOOLEAN
Collation: Generates a random database collation.
Samples: utf8_general_ci, latin1_swedish_ci, utf8_unicode_ci
Engine: Generates a random database engine.
Samples: InnoDB, MyISAM, MEMORY
Datatype Property Types
Boolean: Generates a random boolean value.
Samples: true, false
Null: Generates a null value.
Samples: null
Datetime: Generates a random datetime.
Samples: 2023-01-01T00:00:00, 2023-12-25T18:30:00, 2023-07-04T12:00:00
Float: Generates a random float value.
Samples: 3.14, 0.001, 123.456
Hexadecimal: Generates a random hexadecimal value.
Samples: #1a2b3c, #ff0044, #00cc99
JSON: Generates a random JSON object.
Samples: {"key": "value"}, {"id": 1, "name": "John"}, ["one", "two", "three"]
Number: Generates a random number.
Samples: 42, 100, 2023
String: Generates a random string.
Samples: Hello, World, Faker
UUID: Generates a random UUID.
Samples: 123e4567-e89b-12d3-a456-426614174000, 123e4567-e89b-12d3-a456-426614174001, 123e4567-e89b-12d3-a456-426614174002
Date Property Types
Past Date: Generates a random past date.
Samples: 2000-01-01, 1980-05-15, 1995-12-20
Future Date: Generates a random future date.
Samples: 2050-01-01, 2040-08-25, 2060-11-30
Recent Date: Generates a random recent date.
Samples: 2024-01-01, 2024-03-15, 2024-04-20
Soon Date: Generates a random soon date.
Samples: 2024-12-25, 2024-01-01, 2024-11-11
Month: Generates a random month name.
Samples: January, July, December
Weekday: Generates a random weekday name.
Samples: Monday, Friday, Sunday
Finance Property Types
Account: Generates a random account number.
Samples: 123456789, 987654321, 112233445
Account Name: Generates a random account name.
Samples: Savings Account, Checking Account, Business Account
Mask: Generates a random account mask.
Samples: 1234, ****, 5678
Amount: Generates a random amount.
Samples: $100.00, $250.50, $5000.00
BIC: Generates a random BIC code.
Samples: NEDSZAJJXXX, CITIUS33XXX, DEUTDEFFXXX
Bitcoin Address: Generates a random Bitcoin address.
Samples: 1BoatSLRHtKNngkdXEeobR76b53LETtpyT, 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy, 3Cbq7aT1tY8kMxWLbitaG7yT6bPbKChq64
Currency Code: Generates a random currency code.
Samples: USD, EUR, GBP
Currency Name: Generates a random currency name.
Samples: Dollar, Euro, Pound
Currency Symbol: Generates a random currency symbol.
Samples: $, €, £
Credit Card CVV: Generates a random credit card CVV.
Samples: 123, 456, 789
Credit Card Issuer: Generates a random credit card issuer.
Samples: Visa, MasterCard, American Express
Credit Card Number: Generates a random credit card number.
Samples: 4111111111111111, 5500000000000004, 340000000000009
Ethereum Address: Generates a random Ethereum address.
Samples: 0x27b1fdb04752bbc536007a920d24acb045561c26, 0x4e83362442b8d1bec281594cea3050c8eb01311c, 0x529084c0460e64dde4cb8a92b20ea16a3004a987
IBAN: Generates a random IBAN code.
Samples: DE89370400440532013000, GB82WEST12345698765432, FR7630006000011234567890189
Litecoin Address: Generates a random Litecoin address.
Samples: LZpSK9BcYPmF4YWgqMp9ABNpF6BCPEEYKw, Lc6YgT8ArbK1Q4Eda3m4Ss9uR7gLmTfj2M, LaHM6LWJ711vp3uUep4rwXKwJ4bYfFZ5H8
PIN: Generates a random PIN number.
Samples: 1234, 9876, 4567
Routing Number: Generates a random routing number.
Samples: 011000015, 021000021, 121000358
Transaction Description: Generates a random transaction description.
Samples: Payment for invoice #123, Transfer to savings account, Refund for product #456
Transaction Type: Generates a random transaction type.
Samples: Deposit, Withdrawal, Transfer
Image Property Types
Abstract Image: Generates a random abstract image description.
Samples: Colorful patterns, Geometric shapes, Fluid textures
Animals Image: Generates a random animals image description.
Samples: Lion in the wild, Butterflies on flowers, Herd of elephants
Avatar: Generates a random avatar description.
Samples: Cartoon character, Abstract face, Animal avatar
Business Image: Generates a random business image description.
Samples: Corporate meeting, Office building, Business handshake
Cats Image: Generates a random cats image description.
Samples: Sleeping kitten, Playful cat, Angry cat
City Image: Generates a random city image description.
Samples: Skyline at night, Busy street, Urban park
Data Uri: Generates a random data URI.
Samples: Encoded image data, Base64 image string, Embedded graphic
Fashion Image: Generates a random fashion image description.
Samples: Runway model, Fashion accessories, High fashion shoot
Food Image: Generates a random food image description.
Samples: Gourmet meal, Fresh fruits, Desserts
Image: Generates a random image description.
Samples: Scenic landscape, Portrait photo, Abstract art
Image Url: Generates a random image URL.
Samples: https://example.com/photo.jpg, https://imagesite.com/image.png, https://mypics.org/beautiful.jpg
Nature Image: Generates a random nature image description.
Samples: Mountain range, Forest trail, Ocean sunset
Nightlife Image: Generates a random nightlife image description.
Samples: City nightlife scene, Nightclub, Concert event
People Image: Generates a random people image description.
Samples: Group of friends, Portrait of a woman, Man in a crowd
Sports Image: Generates a random sports image description.
Samples: Soccer match, Basketball game, Marathon runners
Technics Image: Generates a random technics image description.
Samples: Modern gadgets, Engineering marvels, Technological devices
Transport Image: Generates a random transport image description.
Samples: Busy subway station, Airport runway, Highway traffic
Internet Property Types
Avatar: Generates a random avatar URL.
Samples: https://example.com/avatar1.jpg, https://avatar.com/pic2.png, https://imagesite.org/avatar3.svg
Color: Generates a random hex color code.
Samples: #FF5733, #33D4FF, #F033FF
Domain Name: Generates a random domain name.
Samples: example.com, mysite.net, webworld.org
Email: Generates a random email address.
Samples: user@example.com, contact@mysite.net, info@webworld.org
Emoji: Generates a random emoji.
Samples: 😀, 👍, 🌟
Example Email: Generates a random example email address.
Samples: john@example.com, jane.doe@example.net, info@example.org
HTTP Method: Generates a random HTTP method.
Samples: GET, POST, PUT
HTTP Status Code: Generates a random HTTP status code.
Samples: 200, 404, 500
IP: Generates a random IP address.
Samples: 192.168.1.1, 10.0.0.2, 172.16.0.3
IPv4: Generates a random IPv4 address.
Samples: 192.168.1.10, 10.0.0.20, 172.16.0.30
IPv6: Generates a random IPv6 address.
Samples: 2001:0db8:85a3:0000:0000:8a2e:0370:7334, fe80:0000:0000:0000:0202:b3ff:fe1e:8329, 2001:db8:0:1:1:1:1:1
MAC: Generates a random MAC address.
Samples: 00:1B:44:11:3A:B7, 00:0a:e6:3e:fd:e1, 00:0d:93:13:51:da
Password: Generates a random password.
Samples: Pass1234, Secr3t!, MyP@ssw0rd
Port: Generates a random port number.
Samples: 8080, 3000, 443
Protocol: Generates a random protocol.
Samples: http, https, ftp
URL: Generates a random URL.
Samples: https://www.example.com, http://mysite.net, https://webworld.org
User Agent: Generates a random user agent string.
Samples: Mozilla/5.0, Chrome/90.0, Safari/605.1.15
User Name: Generates a random user name.
Samples: john_doe, sarah.connor, neo.matrix
Lorem Property Types
Lines: Generates random lines of lorem ipsum text.
Samples: Lorem ipsum dolor sit amet, Consectetur adipiscing elit, Sed do eiusmod tempor incididunt
Paragraph: Generates a random lorem ipsum paragraph.
Samples: Lorem ipsum dolor sit amet, consectetur adipiscing elit..., Pellentesque habitant morbi tristique senectus et netus..., Nam libero tempore, cum soluta nobis est eligendi optio...
Paragraphs: Generates random lorem ipsum paragraphs.
Samples: Lorem ipsum dolor sit amet...\n\nSed ut perspiciatis unde..., At vero eos et accusamus et iusto odio...\n\nEt harum quidem rerum..., Temporibus autem quibusdam et aut officiis debitis...\n\nNeque porro quisquam est...
Sentence: Generates a random lorem ipsum sentence.
Samples: Lorem ipsum dolor sit amet, consectetur adipiscing elit., Etiam sit amet orci eget eros faucibus tincidunt., Duis aute irure dolor in reprehenderit in voluptate.
Sentences: Generates random lorem ipsum sentences.
Samples: Lorem ipsum dolor sit amet, consectetur. Ut enim ad minim veniam., Sed ut perspiciatis unde omnis iste. Natus error sit voluptatem., Duis aute irure dolor in reprehenderit. Velit esse cillum dolore.
Slug: Generates a random slug.
Samples: lorem-ipsum, dolor-sit-amet, consectetur-adipiscing
Text: Generates random lorem ipsum text.
Samples: Lorem ipsum dolor sit amet, consectetur adipiscing elit., Vestibulum nec odio ipsum. Suspendisse cursus malesuada facilisis., Donec nec justo eget felis facilisis fermentum.
Word: Generates a random lorem ipsum word.
Samples: lorem, ipsum, dolor
Words: Generates random lorem ipsum words.
Samples: lorem ipsum, dolor sit amet, consectetur adipiscing
Music Property Types
Music Genre: Generates a random music genre.
Samples: Rock, Jazz, Classical
Song Name: Generates a random song name.
Samples: Yesterday, Imagine, Bohemian Rhapsody
Pattern Property Types
Character Sequence: Generates data based on a character sequence pattern.
Rule:
Use
#
for a random digit.Use
@
for a random lower case letter.Use
^
for a random upper case letter.Use
*
for a random digit or letter.Use
$
for a random digit or lower case letter.Use
%
for a random digit or upper case letter.Any other character will be included verbatim.
Example:
###-**-$$$$
(e.g., 123-ab-cdef)
Regular Expression: Generates data based on a regular expression pattern.
Example:
^0\d{9}$
(e.g., 0123456789)
Person Property Types
First Name: Generates a random first name.
Samples: John, Emma, Mohamed
Full Name: Generates a random full name.
Samples: John Doe, Emma Watson, Mohamed Ali
Gender: Generates a random gender.
Samples: Male, Female, Non-binary
Job Area: Generates a random job area.
Samples: Management, Technical, Administrative
Job Descriptor: Generates a random job descriptor.
Samples: Senior, Lead, Junior
Job Title: Generates a random job title.
Samples: Software Engineer, Project Manager, Graphic Designer
Job Type: Generates a random job type.
Samples: Part-time, Full-time, Contract
Last Name: Generates a random last name.
Samples: Smith, Johnson, Williams
Middle Name: Generates a random middle name.
Samples: James, Elizabeth, Abdul
Prefix: Generates a random prefix.
Samples: Mr., Ms., Dr.
Sex: Generates a random sex.
Samples: Male, Female, Other
Sex Type: Generates a random sex type.
Samples: Masculine, Feminine, Other
Suffix: Generates a random suffix.
Samples: Jr., Sr., III
Phone Property Types
IMEI: Generates a random IMEI number.
Samples: 490154203237518, 356938035643809, 990000862471854
Phone Number: Generates a random phone number.
Samples: +1-202-555-0173, +44-7911-123456, +61-412-345-678
Static Property Types
Static Data: Returns static data entered by the user.
Examples: Your custom static data
System Property Types
File Extension: Generates a random file extension.
Samples: pdf, txt, jpg
File Name: Generates a random file name.
Samples: document.pdf, image.jpg, spreadsheet.xls
File Type: Generates a random file type.
Samples: text, image, video
File Path: Generates a random file path.
Samples: /home/user/documents/report.pdf, /var/www/html/index.html, C:\Program Files\app\app.exe
Cron: Generates a random cron expression.
Samples: * * * * *, 0 12 * * MON, */15 * * * *
Directory Path: Generates a random directory path.
Samples: /home/user/documents, /var/log, C:\Program Files
MIME Type: Generates a random MIME type.
Samples: application/pdf, image/jpeg, text/plain
Vehicle Property Types
Bicycle: Generates a random bicycle type.
Samples: Mountain bike, Road bike, Hybrid bike
Vehicle Color: Generates a random vehicle color.
Samples: Red, Blue, Black
Fuel: Generates a random fuel type.
Samples: Petrol, Diesel, Electric
Vehicle Manufacturer: Generates a random vehicle manufacturer.
Samples: Toyota, Ford, BMW
Vehicle Model: Generates a random vehicle model.
Samples: Camry, F-150, 3 Series
Vehicle Type: Generates a random vehicle type.
Samples: Sedan, SUV, Truck
Vehicle: Generates a random vehicle type.
Samples: Car, Motorbike, Truck
Vehicle VIN: Generates a random vehicle VIN.
Samples: 1HGCM82633A004352, 1FTRW08L21KE34589, JH4KA96583N012345
Vehicle VRM: Generates a random vehicle VRM.
Samples: YD58GTA, MF61CVJ, RX62HSK
This is an overview of the various property types supported by MockAPI. These property types allow you to generate realistic and diverse data for your API responses.
Last updated