Fake Store API
Fake store rest API for your e-commerce or shopping website prototype
Get tired of Lorem ipsum data?!
Didn't you find any free e-commerce API?!
fakeStoreApi is a free online REST API that you can use whenever you need Pseudo-real data for your e-commerce or shopping website without running any server-side code. It's awesome for teaching purposes, sample codes, tests, etc.
Example Code
fetch('https://fakestoreapi.com/products/1')
.then(res=>res.json())
.then(json=>console.log(json))
Resources
There are 4 main resources need in shopping prototypes
- Products20 products
- Cart20 cart item
- Users10 users
- Login TokenNew!
Routes
All HTTP methods are supported
- GET/products
- GET/products/1
- GET/products/categories
- GET/products/category/jewelery
- GET/carts?userId=1
- GET/products?limit=5
- POST/products
- PUT/products/1
- PATCH/products/1
- DELETE/products/1