DUMMY JSON API

No Signup, No Hassle!

Need dummy JSON data for testing? Get it instantly with our secure Fake REST API—no signup, no setup, just fast and reliable data! Safe, hassle-free, and backend-free, our API delivers structured placeholder data in seconds.

Handling over 50 million requests monthly with ease

API Illustration

Our Tools

Read Docs

Below are examples using Fetch API , but you can use DummyJSON API with any programming language.

Copy and paste the code into your browser console to test DummyJSON API instantly.

Base URL:

https://dummy-json-api-sigma.vercel.app

Authentication:

No API key or authentication required.

Endpoints:

1. Get All Users

Request:

const response = await fetch("https://dummy-json-api-sigma.vercel.app/api/dummy");
if (!response.ok) {
    throw new Error(`HTTP error! Status: ${response.status}`);
}
const users = await response.json();
                                               

Responses:


                    

2.Send Data (POST)

Request:


const response = await fetch('https://dummy-json-api-sigma.vercel.app/api/dummy', {
    method: 'POST', 
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
    "name": "Max",
    "species": "Bald Eagle",
    "age": 6,
    "habitat": "Forests & Mountains",
    "diet": "Carnivore",
    "conservationStatus": "Least Concern",
    })
});
    if (!response.ok) {
        throw new Error(`HTTP error! Status: ${response.status}`);
    }
                
    const data = await response.json();
    console.log("Success:", data);

                     

Responses:


                    

3.UPDATE DATA (PUT)

Request:


const response = await fetch(`https://dummy-json-api-sigma.vercel.app/api/dummy/${id}`, {
    method: 'PUT',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
    "name": "",
    "species": "",
    "age": ,
    "habitat": "",
    "diet": "",
    "conservationStatus": "",
    }) 
});
                
if (!response.ok) {
    throw new Error(`HTTP error! Status: ${response.status}`);
}
                
const data = await response.json();
console.log("Updated successfully:", data);

                     

4.DELETE DATA (DELETE)

Request:


                       
const response = await fetch(`https://dummy-json-api-sigma.vercel.app/api/dummy/${id}`, {
    method: 'DELETE'
});
                    
if (!response.ok) {
    throw new Error(`HTTP error! Status: ${response.status}`);
}
                    
const data = await response.json();
console.log("Deleted successfully:", data);

Note:

use try catch for better error Handling and for fetching data use await and async