FakeStoreAPI
用于电商或购物网站原型的模拟商店 REST API
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 测试数据
- 文档 / URL
- https://fakestoreapi.com/
简介
FakeStoreAPI 提供逼真的电商数据——产品、购物车和用户——支持完整 CRUD。免密钥(实测可用),是前端演示的标准模拟商店。
快速开始
一个产品(实测可用):
curl "https://fakestoreapi.com/products/1"
{
"id": 1,
"title": "Fjallraven - Foldsack No. 1 Backpack",
"price": 109.95,
"description": "Your perfect pack for everyday use...",
"category": "men's clothing",
"image": "https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg",
"rating": { "rate": 3.9, "count": 120 }
}
全部产品 / 分类:
curl "https://fakestoreapi.com/products"
curl "https://fakestoreapi.com/products/categories"
CRUD:
curl -X POST "https://fakestoreapi.com/products" -H "Content-Type: application/json" -d '{"title": "New product", "price": 10}'
认证方式
无需认证——免密钥(有认证端点用于演示登录)。
速率限制与注意事项
- 免费;请礼貌使用——没有公开的硬性限制。
- 资源:产品、购物车、用户,支持完整 CRUD。
- 数据是静态/演示(购物车写入是模拟的)。
常见问题
FakeStoreAPI 免费吗? 是的——免费且免密钥(实测)。
可以测试 CRUD 吗? 可以——POST/PUT/DELETE 对模拟商店生效。
有什么数据? 产品、购物车和用户。
测试数据 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| AddressMock Random US, Hong Kong and Cape Verde addresses with matched city, state and ZIP | No auth | Yes | Yes | ↗ |
| Bacon Ipsum A Meatier Lorem Ipsum Generator | No auth | Yes | Unknown | ↗ |
| Dicebear Avatars Generate random pixel-art avatars | No auth | Yes | No | ↗ |
| DummyJSON Fake REST API with products, users, posts, comments, todos and more | No auth | Yes | Yes | ↗ |
| English Random Words Generate English Random Words with Pronunciation | No auth | Yes | No | ↗ |