JSONPlaceholder
用于测试和原型开发的模拟 REST API
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 开发
简介
JSONPlaceholder 是经典的原型开发模拟 REST API——posts、comments、users 和 todos 支持完整 CRUD。免密钥(实测可用)。
快速开始
一篇文章(实测可用):
curl "https://jsonplaceholder.typicode.com/posts/1"
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit..."
}
列表 / 创建:
curl "https://jsonplaceholder.typicode.com/posts"
curl -X POST "https://jsonplaceholder.typicode.com/posts" \
-H "Content-Type: application/json" \
-d '{"title": "foo", "body": "bar", "userId": 1}'
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;请礼貌使用——没有公开的硬性限制。
- 资源:posts、comments、albums、photos、todos、users。
- 所有响应都是假的但逼真——非常适合 UI 原型。
常见问题
JSONPlaceholder 免费吗? 是的——免费且免密钥(实测)。
可以测试 CRUD 吗? 可以——支持 POST/PUT/PATCH/DELETE。
有什么资源? Posts、comments、albums、photos、todos、users。
开发 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 24 Pull Requests Project to promote open source collaboration during December | No auth | Yes | Yes | ↗ |
| Agify.io Estimates the age from a first name | No auth | Yes | Yes | ↗ |
| Amazonscraperapi Amazon product, search & batch scraping API with residential proxies (1000 free) | API Key | Yes | No | ↗ |
| AmberOne Turn any website into a build-ready Android, iOS, PWA or Electron app project | API Key | Yes | No | ↗ |
| API Grátis Multiples services and public APIs | No auth | Yes | Unknown | ↗ |