Got tired of Lorem ipsum data?
Did not you find any free e-commerce API?!
fakeStoreJSON 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 is awesome for teaching purposes, sample codes, tests, etc.
Example Code
1fetch('https://api.fakestorejson.com/api/v1/public/products')
2 .then(res=>res.json())
3 .then(json=>console.log(json))
Resources
Fake Store JSON comes with different sets of common resources:
Authenticate
4 items
Product categories
6 product categories
Products
31 products
Post categories
1 post categories
Posts
15 posts
Orders
16 orders
Route
All HTTP methods are supported. You can use http or https for your requests.
GET
/products
GET
/products/1
GET
/products?keyword=Laptop
GET
/products?per_page=10&page=1
POST
/products/1?_method=PUT
DELETE
/products/1