Reference
API reference (v1)
Everything you need to call the MyCryptoSignal data API.
Base URL & version
https://api.mycryptosignal.workers.dev/api
Version v1. This is the single canonical host. Paths are unversioned (there is no
/v1 prefix and no legacy aliasing); the host above is the one that answers every
endpoint below.
Getting a key
Keys are free and self-serve — no approval, no queue, no email. Submit the
key form (a POST to /api/request-key with
email, project, and use_case). The key is returned in that
response and is shown once — store it immediately; only its SHA-256 hash is kept
server-side. One key per email per 24 hours (plus a small per-network throttle). The free tier
applies from the first call.
POST /api/request-key
{ "email": "you@example.com", "project": "My app", "use_case": "portfolio tracker" }
201 { "ok": true, "api_key": "mcs_…", "tier": "free",
"limits": { "requests_per_minute": 60, "requests_per_day": 1000, "monthly_quota": 15000 },
"message": "Store this key now — it is shown only once. Send it as the X-API-Key header." } Authentication
Send your key in the X-API-Key header (also accepted as
Authorization: Bearer mcs_…). Every endpoint except /api/health requires a
key.
X-API-Key: mcs_your_key_here
Keys use the mcs_ prefix and are stored only as SHA-256 hashes. Plaintext is shown
exactly once, at issuance. Missing or invalid key → 401.
Rate limits & quotas
Requests are limited per minute and per day, with a monthly quota. When exceeded, the API returns 429 with a hint to retry (or a quota-exceeded message). Every authenticated response carries:
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
X-Quota-Limit, X-Quota-Remaining, X-Quota-Reset Endpoints
GET /api/health
Liveness and server time. No auth.
{ "status": "ok", "ts": 1760000000 } GET /api/signals
Latest daily direction signals. Query: action (Rising|Falling|Steady|Choppy).
{
"signals": [
{
"coin_id": "bitcoin", "symbol": "BTC",
"action": "Rising",
"explanation": "Rising: BTC shows positive momentum (+1.4%), with a rising trend, volatility at 1.4%.",
"signal_date": "2026-10-12", "timestamp": 1760000000
}
],
"count": 60,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/signals/history
History for one coin. Query: coin_id (required), days (default 30, max 365).
{
"coin_id": "bitcoin",
"history": [
{ "id": 9012, "timestamp": 1760000000, "signal_date": "2026-10-12",
"action": "Rising", "explanation": "…" }
],
"count": 7,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/market
Latest market snapshots. Query: symbol?.
{
"data": [
{
"coin_id": "bitcoin", "symbol": "BTC", "name": "Bitcoin",
"timestamp": 1760000000, "price": 68000.12, "market_cap": 1340000000000,
"volume_24h": 32000000000, "price_change_24h": 1.4,
"price_change_7d": -2.1, "price_change_30d": 8.7
}
],
"count": 60,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/onchain
Latest on-chain snapshots. Query: symbol?. Degrades gracefully when a provider is absent.
{
"data": [
{
"coin_id": "ethereum", "symbol": "ETH", "name": "Ethereum",
"timestamp": 1760000000, "transaction_count": 1200000,
"active_addresses": 480000, "gas_used": 0.62,
"block_height": 21000000, "network_utilization": 0.71
}
],
"count": 60,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/prices
Tracked and meme-mover prices. Query: limit? (1–500, default 100), category?.
{
"data": [
{
"coin_id": "dogecoin", "symbol": "DOGE", "name": "Dogecoin",
"price": 0.1234, "price_change_24h": -3.2, "price_change_7d": 5.1,
"price_change_30d": 12.0, "market_cap": 18000000000,
"volume_24h": 900000000, "category": "meme", "updated_at": 1760000000
}
],
"count": 60,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/news
Published news list. Query: category?, limit? (1–100, default 20).
{
"articles": [
{
"slug": "solana-network-activity-surges",
"headline": "Solana Network Activity Surges",
"excerpt": "…", "category": "market-movers",
"source_name": "CryptoSlate", "source_url": "https://…",
"published_at": 1760000000, "word_count": 210
}
],
"count": 20,
"attribution": "Data provided by MyCryptoSignal"
} GET /api/news/[slug]
Single published article: { "article": { … }, "attribution": "…" }.
Errors
All errors share one shape:
{ "error": "<human message>" }
400 bad params
401 Invalid API key
404 unknown route or entity
429 rate limit or monthly quota exceeded
500 internal error Data freshness & cadence
Data is collected and generated on schedules, not streamed. Every call returns the newest stored value — a snapshot with a timestamp, not a live feed. These are the schedules behind each surface:
- Prices — collected on a ≈30-minute schedule. Each row carries its own
updated_at. - Signals — generated once per UTC day, for all tracked coins at once. Each row carries
signal_date. - Market briefs — written once per day, from our own collected numbers.
- News — digests collected in batches through the day; each item carries
published_at. - Market / on-chain snapshots — refreshed on the same ≈30-minute schedule as prices.
Read the relevant timestamp field to see exactly how fresh a value is; nothing is guaranteed to be newer than its schedule.
Caching
Cache windows match the same schedules (and the API's Cache-Control): market/on-chain
30 min, prices 30 min, news 15 min, signals 23 h, coins indefinite. Safe to cache in your client
with the same windows.
CORS
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-API-Key, Authorization