Frandom API placeholder

Mock your backend using a placeholder API that returns random data


Andres Canavesi
Oct 29, 2021
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.
featured image
Frandom it's an Rest API to return random data in JSON format. It's 100% public at this moment and does not require API key to use it.

Access to https://www.javaniceday.com/frandom

List all available 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"
        }
    ]
}
      
    

Get 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 "
    }

]
      
    
See more endpoints and documentation at https://www.javaniceday.com/frandom
Photo by Austin Chan on Unsplash