FakeStoreAPI API

Beginner's Pick Test Data / No Auth Required Beginner HTTPS
Free to Use
47 D
Measured Score 0 50 100 Speed 3/30 Consistency 1/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

FakeStoreAPI is a free REST API that simulates an e-commerce backend, providing endpoints for products, carts, and users without any setup. You can perform standard CRUD operations—GET, POST, PUT, DELETE—to prototype shopping features without a real database. It is one of the best starting points for learning REST API concepts or building e-commerce UI mockups.

Beginner Tip

FakeStoreAPI does not actually save changes—POST and PUT requests return a realistic response but data resets on each server restart. Use it freely for testing and prototyping without worrying about corrupting a database.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://fakestoreapi.com/products?limit=5
Result
HTTP 200 · application/json · 2,310 bytes · compressed
Response time
1012 ms (median of 3) · fastest 284 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
id integer 1
title string Fjallraven - Foldsack No. 1 Backpack, Fits 15…
price number 109.95
description string Your perfect pack for everyday use and walks …
category string men's clothing
image string (url) https://fakestoreapi.com/img/81fPKd-2AYL._AC_…
rating object {2 fields}

Captured Response

Captured from a real request to https://fakestoreapi.com/products?limit=5 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  {
    "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
    }
  }
]

Field Reference

id Unique identifier for the product, ranging from 1 to 20
title Name or title of the product
price Price of the product in USD as a floating-point number
description Detailed text description of the product
category Product category string such as electronics, jewelery, or clothing
image URL to the product image hosted externally

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://fakestoreapi.com/products?limit=5";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

POST request returns 200 but data is not persisted FakeStoreAPI is a mock and writes are simulated but not stored permanently
This is expected behavior; for persistent storage in a real app, use a real backend or database service
CORS error when fetching from a browser The browser blocks cross-origin requests without the correct headers
FakeStoreAPI supports CORS for most origins; if blocked, try fetching from a Node.js script or use a CORS proxy for local development
404 Not Found for a product ID Product IDs only go from 1 to 20 in the default dataset
Keep product IDs within the range 1-20 when testing GET requests for specific products

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 3/30
Consistency 1/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 1012ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Test Data
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →