Introduction
Getting started
Welcome to Simple CRUD API – your go-to solution for a fast and free RESTful API!
Build and manage your projects effortlessly with our easy-to-use platform. Whether you’re creating, reading, updating, or deleting data, our API is designed to save you time and simplify your workflow. Perfect for developers who need a reliable, scalable, and hassle-free API solution. Get started in minutes and power up your projects today!
All Resources
| Name | Base URL | Copy |
|---|---|---|
| Todos | /api/todos | |
| Users | /api/users | |
| Posts | /api/posts | |
| Comments | /api/comments | |
| Albums | /api/albums | |
| Photos | /api/photos | |
| Categories | /api/categories | |
| Tags | /api/tags | |
| Products | /api/products |
Sample Todo API
| Name | Endpoint | Method | Copy |
|---|---|---|---|
| Todo List | /api/todos | GET | |
| Todo Detail | /api/todos/1 | GET | |
| Todo Create | /api/todos | POST | |
| Todo Update | /api/todos/1 | PUT | |
| Todo Delete | /api/todos/1 | DELETE |
How to Use
Todo List API
fetch('https://simplecrudapi.com/api/todos')
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error(error));
Todo Detail API
fetch('https://simplecrudapi.com/api/todos/1')
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error(error));
Todo Create API
fetch('https://simplecrudapi.com/api/todos', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Sample Todo',
description: 'This is a sample todo item',
user_id: '',
completed: ''
})
})
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error('Error posting data:', error));
Todo Update API
fetch('https://simplecrudapi.com/api/todos/1', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '',
description: '',
completed: '',
user_id: ''
})
})
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error('Error updating data:', error));
Todo Delete API
fetch('https://simplecrudapi.com/api/todos/1', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error('Error deleting data:', error));