This api route don't require any authentication or token and can be used anywhere
Fake Data Generator
Introduction
Generate fake data for you api or app development process. Support almost every data types
including name
phone
credit card
and others more.
Endpoint
Post | Get
  https://api.oyyi.xyz/v1/fake/getContent-Type: application/json
Parameters
Pass field name along with data type and other custom options to get fake data.
Parameter Format type
field_name = data_type,option1,option2,....
field_name2 = data_type,option1,option2,.... ....
field_name = data_type,option1,option2,....
field_name2 = data_type,option1,option2,.... ....
id
Generate unique id for each data block.- Param format -
type,min,format
- Allowed type -
auto or uuid
- Min value - optional value. It is starting integer value for auto increment. Default is
1
- Format - optional value. like
prefix-#-suffix
.#
will be replaced by id. - Default -
auto
- Param format -
count
Number of data count to generate.- default -
1
- default -
sort
Sort the data block asc according to key.- Default -
true
- Default -
number
Generate random number between provided min and max range.- Param Format -
MIN
,MAX
- Default -
1 to 9
- Example - 100,999
- Param Format -
float
Generate random decimal value with given min and max range with given decimal point.- Param Format -
MIN
,MAX
,no. of decimal point
- Default -
0 to 9
- Example - 100,400,3
- Param Format -
word
Generate random word based on count passed.- Param Format -
number of word count
- Default -
1
- Example -
5
- Param Format -
text
Generate random paragraph based on count passed- Default -
1
- Param Format -
number of paragraph count
- Example - 5
- Default -
name
Generate person name according to gender provided- Param Format -
gender,type
- Default -
male
&full name
- Allowed -
first
last
,title
,full
- Example - "male,title"
- Param Format -
email
Generate fake email id for user
No option is available for thisusername
Generate fake username
No option is available for thisuuid
Generate random uuid
No option is available for thisbool
Generate boolean value either true or false
No option is available for thiscurrency
Generate random valid currency code like usdGenerate boolean value either true or false
No option is available for this e.g isUSD
locale
Get random locale. e.g isen_GU
lang
Get random language code. e.gbe
en
emoji
Get random emoji. e.g😣
barcode
Generate random barcode number in ISBN13 format. e.g9780114807870
html
Generate random html data based numbers of siblings- param format -
siblings
,width
siblings
Number of siblings body contains. Default is1
width
Number of siblings every elements in body tag can contains. Default is1
- e.g
<html><head><title>ossimus.</title><\/head><body></body></html>
.
- param format -
image
Generate random Image url of specific width and height and text.- Param Format -
width
,height
,text
width
generated image. Default is640
height
generated image. Default is480
text
to place over image. - Default is
null
- e.g
https://via.placeholder.com/640x480.png/00aacc?text=Xzavie
.
- Param Format -
country
Get random country name.- Param Format -
type
type
can beshort
code
full
- Default is
full
- e.g
Georgia
MNP
MQ
- Param Format -
address
Get random full address.
No option available- e.g
473 Hessel Spring Suite 731\n Isacport, MI 49797
- e.g
city
Get random city name.
No option available- output -
East Yolandastad
.
- output -
street
Get random street name.
No option available- e.g
57985 Crona Underpass
- e.g
zipcode
Get random zip code.
No option available- e.g -
92032-6284
.
- e.g -
phone
Get random phone number in e164format.
No option available- e.g.-
+18042617019
.
- e.g.-
url
Get random fake url.
No option available- e.g-
http://johnson.info/sequi-magn
.
- e.g-
file
Get random file name, mimetype or extension.- Param Format -
type
, type
can bemime
extension
name
- Default is
name
- e.g -
video/vnd.dece.sd
nQPK9FMrrt.tsv
.
- Param Format -
geo
Get random geographical coordinate.- Param Format -
type
, type
can befull
lat
long
- Default is
full
- e.g -
-36.632959,22.252771
.
- Param Format -
color
Get random color value.- Param Format -
type
, type
can bergb
rgba
hsl
,name
,hex
- Default is
hex
- e.g -
#ff00ff
,orange
- Param Format -
hash
Get random hash value.- Param Format -
type
, type
can bemd5
sha1
sha256
- Default is
md5
- e.g -
cfe7e9526e7e9eadb62f9cbf25821e02ff59019e
- Param Format -
ip
Get random ip address value.- Param Format -
type
, type
can bei4
i6
local
- Default is
i4
- e.g -
10.0.0.1
useragent
Get random useragent value.- Param Format -
type
, type
can berandom
chrome
firefox
,opera
,safari
,explorer
- Default is
random
- output -
Opera/8.25 (X11; Linux i686; sl-SI) Presto/2.11.333 Version/11.00
- Param Format -
mac
Get random mac address. no option available- e.g -
2C:5C:6B:26:29:E1
- e.g -
domain
Get random domain name.
no option available- e.g -
kuphal.org
- e.g -
tld
Get random top level domain name.
no option available- e.g -
com
- e.g -
processor
Get random processor name.
no option available- e.g
i686
- e.g
password
Get random password based on min and max length.
- Param Format -
hash,min,max
, hash
can betrue
orfalse
. Default isfalse
min
minimum length of password. Default is6
max
maximum length of password. Default is20
- e.g -
b3ab12b7cb9ddd89a8e8d1b596b48f84
youtube
Get youtube url.- Param Format -
type
, type
can beshort
embed
iframe
default
- Default is
default
- e.g -
youtube.com/cvfdgfg3f43
- Param Format -
Example
Python
import requestsurl = $BASE_URL/fake/get?count=2&unique=id&name=username&email=email&pswd=password,false,10,30&location=country,coderesponse = requests.get(url)print(response.text)
Response
Default
[ { "unique": "1", "location": "SE", "email": "marcel.ebert@example.org", "pswd": "gL6VU}}m4}S@\"NGyh{", "name": "rosella.kuhlman" }, { "unique": "2", "location": "KW", "email": "herman.miguel@example.com", "pswd": "K2m_MB:g50Be{-}DJufs$XyU", "name": "stoltenberg.josiane" },]
Table of Contents