FakeStores API
Fake Stores rest API for your e-commerce or shopping website prototype
Fakestore API
Play with our API and
make fun stuff
Get tired of Lorem ipsum data?!
Didn't you find any free e-commerce API?!
FakeStoresApi 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: Get a single product by ID
fetch("https://fakestores.onrender.com/api/products/5", {
.then(result=> console.log(result))
method: "GET",
}).then(res=> res.json()) .then(result=> console.log(result))
Use our REST API to develop your own application
With the FakeStores REST API you can do all the things that our website can do. We use the API to build an e-commerce store. Search for products, view product details, get categories, retrieve all the tags and add to users basket.
Everything in JSON format so it’s easy to read, both for humans and computer, enabling you to do what ever you can imagine
REST API
Restful online API, publicly accessible via https methods.
JSON DATA
Contain neccessary data required to build Shopping website.
24/7 uptime
Fast response time in your testing & developement phases.
Getting Started
- First step is to read over the API information below and get familiar with it.
- Try our API for your self. You don’t need API key to play with it.
- Do you like what you can do? Get you API key by signup.
- Check out the FAQ for the most common questions. If it´s not there, email us.
Resourses
There are 4 main resources need in shopping prototypes
Products
20 Products
Cart
20 Cart Items
Default Users
3 Default Users
Routes
All the HTTP methods are supported.
GET
/products
GET
/products/1
GET
/categories
GET
/category/electronics
GET
/cart?userId=1
GET
/products?limit=5
GET
/products?sortBy='desc'
PUT
/update/1
POST
/addProduct
DELETE
/delete/1