FakerAPI
用于获取模拟数据的 API 集合
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 测试数据
- 文档 / URL
- https://fakerapi.it/en
简介
FakerAPI 为 10+ 种实体类型生成假数据——人物、公司、产品、地址、文本、图片等——以 JSON/XML 输出。免密钥且支持 CORS,是原型和演示的实用测试数据来源。
⚠️ 状态(2026-08 实测):多次请求返回 HTTP 502 Bad Gateway——服务疑似正在故障。使用前请验证可用性(API 文档仍在 fakerapi.it)。
提供的数据(服务恢复时)
curl "https://fakerapi.it/api/v1/users?_quantity=1"
curl "https://fakerapi.it/api/v1/companies?_quantity=3"
curl "https://fakerapi.it/api/v1/products?_quantity=5&_taxes=12"
curl "https://fakerapi.it/api/v1/persons?_quantity=2&_gender=male"
{
"status": "ok",
"code": 200,
"total": 1,
"data": [
{ "id": 1, "firstname": "John", "lastname": "Doe", "email": "john.doe@example.com" }
]
}
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;没有文档化的硬性限制——请礼貌使用。
- 实体:人物、公司、地址、产品、文本、图片、信用卡等——各带
_quantity和实体专属参数。 - 输出格式:JSON(默认)、XML(
_locale/_format=xml)。 - 支持多语言环境(
_locale=en_US、de_DE、it_IT……)。
常见问题
FakerAPI 免费吗? 是的——免费且免密钥。
为什么收到 502? 2026-08 实测出现网关错误——服务可能正在故障。稍后重试或在官网验证。
能生成什么数据? 人物、公司、产品、地址、文本、图片、信用卡等。
测试数据 分类更多
| 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 | ↗ |