API to generate random fake data

A simple API to generate random data such as companies and persons. It is open to the public. No API key required. No registration required.

Available endpoints

/companies

Parameters

/persons

Parameters

/numbers

Parameters

List all endpoints


fetch('https://www.javaniceday.com/frandom/api/')
    .then((response) => response.json())
    .then((json) => console.log(json));
Output

{
    companies: [
        {
            endpoint: "/frandom/api/companies",
            description: "Companies from US"
        },
        {
            endpoint: "/frandom/api/companies?countryCode=mx&quantity=5",
            description: "Companies from MX"
        }
    ],
    persons: [
        {
            endpoint: "/frandom/api/persons",
            description: "A person from US"
        },
        {
            endpoint: "/frandom/api/persons?countryCode=mx&quantity=5",
            description: "A person from MX"
        }
    ],
    numbers: [
        {
            endpoint: "/frandom/api/numbers",
            description: "A person from US"
        },
        {
            endpoint: "/frandom/api/numbers?min=0&max=700&quantity=5",
            description: "Random numbers between two numbers"
        }
    ]
}

Companies


fetch('https://www.javaniceday.com/frandom/api/companies')
    .then((response) => response.json())
    .then((json) => console.log(json));
Output

[
    {
        code: "us",
        name: "Caroll",
        type: "Inc",
        displayName: "Caroll Inc"
    },
    {
        code: "us",
        name: "Caroll",
        type: "Inc",
        displayName: "Caroll Inc"
    },
    {
        code: "us",
        name: "Bartell",
        type: "Capital",
        displayName: "Bartell Capital"
    },
    {
        code: "us",
        name: "Mertz",
        type: "",
        displayName: "Mertz "
    }

]
Fetch 5 companies from MX

fetch('https://www.javaniceday.com/frandom/api/companies?countryCode=mx&quantity=5')
    .then((response) => response.json())
    .then((json) => console.log(json));
Output:

[
    {
        code: "mx",
        name: "Núñez - Ruiz",
        type: "",
        displayName: "Núñez - Ruiz "
    },
    {
        code: "mx",
        name: "Núñez - Ruiz",
        type: "",
        displayName: "Núñez - Ruiz "
    },
    {
        code: "mx",
        name: "Barragán - Tejeda",
        type: "S.L",
        displayName: "Barragán - Tejeda S.L"
    },
    {
        code: "mx",
        name: "Páez - Gamboa",
        type: "S.L",
        displayName: "Páez - Gamboa S.L"
    },
    {
        code: "mx",
        name: "Tafoya",
        type: "S.A",
        displayName: "Tafoya S.A"
    }
]