BYTETOOLS

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.

No API key requiredCORS enabledHTTPSCompletely free.

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
curl 'https://fakestoreapi.com/products/1'
JavaScript (fetch)
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);
Python (requests)
import requests

res = requests.get("https://fakestoreapi.com/products/1", timeout=20)
res.raise_for_status()
print(res.json())
Response — HTTP 200
{
  "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

ParameterTypeRequiredDescription
<resource>pathRequiredproducts, carts or users. products
<id>pathOptionalResource id; omit to list all. 1
limitintegerOptionalCap the number of results. 5
sortstringOptional`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

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.

APIWhat it doesAuthCORSLast verified
GitHub REST APIGitHub 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 keyYes19 Aug 2026
JSONPlaceholderFree 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 keyYes19 Aug 2026
Postman EchoPostman 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 keyNo19 Aug 2026
DummyJSONFree 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 keyYes19 Aug 2026
FlathubFetch 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 keyYes21 Aug 2026
FontsourceQuery 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 keyYes21 Aug 2026
All Developer & Testing APIs

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.