Frandom API placeholder

Reading Time: < 1 minutes

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


About the author

Andrés Canavesi
Andrés Canavesi

Software Engineer with 15+ experience in software development, specialized in Salesforce, Java and Node.js.


Related posts


Leave a Reply

%d bloggers like this: