You know the drill. You need a quick API for your side project — QR codes, currency rates, screenshot capture — and you end up wrestling with OAuth flows, billing dashboards, and 47-page docs before you can make a single request.
I built a collection of 24 lightweight APIs running on Cloudflare Workers' edge network. They all share the same philosophy:
- No authentication required for the free tier
- 500 requests/month free (some endpoints offer 100/mo)
- Sub-50ms response times via 300+ global edge locations
- Zero cold starts — no containers, no lambdas, no waiting
Every API below is available on RapidAPI. Let me walk you through the highlights.
1. QR Code Generator API
Generate QR codes in PNG, SVG, or Base64 with custom colors and error correction levels.
curl "https://YOUR_RAPIDAPI_HOST/generate?text=https://example.com&size=300&format=png&color=000000&bgcolor=FFFFFF"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/generate",
params={"text": "https://example.com", "size": 300, "format": "svg"}
)
print(response.text)
2. Email Validation API
Check if an email is valid, detect disposable providers, verify MX records, and suggest typo corrections.
curl "https://YOUR_RAPIDAPI_HOST/validate?email=user@gmial.com"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/validate",
params={"email": "user@gmial.com"}
)
data = response.json()
print(data["suggestion"]) # "user@gmail.com"
3. Link Preview / Website Metadata API
Extract Open Graph tags, Twitter Cards, favicons, and RSS feeds from any URL. Perfect for building link preview cards like Slack or Discord.
curl "https://YOUR_RAPIDAPI_HOST/preview?url=https://github.com"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/preview",
params={"url": "https://github.com"}
)
meta = response.json()
print(meta["title"], meta["image"])
4. Website Screenshot API
Capture full-page screenshots in PNG or JPEG with custom viewport sizes.
curl "https://YOUR_RAPIDAPI_HOST/screenshot?url=https://example.com&width=1280&height=720&format=png"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/screenshot",
params={"url": "https://example.com", "width": 1280, "format": "png"}
)
with open("screenshot.png", "wb") as f:
f.write(response.content)
5. Text Analysis / NLP API
Sentiment analysis, keyword extraction, readability scoring, and language detection — all in one endpoint.
curl -X POST "https://YOUR_RAPIDAPI_HOST/sentiment" \
-H "Content-Type: application/json" \
-d '{"text": "This API is incredibly fast and easy to use!"}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/sentiment",
json={"text": "This API is incredibly fast and easy to use!"}
)
result = response.json()
print(result["sentiment"], result["score"])
6. IP Geolocation API
Get country, city, timezone, ISP, and VPN detection for any IP. Call /me to geolocate the requester.
curl "https://YOUR_RAPIDAPI_HOST/me"
import requests
response = requests.get("https://YOUR_RAPIDAPI_HOST/me")
geo = response.json()
print(f"{geo['city']}, {geo['country']} (VPN: {geo['is_vpn']})")
7. URL Shortener API
Shorten URLs with optional custom aliases and get click analytics.
curl -X POST "https://YOUR_RAPIDAPI_HOST/shorten" \
-H "Content-Type: application/json" \
-d '{"url": "https://dev.to/some-very-long-article-url", "alias": "my-link"}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/shorten",
json={"url": "https://dev.to/some-very-long-article-url"}
)
print(response.json()["short_url"])
8. JSON Formatter & Validator API
Validate, format, minify, diff two JSON objects, or convert JSON to CSV.
curl -X POST "https://YOUR_RAPIDAPI_HOST/format" \
-H "Content-Type: application/json" \
-d '{"json": "{\"name\":\"dev\",\"lang\":\"python\"}", "indent": 2}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/format",
json={"json": '{"name":"dev","lang":"python"}', "indent": 2}
)
print(response.json()["formatted"])
9. Hash & Encoding API
SHA256, bcrypt, Base64, HMAC, and more. Useful for building auth systems or verifying data integrity.
curl -X POST "https://YOUR_RAPIDAPI_HOST/hash" \
-H "Content-Type: application/json" \
-d '{"text": "hello world", "algorithm": "sha256"}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/hash",
json={"text": "hello world", "algorithm": "sha256"}
)
print(response.json()["hash"])
10. Currency Exchange Rate API
Real-time exchange rates for 30+ currencies sourced from the ECB, with historical data support.
curl "https://YOUR_RAPIDAPI_HOST/rates?base=USD&symbols=EUR,JPY,GBP"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/rates",
params={"base": "USD", "symbols": "EUR,JPY,GBP"}
)
rates = response.json()["rates"]
print(f"1 USD = {rates['EUR']} EUR")
11. AI Text API (Llama 3.1)
Generate text, summarize articles, rewrite content, or translate — powered by Llama 3.1.
curl -X POST "https://YOUR_RAPIDAPI_HOST/generate" \
-H "Content-Type: application/json" \
-d '{"prompt": "Explain WebSockets in 3 sentences", "max_tokens": 200}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/generate",
json={"prompt": "Explain WebSockets in 3 sentences", "max_tokens": 200}
)
print(response.json()["text"])
12. Social Video Downloader API
Extract direct download URLs from TikTok, YouTube, Instagram, and Twitter/X.
curl "https://YOUR_RAPIDAPI_HOST/download?url=https://www.tiktok.com/@user/video/123456"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/download",
params={"url": "https://www.tiktok.com/@user/video/123456"}
)
print(response.json()["download_url"])
13. Crypto Data API
Real-time prices and market data for Bitcoin, Ethereum, and other major cryptocurrencies.
curl "https://YOUR_RAPIDAPI_HOST/price?coin=bitcoin"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/price",
params={"coin": "bitcoin"}
)
data = response.json()
print(f"BTC: ${data['price_usd']:,.2f}")
14. SEO Analyzer API
Audit any website's SEO: meta tags, heading structure, structured data, and an overall score.
curl "https://YOUR_RAPIDAPI_HOST/analyze?url=https://dev.to"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/analyze",
params={"url": "https://dev.to"}
)
report = response.json()
print(f"SEO Score: {report['score']}/100")
15. Weather API
Current conditions, hourly and daily forecasts, historical data, and geocoding.
curl "https://YOUR_RAPIDAPI_HOST/current?city=Tokyo"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/current",
params={"city": "Tokyo"}
)
weather = response.json()
print(f"{weather['city']}: {weather['temp_c']}C, {weather['description']}")
16. WHOIS Domain API
RDAP/WHOIS lookup, DNS records, and domain availability checks.
curl "https://YOUR_RAPIDAPI_HOST/lookup?domain=example.com"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/lookup",
params={"domain": "example.com"}
)
whois = response.json()
print(f"Registrar: {whois['registrar']}, Expires: {whois['expiry_date']}")
17. News Aggregator API
Aggregated headlines from BBC, Reuters, Hacker News, Dev.to, and more.
curl "https://YOUR_RAPIDAPI_HOST/top?source=hackernews&limit=5"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/top",
params={"source": "hackernews", "limit": 5}
)
for article in response.json()["articles"]:
print(f"- {article['title']}")
18. AI Translate API (M2M100)
Translate text across 40+ languages with automatic language detection. Powered by Meta's M2M100 model.
curl -X POST "https://YOUR_RAPIDAPI_HOST/translate" \
-H "Content-Type: application/json" \
-d '{"text": "Hello, how are you?", "target": "ja"}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/translate",
json={"text": "Hello, how are you?", "target": "ja"}
)
print(response.json()["translated_text"]) # こんにちは、お元気ですか?
19. Trends Aggregator API
What's trending right now across Google, Reddit, Hacker News, GitHub, and Product Hunt — in a single call.
curl "https://YOUR_RAPIDAPI_HOST/google/daily?geo=US"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/google/daily",
params={"geo": "US"}
)
for trend in response.json()["trends"][:5]:
print(f"- {trend['title']} ({trend['traffic']})")
20. Company Data API
Search for businesses by name or enrich a domain with company info and tech stack detection.
curl "https://YOUR_RAPIDAPI_HOST/search?query=stripe&limit=3"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/search",
params={"query": "stripe", "limit": 3}
)
for company in response.json()["results"]:
print(f"{company['name']} - {company['domain']}")
21. PDF Generator API
Convert HTML, Markdown, or a URL into a downloadable PDF with custom headers and footers.
curl -X POST "https://YOUR_RAPIDAPI_HOST/generate" \
-H "Content-Type: application/json" \
-d '{"html": "<h1>Invoice #42</h1><p>Total: $99.00</p>", "format": "A4"}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/generate",
json={"html": "<h1>Invoice #42</h1><p>Total: $99.00</p>", "format": "A4"}
)
with open("invoice.pdf", "wb") as f:
f.write(response.content)
22. Placeholder Image API
Generate SVG or PNG placeholder images with gradients, custom text, and category presets (avatar, banner, thumbnail, etc.).
curl "https://YOUR_RAPIDAPI_HOST/400x300?text=Hello+Dev.to&bg=blue&format=svg"
import requests
response = requests.get(
"https://YOUR_RAPIDAPI_HOST/400x300",
params={"text": "Hello Dev.to", "bg": "ocean", "format": "svg"}
)
print(response.text) # SVG markup
23. Markdown Converter API
Convert Markdown to HTML (or HTML to Markdown) with GFM support, table of contents generation, and syntax highlighting classes.
curl -X POST "https://YOUR_RAPIDAPI_HOST/convert" \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello\n\nThis is **bold** and `code`.", "toc": true}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/convert",
json={"markdown": "# Hello\n\nThis is **bold** and `code`.", "toc": True}
)
result = response.json()
print(result["html"])
24. WP Internal Link Optimization API
Analyze your WordPress content and get smart internal link suggestions with anchor text and relevance scoring.
curl -X POST "https://YOUR_RAPIDAPI_HOST/analyze" \
-H "Content-Type: application/json" \
-d '{"site_url": "https://yourblog.com", "post_id": 42}'
import requests
response = requests.post(
"https://YOUR_RAPIDAPI_HOST/analyze",
json={"site_url": "https://yourblog.com", "post_id": 42}
)
for link in response.json()["suggestions"]:
print(f"Link to: {link['target_title']} (score: {link['relevance']})")
Why Cloudflare Workers?
All 24 APIs run on Cloudflare Workers, which means:
- No cold starts. Workers are always warm and ready.
- Global edge deployment. Your request hits the nearest of 300+ data centers.
- Consistent latency. Most responses come back in under 50ms.
- No server maintenance. I don't manage any infrastructure beyond the code itself.
This is why the free tier is sustainable — Cloudflare's pricing model makes it viable to offer 500 free requests per month without losing money.
Try Them All
Every API listed above has a free tier on RapidAPI. No credit card needed. Just subscribe to the Basic plan and start making requests.
If you find a bug, have a feature request, or just want to say hi — drop a comment below or open an issue. I'm actively maintaining all of these and shipping improvements regularly.
Happy building.
Top comments (0)