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/get

Content-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,.... ....
  • 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
  • count

    Number of data count to generate.
    • default - 1
  • sort

    Sort the data block asc according to key.
    • Default - true
  • number

    Generate random number between provided min and max range.
    • Param Format - MIN,MAX
    • Default - 1 to 9
    • Example - 100,999
  • 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
  • word

    Generate random word based on count passed.
    • Param Format - number of word count
    • Default - 1
    • Example - 5
  • text

    Generate random paragraph based on count passed
    • Default - 1
    • Param Format - number of paragraph count
    • Example - 5
  • name

    Generate person name according to gender provided
    • Param Format - gender,type
    • Default - male & full name
    • Allowed - first last , title , full
    • Example - "male,title"
  • email

    Generate fake email id for user
    No option is available for this
  • username

    Generate fake username
    No option is available for this
  • uuid

    Generate random uuid
    No option is available for this
  • bool

    Generate boolean value either true or false
    No option is available for this
  • currency

    Generate random valid currency code like usdGenerate boolean value either true or false
    No option is available for this e.g is USD
  • locale

    Get random locale. e.g is en_GU
  • lang

    Get random language code. e.g be en
  • emoji

    Get random emoji. e.g 😣
  • barcode

    Generate random barcode number in ISBN13 format. e.g 9780114807870
  • html

    Generate random html data based numbers of siblings
    • param format - siblings,width
    • siblings Number of siblings body contains. Default is 1width Number of siblings every elements in body tag can contains. Default is 1
    • e.g <html><head><title>ossimus.</title><\/head><body></body></html>.
  • image

    Generate random Image url of specific width and height and text.
    • Param Format - width,height,textwidth generated image. Default is 640height generated image. Default is 480text to place over image.
    • Default is null
    • e.ghttps://via.placeholder.com/640x480.png/00aacc?text=Xzavie.
  • country

    Get random country name.
    • Param Format - typetype can be short code full
    • Default is full
    • e.g Georgia MNP MQ
  • address

    Get random full address.
    No option available
    • e.g 473 Hessel Spring Suite 731\n Isacport, MI 49797
  • city

    Get random city name.
    No option available
    • output - East Yolandastad.
  • street

    Get random street name.
    No option available
    • e.g 57985 Crona Underpass
  • zipcode

    Get random zip code.
    No option available
    • e.g - 92032-6284.
  • phone

    Get random phone number in e164format.
    No option available
    • e.g.- +18042617019.
  • url

    Get random fake url.
    No option available
    • e.g- http://johnson.info/sequi-magn.
  • file

    Get random file name, mimetype or extension.
    • Param Format - type,
    • type can be mime extension name
    • Default is name
    • e.g - video/vnd.dece.sd nQPK9FMrrt.tsv.
  • geo

    Get random geographical coordinate.
    • Param Format - type,
    • type can be full lat long
    • Default is full
    • e.g - -36.632959,22.252771.
  • color

    Get random color value.
    • Param Format - type,
    • type can be rgb rgba hsl ,name , hex
    • Default is hex
    • e.g - #ff00ff , orange
  • hash

    Get random hash value.
    • Param Format - type,
    • type can be md5 sha1 sha256
    • Default is md5
    • e.g - cfe7e9526e7e9eadb62f9cbf25821e02ff59019e
  • ip

    Get random ip address value.
  • Param Format - type,
  • type can be i4 i6 local
  • Default is i4
  • e.g - 10.0.0.1
  • useragent

    Get random useragent value.
    • Param Format - type,
    • type can be random chrome firefox ,opera , safari , explorer
    • Default is random
    • output - Opera/8.25 (X11; Linux i686; sl-SI) Presto/2.11.333 Version/11.00
  • mac

    Get random mac address. no option available
    • e.g - 2C:5C:6B:26:29:E1
  • domain

    Get random domain name.
    no option available
    • e.g - kuphal.org
  • tld

    Get random top level domain name.
    no option available
    • e.g - com
  • processor

    Get random processor name.
    no option available
    • e.g i686

password

Get random password based on min and max length.

  • Param Format - hash,min,max,
  • hash can be true or false. Default is false
  • min minimum length of password. Default is 6
  • max maximum length of password. Default is 20
  • e.g - b3ab12b7cb9ddd89a8e8d1b596b48f84
  • youtube

    Get youtube url.
    • Param Format - type,
    • type can be short embed iframe default
    • Default is default
    • e.g - youtube.com/cvfdgfg3f43

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)
Javascript
const axios = require('axios');const url = $BASE_URL/fake/get?count=2&unique=id&name=username&email=email&pswd=password,false,10,30&location=country,code;axios.get(url)  .then(response => console.log(response.data))  .catch(error => console.error(error));
Dart
import 'dart:io';import 'package:http/http.dart' as http;void main() async {   final url = Uri.parse('$BASE_URL/fake/get?'+count=2&unique=id&name=username&email=email&pswd=password,false,10,30&location=country,code); final response = await http.get(Uri.parse(url));}
Laravel
use Illuminate\Http\Client\Response;use Illuminate\Support\Facades\Http;$url = '$BASE_URL/fake/get';$response = Http::get($url."?".count=2&unique=id&name=username&email=email&pswd=password,false,10,30&location=country,code);if ($response->successful()) {    $data = $response->json();} else {    $message = $response->json()['message']m;}

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"  },]