sync api_keys.json with api.txt + fallbacks
Browse files- config/api_keys.json +59 -45
config/api_keys.json
CHANGED
|
@@ -1,37 +1,41 @@
|
|
| 1 |
{
|
| 2 |
"description": "API Keys Configuration for Crypto Intelligence Hub",
|
| 3 |
-
"last_updated": "
|
| 4 |
-
|
| 5 |
"block_explorers": {
|
| 6 |
"etherscan": {
|
| 7 |
"keys": [
|
| 8 |
"SZHYFZK2RR8H9TIMJBVW54V4H81K2Z2KR2",
|
| 9 |
"T6IR8VJHX2NE6ZJW2S3FDVN1TYG4PYYI45"
|
| 10 |
],
|
|
|
|
| 11 |
"url": "https://api.etherscan.io/api",
|
| 12 |
"rate_limit": "5 req/sec",
|
| 13 |
"description": "Ethereum blockchain explorer"
|
| 14 |
},
|
| 15 |
"bscscan": {
|
| 16 |
"key": "K62RKHGXTDCG53RU4MCG6XABIMJKTN19IT",
|
|
|
|
| 17 |
"url": "https://api.bscscan.com/api",
|
| 18 |
"rate_limit": "5 req/sec",
|
| 19 |
"description": "BNB Smart Chain blockchain explorer"
|
| 20 |
},
|
| 21 |
"tronscan": {
|
| 22 |
"key": "7ae72726-bffe-4e74-9c33-97b761eeea21",
|
|
|
|
| 23 |
"url": "https://apilist.tronscanapi.com/api",
|
| 24 |
"rate_limit": "varies",
|
| 25 |
"description": "TRON blockchain explorer"
|
| 26 |
}
|
| 27 |
},
|
| 28 |
-
|
| 29 |
"market_data": {
|
| 30 |
"coinmarketcap": {
|
| 31 |
"keys": [
|
| 32 |
"04cf4b5b-9868-465c-8ba0-9f2e78c92eb1",
|
| 33 |
"b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c"
|
| 34 |
],
|
|
|
|
| 35 |
"url": "https://pro-api.coinmarketcap.com/v1",
|
| 36 |
"rate_limit": "333 req/day per key",
|
| 37 |
"endpoints": {
|
|
@@ -41,8 +45,19 @@
|
|
| 41 |
},
|
| 42 |
"description": "Top cryptocurrency market data platform"
|
| 43 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
"cryptocompare": {
|
| 45 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
"url": "https://min-api.cryptocompare.com/data",
|
| 47 |
"rate_limit": "100,000 req/month (free tier)",
|
| 48 |
"endpoints": {
|
|
@@ -54,10 +69,14 @@
|
|
| 54 |
"description": "Comprehensive crypto data and news"
|
| 55 |
}
|
| 56 |
},
|
| 57 |
-
|
| 58 |
"news": {
|
| 59 |
"newsapi": {
|
| 60 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
"url": "https://newsapi.org/v2",
|
| 62 |
"rate_limit": "100 req/day (free)",
|
| 63 |
"endpoints": {
|
|
@@ -65,44 +84,34 @@
|
|
| 65 |
"top_headlines": "/top-headlines"
|
| 66 |
},
|
| 67 |
"description": "General news API (includes crypto)"
|
| 68 |
-
},
|
| 69 |
-
"coindesk": {
|
| 70 |
-
"key": "313f415173eb92928568d91eee6fd91d0c7569a56a9c7579181b7a083a740318",
|
| 71 |
-
"url": "https://api.coindesk.com/v2",
|
| 72 |
-
"rate_limit": "Varies by plan",
|
| 73 |
-
"endpoints": {
|
| 74 |
-
"price": "/bpi/currentprice/{currency}.json",
|
| 75 |
-
"historical": "/bpi/historical/close.json",
|
| 76 |
-
"news": "/news"
|
| 77 |
-
},
|
| 78 |
-
"description": "Bitcoin Price Index and crypto news"
|
| 79 |
}
|
| 80 |
},
|
| 81 |
-
|
| 82 |
"sentiment": {
|
| 83 |
"custom_sentiment_api": {
|
| 84 |
"key": "${SENTIMENT_API_KEY}",
|
| 85 |
"description": "Custom sentiment analysis API"
|
| 86 |
}
|
| 87 |
},
|
| 88 |
-
|
| 89 |
"ai_models": {
|
| 90 |
"huggingface": {
|
| 91 |
"key": "${HF_TOKEN}",
|
|
|
|
| 92 |
"url": "https://api-inference.huggingface.co/models",
|
| 93 |
"rate_limit": "varies"
|
| 94 |
}
|
| 95 |
},
|
| 96 |
-
|
| 97 |
"aggregated_sources": {
|
| 98 |
"hf_crypto_resources_api": {
|
| 99 |
"name": "Crypto Resources API (HuggingFace Space)",
|
| 100 |
-
"url": "https://really-amin-
|
| 101 |
-
"docs_url": "https://really-amin-
|
| 102 |
"auth_required": false,
|
| 103 |
"rate_limit": "unlimited",
|
| 104 |
"endpoints": {
|
| 105 |
-
"health": "/
|
| 106 |
"top_coins": "/api/coins/top",
|
| 107 |
"trending": "/api/trending",
|
| 108 |
"market_overview": "/api/market",
|
|
@@ -112,25 +121,14 @@
|
|
| 112 |
"categories": "/api/categories",
|
| 113 |
"resources_by_category": "/api/resources/category/{category}",
|
| 114 |
"providers": "/api/providers",
|
| 115 |
-
"system_status": "/api/status"
|
|
|
|
| 116 |
},
|
| 117 |
-
"categories_available": [
|
| 118 |
-
"rpc_nodes",
|
| 119 |
-
"block_explorers",
|
| 120 |
-
"market_data_apis",
|
| 121 |
-
"news_apis",
|
| 122 |
-
"sentiment_apis",
|
| 123 |
-
"onchain_analytics_apis",
|
| 124 |
-
"whale_tracking_apis",
|
| 125 |
-
"hf_resources",
|
| 126 |
-
"free_http_endpoints",
|
| 127 |
-
"cors_proxies"
|
| 128 |
-
],
|
| 129 |
"verified": true,
|
| 130 |
-
"last_verified": "
|
| 131 |
}
|
| 132 |
},
|
| 133 |
-
|
| 134 |
"notifications": {
|
| 135 |
"telegram": {
|
| 136 |
"enabled": true,
|
|
@@ -138,19 +136,35 @@
|
|
| 138 |
"chat_id": "${TELEGRAM_CHAT_ID}"
|
| 139 |
}
|
| 140 |
},
|
| 141 |
-
|
| 142 |
"environment_variables": {
|
| 143 |
-
"description": "Set these
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
"variables": [
|
| 145 |
-
"
|
| 146 |
-
"ETHERSCAN_BACKUP_KEY=",
|
| 147 |
-
"BSCSCAN_KEY=",
|
| 148 |
-
"TRONSCAN_KEY=",
|
| 149 |
"COINMARKETCAP_KEY_1=",
|
| 150 |
"COINMARKETCAP_KEY_2=",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
"NEWSAPI_KEY=",
|
| 152 |
-
"
|
| 153 |
"HF_TOKEN=",
|
|
|
|
| 154 |
"TELEGRAM_BOT_TOKEN=",
|
| 155 |
"TELEGRAM_CHAT_ID="
|
| 156 |
]
|
|
|
|
| 1 |
{
|
| 2 |
"description": "API Keys Configuration for Crypto Intelligence Hub",
|
| 3 |
+
"last_updated": "2026-06-07",
|
| 4 |
+
|
| 5 |
"block_explorers": {
|
| 6 |
"etherscan": {
|
| 7 |
"keys": [
|
| 8 |
"SZHYFZK2RR8H9TIMJBVW54V4H81K2Z2KR2",
|
| 9 |
"T6IR8VJHX2NE6ZJW2S3FDVN1TYG4PYYI45"
|
| 10 |
],
|
| 11 |
+
"env_aliases": ["ETHERSCAN_KEY_1", "ETHERSCAN_KEY_2", "ETHERSCAN_API_KEY"],
|
| 12 |
"url": "https://api.etherscan.io/api",
|
| 13 |
"rate_limit": "5 req/sec",
|
| 14 |
"description": "Ethereum blockchain explorer"
|
| 15 |
},
|
| 16 |
"bscscan": {
|
| 17 |
"key": "K62RKHGXTDCG53RU4MCG6XABIMJKTN19IT",
|
| 18 |
+
"env_aliases": ["BSCSCAN_API_KEY", "BSCSCAN_KEY"],
|
| 19 |
"url": "https://api.bscscan.com/api",
|
| 20 |
"rate_limit": "5 req/sec",
|
| 21 |
"description": "BNB Smart Chain blockchain explorer"
|
| 22 |
},
|
| 23 |
"tronscan": {
|
| 24 |
"key": "7ae72726-bffe-4e74-9c33-97b761eeea21",
|
| 25 |
+
"env_aliases": ["TRONSCAN_API_KEY", "TRONSCAN_KEY"],
|
| 26 |
"url": "https://apilist.tronscanapi.com/api",
|
| 27 |
"rate_limit": "varies",
|
| 28 |
"description": "TRON blockchain explorer"
|
| 29 |
}
|
| 30 |
},
|
| 31 |
+
|
| 32 |
"market_data": {
|
| 33 |
"coinmarketcap": {
|
| 34 |
"keys": [
|
| 35 |
"04cf4b5b-9868-465c-8ba0-9f2e78c92eb1",
|
| 36 |
"b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c"
|
| 37 |
],
|
| 38 |
+
"env_aliases": ["COINMARKETCAP_KEY_1", "COINMARKETCAP_KEY_2", "COINMARKETCAP_API_KEY"],
|
| 39 |
"url": "https://pro-api.coinmarketcap.com/v1",
|
| 40 |
"rate_limit": "333 req/day per key",
|
| 41 |
"endpoints": {
|
|
|
|
| 45 |
},
|
| 46 |
"description": "Top cryptocurrency market data platform"
|
| 47 |
},
|
| 48 |
+
"coingecko": {
|
| 49 |
+
"key": "${COINGECKO_API_KEY}",
|
| 50 |
+
"env_aliases": ["COINGECKO_API_KEY", "COINGECKO_KEY"],
|
| 51 |
+
"url": "https://api.coingecko.com/api/v3",
|
| 52 |
+
"rate_limit": "free tier / pro with key",
|
| 53 |
+
"description": "CoinGecko market data (optional key reduces 429)"
|
| 54 |
+
},
|
| 55 |
"cryptocompare": {
|
| 56 |
+
"keys": [
|
| 57 |
+
"313f415173eb92928568d91eee6fd91d0c7569a56a9c7579181b7a083a740318",
|
| 58 |
+
"e79c8e6d4c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f"
|
| 59 |
+
],
|
| 60 |
+
"env_aliases": ["CRYPTOCOMPARE_API_KEY", "CRYPTOCOMPARE", "CRYPTOCOMPARE_KEY"],
|
| 61 |
"url": "https://min-api.cryptocompare.com/data",
|
| 62 |
"rate_limit": "100,000 req/month (free tier)",
|
| 63 |
"endpoints": {
|
|
|
|
| 69 |
"description": "Comprehensive crypto data and news"
|
| 70 |
}
|
| 71 |
},
|
| 72 |
+
|
| 73 |
"news": {
|
| 74 |
"newsapi": {
|
| 75 |
+
"keys": [
|
| 76 |
+
"968a5e25552b4cb5ba3280361d8444ab",
|
| 77 |
+
"pub_346789abc123def456789ghi012345jkl"
|
| 78 |
+
],
|
| 79 |
+
"env_aliases": ["NEWSAPI_KEY", "NEWS_API_KEY"],
|
| 80 |
"url": "https://newsapi.org/v2",
|
| 81 |
"rate_limit": "100 req/day (free)",
|
| 82 |
"endpoints": {
|
|
|
|
| 84 |
"top_headlines": "/top-headlines"
|
| 85 |
},
|
| 86 |
"description": "General news API (includes crypto)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
},
|
| 89 |
+
|
| 90 |
"sentiment": {
|
| 91 |
"custom_sentiment_api": {
|
| 92 |
"key": "${SENTIMENT_API_KEY}",
|
| 93 |
"description": "Custom sentiment analysis API"
|
| 94 |
}
|
| 95 |
},
|
| 96 |
+
|
| 97 |
"ai_models": {
|
| 98 |
"huggingface": {
|
| 99 |
"key": "${HF_TOKEN}",
|
| 100 |
+
"env_aliases": ["HF_TOKEN", "HUGGINGFACE_TOKEN"],
|
| 101 |
"url": "https://api-inference.huggingface.co/models",
|
| 102 |
"rate_limit": "varies"
|
| 103 |
}
|
| 104 |
},
|
| 105 |
+
|
| 106 |
"aggregated_sources": {
|
| 107 |
"hf_crypto_resources_api": {
|
| 108 |
"name": "Crypto Resources API (HuggingFace Space)",
|
| 109 |
+
"url": "https://really-amin-datasourceforcryptocurrency-2.hf.space",
|
| 110 |
+
"docs_url": "https://really-amin-datasourceforcryptocurrency-2.hf.space/docs",
|
| 111 |
"auth_required": false,
|
| 112 |
"rate_limit": "unlimited",
|
| 113 |
"endpoints": {
|
| 114 |
+
"health": "/status",
|
| 115 |
"top_coins": "/api/coins/top",
|
| 116 |
"trending": "/api/trending",
|
| 117 |
"market_overview": "/api/market",
|
|
|
|
| 121 |
"categories": "/api/categories",
|
| 122 |
"resources_by_category": "/api/resources/category/{category}",
|
| 123 |
"providers": "/api/providers",
|
| 124 |
+
"system_status": "/api/status",
|
| 125 |
+
"rotation": "/api/resources/rotation"
|
| 126 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
"verified": true,
|
| 128 |
+
"last_verified": "2026-06-07"
|
| 129 |
}
|
| 130 |
},
|
| 131 |
+
|
| 132 |
"notifications": {
|
| 133 |
"telegram": {
|
| 134 |
"enabled": true,
|
|
|
|
| 136 |
"chat_id": "${TELEGRAM_CHAT_ID}"
|
| 137 |
}
|
| 138 |
},
|
| 139 |
+
|
| 140 |
"environment_variables": {
|
| 141 |
+
"description": "Set these as Hugging Face Space secrets (Settings → Variables and secrets)",
|
| 142 |
+
"required": [
|
| 143 |
+
"CRYPTOCOMPARE_API_KEY",
|
| 144 |
+
"COINMARKETCAP_KEY_1",
|
| 145 |
+
"ETHERSCAN_KEY_1"
|
| 146 |
+
],
|
| 147 |
+
"recommended": [
|
| 148 |
+
"COINMARKETCAP_KEY_2",
|
| 149 |
+
"ETHERSCAN_KEY_2",
|
| 150 |
+
"BSCSCAN_API_KEY",
|
| 151 |
+
"TRONSCAN_API_KEY",
|
| 152 |
+
"NEWSAPI_KEY",
|
| 153 |
+
"HF_TOKEN",
|
| 154 |
+
"COINGECKO_API_KEY"
|
| 155 |
+
],
|
| 156 |
"variables": [
|
| 157 |
+
"CRYPTOCOMPARE_API_KEY=",
|
|
|
|
|
|
|
|
|
|
| 158 |
"COINMARKETCAP_KEY_1=",
|
| 159 |
"COINMARKETCAP_KEY_2=",
|
| 160 |
+
"ETHERSCAN_KEY_1=",
|
| 161 |
+
"ETHERSCAN_KEY_2=",
|
| 162 |
+
"BSCSCAN_API_KEY=",
|
| 163 |
+
"TRONSCAN_API_KEY=",
|
| 164 |
"NEWSAPI_KEY=",
|
| 165 |
+
"COINGECKO_API_KEY=",
|
| 166 |
"HF_TOKEN=",
|
| 167 |
+
"SENTIMENT_API_KEY=",
|
| 168 |
"TELEGRAM_BOT_TOKEN=",
|
| 169 |
"TELEGRAM_CHAT_ID="
|
| 170 |
]
|