Google Firebase
Google 的移动应用开发平台,帮助构建、改进和发展应用
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 开发
- 文档 / URL
- https://firebase.google.com/docs
简介
Firebase 提供应用后端服务——Firestore 数据库、Auth、Storage、Cloud Functions 等——每个都有 REST API。认证用项目的 API 密钥(请求不存在的项目返回 404,已实测——REST API 活着)。
快速开始
Firestore REST(替换 PROJECT_ID、YOUR_TOKEN):
curl "https://firestore.googleapis.com/v1/projects/PROJECT_ID/databases/(default)/documents" \
-H "Authorization: Bearer YOUR_TOKEN"
{ "documents": [] }
注:部分服务用 ?key=YOUR_KEY 的 API 密钥模式,其他用 Bearer OAuth 令牌——以各服务文档为准。
认证方式
- API 密钥:Firebase 控制台 → Project settings → Web API Key。
- 用户级数据用 Firebase Auth 令牌(Bearer)。
- 项目缺失返回 404(已实测)——不是“服务宕机”信号。
速率限制与注意事项
- 免费层(Spark 计划):各服务配额宽裕(Firestore 每天 2 万次写入等);付费档可扩展。
- 有 REST API 的服务:Firestore、Realtime Database、Auth、Storage、Remote Config、FCM。
- REST 适合服务端访问;客户端推荐用 SDK。
- 这是 BaaS——“API” 是你项目的数据,所以没有全局演示数据。
常见问题
Firebase 免费吗? Spark 计划免费带配额;超出后计费。
如何获取密钥? Firebase 控制台 → Project settings → Web API Key。
为什么 Firestore 404? 错误/不存在的项目 ID 返回 404(已实测)——请检查你的项目。
开发 分类更多
| 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 | ↗ |