🔌 Public API

TronScan.energy API v1

Real-time TRON energy and bandwidth market data. Prices from 10+ providers, live sell-side offers, historical data and instant quotes — all in one endpoint.

Base URL  https://tronscan.energy/api/v1
Format  JSON
Auth  X-API-Key header
🚀
Quick Start
Free API key — Request access using the form at the bottom of this page. Keys are issued manually, usually within 24h.

All requests require an X-API-Key header. Here's how to get energy prices in one call:

Shell
curl -H "X-API-Key: YOUR_API_KEY" \
     "https://tronscan.energy/api/v1/rates?resource=energy&best=1"
PHP
$ch = curl_init('https://tronscan.energy/api/v1/rates?resource=energy&best=1');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch), true);
Python
import requests
r = requests.get(
    'https://tronscan.energy/api/v1/rates',
    headers={'X-API-Key': 'YOUR_API_KEY'},
    params={'resource': 'energy', 'best': 1}
)
data = r.json()

Every response follows the same structure:

Response envelope
{
  "success": true,
  "ts": "2026-03-14T10:00:00+00:00",
  "meta": { "provider_count": 8, "total_tiers": 64 },
  "data": [ ... ]
}
🔑
Authentication

Pass your API key in the X-API-Key HTTP header with every request. Query-string passing (?api_key=...) is supported but deprecated.

Header (recommended)
X-API-Key: ts_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Keep your key private. Do not expose it in client-side JavaScript or public repositories. If compromised, contact us to revoke and reissue.
📊
Plans & Rate Limits
Free
60
requests / hour
All read endpoints
Auto-approved
No create-order
Partner
∞
unlimited
V1 + V2 (coming)
Webhooks
SLA guarantee

Rate limit headers are returned on every response: X-RateLimit-Limit and X-RateLimit-Remaining. Exceeding the limit returns HTTP 429.

⚠️
Error Codes
HTTPcodeMeaning
200—Success
400missing_parameterRequired parameter not provided
400invalid_parameterParameter value not valid
401missing_api_keyX-API-Key header not present
401invalid_api_keyKey not found or hash mismatch
403api_key_inactiveKey pending approval or revoked
403endpoint_not_allowedYour plan does not include this endpoint
404provider_not_foundSlug does not match any active provider
429rate_limit_exceededHourly quota exceeded
503database_unavailableTemporary backend issue
Error response
{
  "success": false,
  "error": {
    "code":    "invalid_api_key",
    "message": "Invalid API key"
  },
  "ts": "2026-03-14T10:00:00+00:00"
}
⚡
Endpoints
GET
/api/v1/rates Buy-side prices from all active providers
▼

Returns price tiers from provider_price_tiers, updated every ~15 min by the cron. Each tier includes standard and FAST price when available.

Query Parameters
ParameterTypeRequiredDescriptionDefault
resource string optional energy | bandwidth | all energy
duration integer optional Filter by exact duration in seconds (e.g. 3600, 86400) —
best integer optional Set to 1 to return only the best price per duration tier 0
provider string optional Filter by provider slug (e.g. feee, tronsave) —
resource string optional
energy | bandwidth | all
default: energy
duration integer optional
Filter by exact duration in seconds (e.g. 3600, 86400)
best integer optional
Set to 1 to return only the best price per duration tier
default: 0
provider string optional
Filter by provider slug (e.g. feee, tronsave)
Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/rates?resource=energy&best=1"
Try it live
Response

                
Example Response
{
  "success": true,
  "ts": "2026-03-14T10:00:00+00:00",
  "meta": { "resource": "energy", "provider_count": 8, "total_tiers": 64 },
  "data": {
    "energy": [
      {
        "duration_sec": 3600,
        "duration_label": "1h",
        "providers": [
          {
            "name":           "Feee.io",
            "slug":           "feee_io",
            "price_sun":      35,
            "price_sun_fast": null,
            "qty_available":  9000000,
            "qty_min":        32000,
            "updated_at":     "2026-03-14 10:00:00"
          }
        ]
      }
    ]
  }
}
GET
/api/v1/offers Live sell-side orders from all providers
▼

Returns active sell orders from sell_offers, updated every 5 min. Only orders with quantity_available > 0 fetched in the last 15 min are returned.

Query Parameters
ParameterTypeRequiredDescriptionDefault
resource string optional energy | bandwidth energy
provider string optional Provider slug: feee, tronify, tronenergize, tronenergymarket —
min_qty integer optional Minimum quantity_available —
max_price integer optional Maximum price_sun —
sort string optional price_asc | price_desc | qty_desc | income_desc price_asc
page integer optional Page number 1
limit integer optional Results per page (max 100) 20
resource string optional
energy | bandwidth
default: energy
provider string optional
Provider slug: feee, tronify, tronenergize, tronenergymarket
min_qty integer optional
Minimum quantity_available
max_price integer optional
Maximum price_sun
sort string optional
price_asc | price_desc | qty_desc | income_desc
default: price_asc
page integer optional
Page number
default: 1
limit integer optional
Results per page (max 100)
default: 20
Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/offers?resource=energy&sort=price_desc&limit=5"
Try it live
Response

                
Example Response
{
  "meta": { "total": 328, "page": 1, "limit": 5, "has_more": true },
  "data": [
    {
      "provider":        { "name": "Feee.io", "slug": "feee_io" },
      "order_no":        "2304190664759388169206",
      "price_sun":       105,
      "quantity":        { "available": 399989, "total": 500000, "min": 100000 },
      "duration":        { "days": 3, "label": "3 days" },
      "income":          { "max_trx": 94.49, "min_trx": 18.9 },
      "is_partial_fill": true,
      "is_lock":         true
    }
  ]
}
GET
/api/v1/market Aggregated sell-side market snapshot
▼

