User API

Description

Generate a fake user. This endpoint is very useful for creating test or mocking data. The generated information is completely fabricated but adheres to internationally accepted standards and validation rules.

Endpoint

> GET https://api.jsonrepo.com/v1/compute/generator/user

Headers

Field Description
api_key Required Your API Key

Parameters

None.

Response

A successful request will result in a populated payload field with the expected output. A failed request will result in an error output as detailed in Error Rules with a message detailing the error.

See the examples section for more information.

Request

  • Curl
// Generate a fake user

curl \
https://api.jsonrepo.com/v1/compute/generator/user \
-H "api_key: {YOUR_API_KEY_HERE}" 

Success Response

{
    "http_code": 200,
    "http_message": "Ok",
    "message": "Successful execution",
    "payload": {
        "user": {
            "title": "Mr.",
            "name": "Isidro Lindgren",
            "gender": "male",
            "username": "hudson.sherwood",
            "email": "isidro.lindgren@mclaughlin.info",
            "password": "%S8Lil7eyJl-.20",
            "phone": "+16606936563",
            "address": {
                "street": "626 Schuppe Plain",
                "postcode": "40316-5647",
                "country": "Congo",
                "latitude": -63.993512,
                "longitude": -178.61153
            },
            "date_of_birth": "1985-03-01",
            "age": 39,
            "workplace": "Lubowitz, Wunsch and Kertzmann",
            "job_title": "Telecommunications Equipment Installer",
            "credit_card": {
                "type": "Visa",
                "number": "4539042661251912",
                "name": "Isidro Lindgren",
                "expirationDate": "06/25",
                "issuer": "Daniel Ltd Bank",
                "cvv": 298
            }
        }
    }
}