以程式化方式存取 alltools.one 功能。透過 REST API 管理程式碼片段、共享資料並追蹤歷史記錄。
https://api.alltools.onePull your team's saved JSON / YAML / CSV formatter configs in GitHub Actions or GitLab CI to keep builds consistent.
# .github/workflows/validate.yml
- name: Fetch saved formatter config
run: |
curl -sf "https://api.alltools.one/api/snippets?tool=json-formatter&limit=1" \
-H "X-API-Key: ${{ secrets.ALLTOOLS_API_KEY }}" | jq '.snippets[0].data'When your automation workflow produces a formatted CSV or JSON, POST it directly as a named snippet for later retrieval.
curl -X POST https://api.alltools.one/api/snippets \
-H "X-API-Key: ato_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"tool": "csv-formatter",
"title": "Daily Report 2025-01-15",
"data": { "csv": "name,value\nAlice,42\nBob,99" },
"tags": ["automated", "daily"]
}'Create a shareable link for any formatted output — useful for embedding live data previews in Notion, Slack, or documentation.
curl -X POST https://api.alltools.one/api/shares \
-H "X-API-Key: ato_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"tool": "json-formatter",
"title": "API Response Sample",
"data": { "input": "{\"status\":\"ok\",\"result\":42}" }
}'
# Returns: { "share_url": "https://alltools.one/share/abc123def4", "id": "abc123def4" }大多數端點需要透過 Firebase JWT 令牌或 API 金鑰進行身份驗證。
透過 Firebase Auth 取得令牌,然後將其包含在 Authorization 標頭中:
curl https://api.alltools.one/api/auth/profile \
-H "Authorization: Bearer <firebase_id_token>"Pro 使用者可以從控制台建立 API 金鑰。在 X-API-Key 標頭中包含金鑰:
curl https://api.alltools.one/api/snippets \
-H "X-API-Key: ato_your_key_here"儲存和管理工具輸出。免費使用者最多可儲存 5 個程式碼片段;Pro 使用者可獲得無限儲存空間。
為工具資料建立可共享連結。免費共享在 30 天後過期(最大 5 MB)。Pro 共享永不過期(最大 50 MB)。
追蹤工具使用情況。免費使用者:最近 20 筆記錄。Pro 使用者:無限歷史記錄。
管理程式化 API 金鑰。需要 Pro 方案。每位使用者最多 5 個金鑰。
透過 Razorpay 整合管理 Pro 訂閱。
| 代碼 | 含義 | 常見原因 |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created |
400 | Bad Request | Validation error or malformed input |
401 | Unauthorized | Missing or invalid auth token |
403 | Forbidden | Pro plan required or not the resource owner |
404 | Not Found | Resource does not exist |
409 | Conflict | Duplicate resource (e.g. email already subscribed) |
410 | Gone | Share link has expired |
413 | Payload Too Large | Data exceeds size limit (5MB free / 50MB pro) |
429 | Too Many Requests | Rate limit exceeded |
Pro 方案專屬。請求按 API 金鑰分別追蹤。
每 IP 位址每 60 秒 5 次請求。
| 功能 | 免費 | Pro |
|---|---|---|
| 已儲存程式碼片段 | 15 | 無限 |
| 歷史記錄條目 | 20 | 無限 |
| 最大共享大小 | 5 MB | 50 MB |
| 共享到期時間 | Never | 永不 |
| API 請求 | — | Unlimited (fair use) |
| API 金鑰 | 0 | 5 |