JSONbin.io
免费的 JSON 存储服务,非常适合小型 Web 应用、网站和移动应用
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 开发
- 文档 / URL
- https://jsonbin.io
简介
JSONbin.io 是免费 JSON 存储服务——用 REST API 存储、读取、更新和删除 JSON 文档,还支持集合。需要密钥(无密钥请求返回 404,已实测)——是原型和小工具的“即时后端”。
快速开始
创建 bin(替换 YOUR_KEY):
curl -X POST "https://api.jsonbin.io/v3/b" \
-H "Content-Type: application/json" \
-H "X-Master-Key: YOUR_KEY" \
-d '{"hello": "world"}'
{
"record": { "hello": "world" },
"metadata": { "id": "65abc...", "private": true, "createdAt": "..." }
}
读取 bin:
curl "https://api.jsonbin.io/v3/b/BIN_ID" \
-H "X-Master-Key: YOUR_KEY"
更新:
curl -X PUT "https://api.jsonbin.io/v3/b/BIN_ID" \
-H "Content-Type: application/json" \
-H "X-Master-Key: YOUR_KEY" \
-d '{"hello": "updated"}'
认证方式
- 在 jsonbin.io 注册 → Master Key(在控制台)。
- 通过
X-Master-Key请求头携带(缺失密钥 → 404,已实测)。 - 集合 API(
/v3/c)把 bin 组织成组。
速率限制与注意事项
- 免费层:每日读写有限(见控制台——额度适中);付费档可扩展。
- Bin 是 JSON 文档(免费层最大体积约几 KB——以当前限制为准)。
X-Master-Key授予完全访问——X-Collection-Id限定到集合。- 适合配置存储、快速模拟后端和业余项目。
常见问题
JSONbin.io 免费吗? 免费层带每日限额;付费档可扩展。
如何获取密钥? 在 jsonbin.io 注册——Master Key 在控制台。
为什么无密钥 404?
API 把缺失认证当作“未找到”处理(已实测)——始终发送 X-Master-Key。
开发 分类更多
| 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 | ↗ |