Company API

Description

Generate a fake company. 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/company

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 company

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

Success Response

{
    "http_code": 200,
    "http_message": "Ok",
    "message": "Successful execution",
    "payload": {
        "company": {
            "name": "Bruen and Sons",
            "tagline": "Up-sized bandwidth-monitored migration",
            "industry": "mesh end-to-end webservices",
            "website": "http://mraz.com",
            "address": {
                "street": "8487 Darion Ville",
                "postcode": "19723-0130",
                "country": "Venezuela",
                "latitude": 25.212786,
                "longitude": 162.838292
            },
            "founded": "1988-06-05",
            "contact": {
                "email": "huel.vivian@mraz.com",
                "phone": "+13473106517"
            },
            "ceo": {
                "name": "Hassan Zboncak",
                "email": "hassan.zboncak@mraz.com",
                "phone": "+16308707458"
            }
        }
    }
}