Public API
Free REST API for developer utilities. CORS-enabled, JSON responses, no browser required. Perfect for scripts, CI pipelines, and side projects.
Quick Start
1. Get a free API key
curl -X POST https://devplaybook.cc/api/keys \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]"}'
# Response:
# {"apiKey":"dp_abc123...","plan":"free","limits":{"requestsPerDay":100}} 2. Make your first request
curl "https://devplaybook.cc/api/v1/uuid" \
-H "X-API-Key: dp_your_key_here"
# Response:
# {"uuids":["550e8400-e29b-41d4-a716-446655440000"],"count":1} Rate Limits
Rate limit headers returned on every response:
X-RateLimit-Remaining,
X-RateLimit-Limit,
X-RateLimit-Plan
Endpoints
/api/v1/uuid Generate one or more UUID v4 values.
| count | Number of UUIDs (default: 1, max: 10 free / 100 pro) |
curl "https://devplaybook.cc/api/v1/uuid?count=3" \
-H "X-API-Key: dp_your_key"
# {"uuids":["...","...","..."],"count":3} /api/v1/cron Validate and describe a cron expression in plain English.
| expression | 5-field cron expression (URL-encoded) |
curl "https://devplaybook.cc/api/v1/cron?expression=0+9+*+*+1-5" \
-H "X-API-Key: dp_your_key"
# {"valid":true,"summary":"Run at 9:00 AM, Monday through Friday",...} /api/v1/json-format Format, minify, or validate JSON. Max 100KB (free) / 1MB (pro).
| json | JSON string to format (required) |
| indent | Indent size (default: 2) |
| minify | Set true to minify instead |
curl -X POST https://devplaybook.cc/api/v1/json-format \
-H "X-API-Key: dp_your_key" \
-H "Content-Type: application/json" \
-d '{"json":"{\"name\":\"alice\",\"age\":30}","indent":4}'
# {"valid":true,"formatted":"{\n \"name\": \"alice\"...}"} /api/v1/regex Test, match, or apply a regex pattern against input text.
| pattern | Regex pattern string (required) |
| flags | Regex flags, e.g. "gi" (optional) |
| input | Text to test against |
| operation | "test" | "match" | "replace" (default: match) |
| replacement | Replacement string (for "replace" operation) |
curl -X POST https://devplaybook.cc/api/v1/regex \
-H "X-API-Key: dp_your_key" \
-H "Content-Type: application/json" \
-d '{"pattern":"\\b\\w+@\\w+\\.\\w+\\b","flags":"g","input":"contact [email protected] or [email protected]","operation":"match"}'
# {"matchCount":2,"matches":[{"match":"[email protected]","index":8},...]} /api/v1/token-count Estimate token count and per-model AI API cost for any text.
| text | Text to analyze (free: 10K chars, pro: 100K chars) |
curl -X POST https://devplaybook.cc/api/v1/token-count \
-H "X-API-Key: dp_your_key" \
-H "Content-Type: application/json" \
-d '{"text":"Hello, world!"}'
# {"tokens":4,"words":2,"chars":13,"model_estimates":{"gpt-4o":{"estimated_cost_usd":0.00001,...}}} /api/v1/ai-price Calculate AI API cost for any model and token count. Pro: batch compare all models.
| model | Model name (e.g. gpt-4o, claude-3-5-sonnet) |
| input_tokens | Number of input tokens |
| output_tokens | Number of output tokens (optional) |
curl "https://devplaybook.cc/api/v1/ai-price?model=gpt-4o&input_tokens=1000&output_tokens=500" \
-H "X-API-Key: dp_your_key"
# {"model":"gpt-4o","cost_usd":0.007500,"breakdown":{"input_cost_usd":0.0025,...}} /api/v1/word-count Count words, sentences, paragraphs, and reading time for any text.
| text | Text to analyze (free: 50K chars, pro: 500K chars) |
curl -X POST https://devplaybook.cc/api/v1/word-count \
-H "X-API-Key: dp_your_key" \
-H "Content-Type: application/json" \
-d '{"text":"Hello world. This is a test."}'
# {"words":6,"chars":29,"sentences":2,"paragraphs":1,"reading_time_min":0.0} /api/user-subscription Check Pro subscription status by email. No API key required.
curl "https://devplaybook.cc/api/[email protected]"
# {"isPro":true,"plan":"pro","status":"active","subscribedAt":"2026-03-20T..."} Get Your Free API Key
100 requests/day, no credit card required.
X-API-Key header.