Fake Store API
Free fake e-commerce API with products, categories, carts and users. Built for building shop prototypes and React tutorials. No key. Tested curl example.
Endpoint tested and returned HTTP 200 on 19 Aug 2026
What is the Fake Store API?
Fake Store API is a free REST API that serves realistic e-commerce data — products with prices, images, categories and ratings, plus carts and users — for building online shop prototypes without a backend.
Fake Store API is purpose-built for one job: giving front-end developers a believable product catalogue to build a shop against. It is the API behind a very large share of React, Vue and Angular e-commerce tutorials.
Its main advantage over general-purpose mock APIs is coherence. Products, categories, carts and users all reference each other sensibly, so you can build a genuine cart flow — browse a category, open a product, add to cart — against consistent data.
Quick facts
- Base URL
https://fakestoreapi.com- Authentication
- No key. A demo login endpoint exists for practising token handling.
- Rate limit
- No published limit.
- Pricing
- Completely free.
- CORS
- Enabled — callable directly from browser JavaScript
- Official docs
- Read the docs
How to use the Fake Store API
Every request below was executed against the live API on 19 Aug 2026, and the response shown is the real body it returned — not an illustration.
1. Fetch a single product
GET https://fakestoreapi.com/products/1
curl 'https://fakestoreapi.com/products/1'const res = await fetch("https://fakestoreapi.com/products/1");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://fakestoreapi.com/products/1", timeout=20)
res.raise_for_status()
print(res.json()){
"id": 1,
"title": "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops",
"price": 109.95,
"description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday",
"category": "men's clothing",
"image": "https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_t.png",
"rating": {
"rate": 3.9,
"count": 120
}
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
<resource> | path | Required | products, carts or users. products |
<id> | path | Optional | Resource id; omit to list all. 1 |
limit | integer | Optional | Cap the number of results. 5 |
sort | string | Optional | `asc` or `desc` ordering by id. desc |
Response fields
idinteger- Product identifier.
title / descriptionstring- Product name and description.
pricenumber- Price as a number, useful for testing currency formatting.
categorystring- One of a small fixed set of categories.
imagestring- Real product image URL, directly renderable.
ratingobject- Nested rate and count values.
What you can build with the Fake Store API
- Build an online shop front end before the real catalogue exists
- Follow or write React, Vue or Angular e-commerce tutorials
- Test cart, filter and category navigation logic
- Populate portfolio projects with realistic product data and images
Common errors and how to fix them
Empty or null response
Requested id does not exist.
Fix: Product ids run from 1 to 20; higher ids return nothing.
Writes not persisted
Simulated, as with all mock APIs.
Fix: Treat POST and PUT responses as confirmation your request was well formed, nothing more.
Fake Store API — frequently asked questions
Is Fake Store API free?
Yes, completely free with no API key or registration, and intended for prototyping and learning.
How many products does Fake Store API have?
Twenty, across a small set of categories including electronics, jewellery and clothing. That is deliberately small enough to reason about while still exercising real UI patterns.
Can I use Fake Store API in a portfolio project?
Yes. It is widely used for exactly that, and because the image URLs are real and stable, the resulting project looks convincing to reviewers.
Does it support cart and checkout flows?
It provides cart endpoints that accept products and quantities so you can build a full browse-to-cart flow, but nothing is persisted and there is no real payment step.
Tools that pair with this API
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
Percentage Calculator
Calculate what X% of a number is, what percent one number is of another, and percentage increase or decrease between two values — instantly and free.
Alternatives to Fake Store API
If Fake Store API does not fit, these developer & testing apis cover similar ground. Every one was called before publishing, and each links to its own reference page with a working curl command and the response it returned.
| API | What it does | Auth | CORS | Last verified |
|---|---|---|---|---|
| GitHub REST API | GitHub REST API with no key for public data: repository details, users, issues, releases and commits. 60 req/hour unauthenticated, 5,000 with a token. | No key | Yes | 19 Aug 2026 |
| JSONPlaceholder | Free fake REST API for testing and prototyping. Posts, comments, users and todos with full GET, POST, PUT and DELETE support. No key. Real curl examples. | No key | Yes | 19 Aug 2026 |
| Postman Echo | Postman Echo reflects your HTTP request back as JSON: headers, body, query params and auth. Free, no key, ideal for debugging clients. Real POST example. | No key | No | 19 Aug 2026 |
| DummyJSON | Free fake REST API with realistic products, users, carts, recipes and auth. Supports search, pagination, sorting and POST. No key. Tested GET and POST examples. | No key | Yes | 19 Aug 2026 |
| Flathub | Fetch Linux desktop app metadata, screenshots and release notes from Flathub as JSON with no API key. Verified example plus the epoch-as-string gotcha. | No key | Yes | 21 Aug 2026 |
| Fontsource | Query font metadata including weights, styles, subsets, unicode ranges and licences for Google Fonts and more. No API key, unlike the official Google Fonts API. | No key | Yes | 21 Aug 2026 |
Fake Store API is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 19 Aug 2026; always check the official documentation before relying on this API in production, as terms and limits can change.