Fake mock data with fakeJSON

To Nha Notes | May 26, 2022, 10:09 a.m.

https://fakejson.com/

 

Request payload:

payload = {
  "token": "xxx",
  "data": {
    "total_count": "numberInt",
    "clients":{
            "client_code": "stringAlphaNum",
            "member_type": "stringAlphaNum",
            "prefecture": "addressState",
            "city": "addressCity",
            "town_and_number": "addressBuilding",
            "building": "addressBuilding",
            "mail_address": "internetEmail",
            "mobile_mail_address": "internetEmail",
            "allow_notice_mail": "numberBool",
            "name": "personNickname",
            "name_kana": "nameFirst",
            "zip": "addressZipCode",
            "tel": "phoneHome",
            "fax": "phoneHome",
            "updated_at": "date",
            "_repeat": 2
        }
    }
}

Make your first API request using python:

r = requests.post("https://app.fakejson.com/q", json = payload)

 

Response :
{
  "clients": [
    {
      "allow_notice_mail": false,
      "building": "609",
      "city": "Russell",
      "client_code": "zh6w3",
      "fax": "1-616-605-3573",
      "mail_address": "anahi@gmail.com",
      "member_type": "xqzd7",
      "mobile_mail_address": "broad@gmail.com",
      "name": "beauty.waterfall",
      "name_kana": "Emery",
      "prefecture": "Nebraska",
      "tel": "363-298-5605",
      "town_and_number": "27523",
      "updated_at": "2081-04-28",
      "zip": "17455"
    },
    {
      "allow_notice_mail": false,
      "building": "695",
      "city": "Littleton",
      "client_code": "l965e",
      "fax": "1-417-475-5615 x1089",
      "mail_address": "tall@hotmail.com",
      "member_type": "axmok",
      "mobile_mail_address": "jackie@yahoo.com",
      "name": "screamy.snow.42",
      "name_kana": "Serenity",
      "prefecture": "Wisconsin",
      "tel": "317-873-2645 x5850",
      "town_and_number": "081",
      "updated_at": "2007-12-30",
      "zip": "74973"
    }
  ],
  "total_count": 41
}
Document:

https://fakejson.com/documentation