FakeDataFromTemplate endpoint usesHandlebars
templating language.
More info about Handlebars
here
Examples:
Request
&handlebarTemplate = "{{Address.FullAddress}} -- {{Internet.Email}} -- {{Name.FullName}}"
Response
"34773 Barry Inlet, Pagacfurt, Zimbabwe -- Maya.Halvorson33@gmail.com -- Lauren Greenfelder"
Request
&handlebarTemplate = "{{Address.FullAddress}} -- {{Internet.Email}} -- {{Name.FullName}}"&locale=es
Response
"Muelle Lola Tijerina s/n. Puerta 795, Ávila, Egipto -- Horacio.Serna@gmail.com -- José María Rojas "
Template supported values:
Address
Address.ZipCode
- Get a zipcode.Address.City
- Get a city name.Address.StreetAddress
- Get a street address.Address.CityPrefix
- Get a city prefix.Address.CitySuffix
- Get a city suffix.Address.StreetName
- Get a street name.Address.BuildingNumber
- Get a building number.Address.StreetSuffix
- Get a street suffix.Address.SecondaryAddress
- Get a secondary address like ‘Apt. 2’ or ‘Suite 321’.Address.County
- Get a county.Address.Country
- Get a country.Address.FullAddress
- Get a full address like Street, City, Country.Address.CountryCode
- Get a random ISO 3166-1 country code.Address.State
- Get a random state state.Address.StateAbbr
- Get a state abbreviation.Address.Latitude
- Get a Latitude.Address.Longitude
- Get a Longitude.Address.Direction
- Generates a cardinal or ordinal direction. IE: Northwest, South, SW, E.Address.CardinalDirection
- Generates a cardinal direction. IE: North, South, E, W.Address.OrdinalDirection
- Generates an ordinal direction. IE: Northwest, Southeast, SW, NE.Commerce.Department
- Get a random commerce department.Commerce.Price
- Get a random product price.Commerce.Categories
- Get random product categories.Commerce.ProductName
- Get a random product name.Commerce.Color
- Get a random color.Commerce.Product
- Get a random product.Commerce.ProductAdjective
- Random product adjective.Commerce.ProductMaterial
- Random product material.Commerce.Ean8
- Get a random EAN-8 barcode number.Commerce.Ean13
- Get a random EAN-13 barcode number.Company.CompanySuffix
- Get a company suffix. “Inc” and “LLC” etc.Company.CompanyName
- Get a company name.Company.CatchPhrase
- Get a company catch phrase.Company.Bs
- Get a company BS phrase.Database.Column
- Generates a column name.Database.Type
- Generates a column type.Database.Collation
- Generates a collation.Database.Engine
- Generates a storage engine.Date
Date.Past
- Get a DateTime
in the past between refDate
and yearsToGoBack
.Date.PastOffset
- Get a DateTimeOffset
in the past between refDate
and yearsToGoBack
.Date.Soon
- Get a DateTime
that will happen soon.Date.SoonOffset
- Get a DateTimeOffset
that will happen soon.Date.Future
- Get a DateTime
in the future between refDate
and yearsToGoForward
.Date.FutureOffset
- Get a DateTimeOffset
in the future between refDate
and yearsToGoForward
.Date.Between
- Get a random DateTime
between start
and end
.Date.BetweenOffset
- Get a random DateTimeOffset
between start
and end
.Date.Recent
- Get a random DateTime
within the last few days.Date.RecentOffset
- Get a random DateTimeOffset
within the last few days.Date.Timespan
- Get a random TimeSpan
.Date.Month
- Get a random month.Date.Weekday
- Get a random weekday.Finance.Account
- Get an account number. Default length is 8 digits.Finance.AccountName
- Get an account name. Like “savings”, “checking”, “Home Loan” etc…Finance.Amount
- Get a random amount. Default 0 - 1000.Finance.TransactionType
- Get a transaction type: “deposit”, “withdrawal”, “payment”, or “invoice”.Finance.Currency
- Get a random currency.Finance.CreditCardNumber
- Generate a random credit card number with valid Luhn checksum.Finance.CreditCardCvv
- Generate a credit card CVV.Finance.BitcoinAddress
- Generates a random Bitcoin address.Finance.EthereumAddress
- Generate a random Ethereum address.Finance.RoutingNumber
- Generates an ABA routing number with valid check digit.Finance.Bic
- Generates Bank Identifier Code (BIC) code.Finance.Iban
- Generates an International Bank Account Number (IBAN).Images.DataUri
- Get a SVG data URI image with a specific width and height.Images.PicsumUrl
- Get an image from the https://picsum.photos service.Images.PlaceholderUrl
- Get an image from https://placeholder.com service.Images.LoremFlickrUrl
- Get an image from https://loremflickr.com service.Images.LoremPixelUrl
- Creates an image URL with http://lorempixel.com. Note: This service is slow. Consider using PicsumUrl() as a faster alternative.Images.Abstract
- Gets an abstract looking image.Images.Animals
- Gets an image of an animal.Images.Business
- Gets a business looking image.Images.Cats
- Gets a picture of a cat.Images.City
- Gets a city looking image.Images.Food
- Gets an image of food.Images.Nightlife
- Gets an image with city looking nightlife.Images.Fashion
- Gets an image in the fashion category.Images.People
- Gets an image of humans.Images.Nature
- Gets an image of nature.Images.Sports
- Gets an image related to sports.Images.Technics
- Get a technology related image.Images.Transport
- Get a transportation related image.Internet.Avatar
- Generates a legit Internet URL avatar from twitter accounts.Internet.Email
- Generates an email address.Internet.ExampleEmail
- Generates an example email with @example.com.Internet.UserName
- Generates user names.Internet.UserNameUnicode
- Generates a user name preserving Unicode characters.Internet.DomainName
- Generates a random domain name.Internet.DomainWord
- Generates a domain word used for domain names.Internet.DomainSuffix
- Generates a domain name suffix like .com, .net, .orgInternet.Ip
- Gets a random IPv4 address string.Internet.Port
- Generates a random port number.Internet.IpAddress
- Gets a random IPv4 IPAddress type.Internet.IpEndPoint
- Gets a random IPv4 IPEndPoint.Internet.Ipv6
- Generates a random IPv6 address string.Internet.Ipv6Address
- Generate a random IPv6 IPAddress type.Internet.Ipv6EndPoint
- Gets a random IPv6 IPEndPoint.Internet.UserAgent
- Generates a random user agent.Internet.Mac
- Gets a random mac address.Internet.Password
- Generates a random password.Internet.Color
- Gets a random aesthetically pleasing color near the base RGB.Internet.Protocol
- Returns a random protocol. HTTP or HTTPS.Internet.Url
- Generates a random URL.Internet.UrlWithPath
- Get an absolute URL with random path.Internet.UrlRootedPath
- Get a rooted URL path like: /foo/bar. Optionally with file extension.Lorem.Word
- Get a random lorem word.Lorem.Words
- Get an array of random lorem words.Lorem.Letter
- Get a character letter.Lorem.Sentence
- Get a random sentence of specific number of words.Lorem.Sentences
- Get some sentences.Lorem.Paragraph
- Get a paragraph.Lorem.Paragraphs
- Get a specified number of paragraphs.Lorem.Text
- Get random text on a random lorem methods.Lorem.Lines
- Get lines of lorem.Lorem.Slug
- Slugify lorem words.Name.FirstName
- Get a first name. Getting a gender specific name is only supported on locales that support it.Name.LastName
- Get a last name. Getting a gender specific name is only supported on locales that support it.Name.FullName
- Get a full name, concatenation of calling FirstName and LastName.Name.Prefix
- Gets a random prefix for a name.Name.Suffix
- Gets a random suffix for a name.Name.FindName
- Gets a full name.Name.JobTitle
- Gets a random job title.Name.JobDescriptor
- Get a job description.Name.JobArea
- Get a job area expertise.Name.JobType
- Get a type of job.System.FileName
- Get a random file name.System.DirectoryPath
- Get a random directory path (Unix).System.FilePath
- Get a random file path (Unix).System.CommonFileName
- Generates a random file name with a common file extension.System.MimeType
- Get a random mime type.System.CommonFileType
- Returns a commonly used file type.System.CommonFileExt
- Returns a commonly used file extension.System.FileType
- Returns any file type available as mime-type.System.FileExt
- Gets a random extension for the given mime type.System.Semver
- Get a random semver version string.System.Version
- Get a random Version
.System.Exception
- Get a random Exception
with a fake stack trace.System.AndroidId
- Get a random GCM registration ID.System.ApplePushToken
- Get a random Apple Push Token.System.BlackBerryPin
- Get a random BlackBerry Device PIN.Random.Number
- Get an int from 0 to max.Random.Digits
- Get a random sequence of digits.Random.Even
- Returns a random even number.Random.Odd
- Returns a random odd number.Random.Double
- Get a random double, between 0.0 and 1.0.Random.Decimal
- Get a random decimal, between 0.0 and 1.0.Random.Float
- Get a random float, between 0.0 and 1.0.Random.Byte
- Generate a random byte between 0 and 255.Random.Bytes
- Get a random sequence of bytes.Random.SByte
- Generate a random sbyte between -128 and 127.Random.Int
- Generate a random int between MinValue and MaxValue.Random.UInt
- Generate a random uint between MinValue and MaxValue.Random.ULong
- Generate a random ulong between -128 and 127.Random.Long
- Generate a random long between MinValue and MaxValue.Random.Short
- Generate a random short between MinValue and MaxValue.Random.UShort
- Generate a random ushort between MinValue and MaxValue.Random.Char
- Generate a random char between MinValue and MaxValue.Random.Chars
- Generate a random chars between MinValue and MaxValue.Random.String
- Get a string of characters of a specific length.Random.String2
- Get a string of characters with a specific length drawing characters from chars
.Random.Hash
- Return a random hex hash. Default 40 characters, aka SHA-1.Random.Bool
- Get a random boolean.Supported locales:
Locale Code | Language | Locale Code | Language | |
---|---|---|---|---|
af_ZA |
Afrikaans | fr_CH |
French (Switzerland) | |
ar |
Arabic | ge |
Georgian | |
az |
Azerbaijani | hr |
Hrvatski | |
cz |
Czech | id_ID |
Indonesia | |
de |
German | it |
Italian | |
de_AT |
German (Austria) | ja |
Japanese | |
de_CH |
German (Switzerland) | ko |
Korean | |
el |
Greek | lv |
Latvian | |
en |
English | nb_NO |
Norwegian | |
en_AU |
English (Australia) | ne |
Nepalese | |
en_AU_ocker |
English (Australia Ocker) | nl |
Dutch | |
en_BORK |
English (Bork) | nl_BE |
Dutch (Belgium) | |
en_CA |
English (Canada) | pl |
Polish | |
en_GB |
English (Great Britain) | pt_BR |
Portuguese (Brazil) | |
en_IE |
English (Ireland) | pt_PT |
Portuguese (Portugal) | |
en_IND |
English (India) | ro |
Romanian | |
en_NG |
Nigeria (English) | ru |
Russian | |
en_US |
English (United States) | sk |
Slovakian | |
en_ZA |
English (South Africa) | sv |
Swedish | |
es |
Spanish | tr |
Turkish | |
es_MX |
Spanish (Mexico) | uk |
Ukrainian | |
fa |
Farsi | vi |
Vietnamese | |
fi |
Finnish | zh_CN |
Chinese | |
fr |
French | zh_TW |
Chinese (Taiwan) | |
fr_CA |
French (Canada) | zu_ZA |
Zulu (South Africa) |