Single-call overview of the current market state: total available energy/bandwidth, price range, top offer.

Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/market"
Try it live
Response

                
Example Response
{
  "data": {
    "energy": {
      "total_offers":     328,
      "total_available":  1645427335,
      "price_min_sun":    30,
      "price_max_sun":    60,
      "price_avg_sun":    38.4,
      "active_providers": 4,
      "top_offer": {
        "provider":      "TronEnergy.Market",
        "price_sun":     60,
        "qty_available": 41273711,
        "duration_days": 14
      }
    },
    "bandwidth": { "total_offers": 12, "price_min_sun": 600 }
  }
}
GET
/api/v1/quote Instant cost estimate for a given quantity and duration
▼

Calculates total TRX cost across all providers for the requested qty × duration. Useful for bot decision logic. Returns both standard and FAST price when available.

Query Parameters
ParameterTypeRequiredDescriptionDefault
qty integer required Energy or bandwidth amount to purchase —
duration integer required Rental duration in seconds (e.g. 86400 = 1 day) —
resource string optional energy | bandwidth energy
provider string optional Filter to a specific provider slug —
qty integer required
Energy or bandwidth amount to purchase
duration integer required
Rental duration in seconds (e.g. 86400 = 1 day)
resource string optional
energy | bandwidth
default: energy
provider string optional
Filter to a specific provider slug
Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/quote?qty=65000&duration=86400&resource=energy"
Try it live
Response

                
Example Response
{
  "meta": {
    "qty": 65000, "duration_sec": 86400, "duration_days": 1,
    "best_price_sun": 35, "best_total_trx": 2.275
  },
  "data": [
    {
      "provider":           "Feee.io",
      "price_sun":          35,
      "price_sun_fast":     null,
      "total_cost_trx":     2.275,
      "qty_available":      9000000,
      "qty_sufficient":     true,
      "duration_label":     "1g"
    }
  ]
}
GET
/api/v1/providers List of all active providers with metadata
▼

Returns slugs, URLs, min quantities, current price ranges and availability for each active provider. Use slugs as the provider param in other endpoints.

Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/providers"
Try it live
Response

                
Example Response
{
  "meta": { "total": 10 },
  "data": [
    {
      "name":           "Feee.io",
      "slug":           "feee_io",
      "url":            "https://feee.io",
      "ref_url":        "https://feee.io?ref=VVR6",
      "min_qty_energy": 32000,
      "energy_price_sun": { "min": 35, "max": 120 },
      "energy_available": 34264169,
      "tier_count":     8,
      "prices_updated_at": "2026-03-14 10:00:00"
    }
  ]
}
GET
/api/v1/history Historical buy-side prices for a provider
▼

Returns price time-series from price_snapshots. Data points are recorded every ~15 min. Up to 90 days available.

Query Parameters
ParameterTypeRequiredDescriptionDefault
provider string required Provider slug (from /providers) —
field string optional 10m | 1h | 3h | 6h | 1g | 2g | 3gg | 30gg (prefix bw_ for bandwidth) 1g
days integer optional How many days back (max 90) 7
resource string optional energy | bandwidth (auto-prefixes field) energy
provider string required
Provider slug (from /providers)
field string optional
10m | 1h | 3h | 6h | 1g | 2g | 3gg | 30gg (prefix bw_ for bandwidth)
default: 1g
days integer optional
How many days back (max 90)
default: 7
resource string optional
energy | bandwidth (auto-prefixes field)
default: energy
Example Request
curl -H "X-API-Key: YOUR_KEY" \
     "https://tronscan.energy/api/v1/history?provider=tronsave&field=1g&days=30"
Try it live
Response

                
Example Response
{
  "meta": {
    "provider": "TronSave", "field": "1g", "days": 30,
    "data_points": 2880, "price_min": 30, "price_max": 65, "price_avg": 41.2
  },
  "data": [
    { "ts": "2026-02-14 00:00:00", "price_sun": 40 },
    { "ts": "2026-02-14 00:15:00", "price_sun": 40 },
    { "ts": "2026-02-14 00:30:00", "price_sun": 38 }
  ]
}
📬
Request an API Key
API keys are free. Fill in the form below and we'll review your request within 24h. Start with the Free plan (60 req/h) — upgrade to Developer anytime.