Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: MarginPad Free Crypto Macro API
version: 2.9.1
description: Free, keyless, CORS-enabled crypto market-data API. Live prices, OHLC candles, a scored futures screener, funding rates, open interest, long/short ratios, liquidations, an economic calendar, the Fear & Greed index, top coins, global market stats, DeFi TVL, trading calculators, and a free paper-trading REST API for testing bots. No API key. No sign-up. about 60 requests/minute per client. Every response uses the envelope { ok, data, error, ts }, except the four liquidation-collector passthroughs (feed, liquidations/live, liquidations/recent, clusters), which return the raw collector object and are marked as such.
contact:
name: MarginPad
url: https://marginpad.io/free-crypto-api/
license:
name: Free for public use
servers:
- url: https://marginpad.io
description: Production
tags:
- name: Macro
description: Economic calendar, Fear & Greed, global stats, DeFi TVL
paths:
/api/v1/calendar:
get:
tags:
- Macro
summary: Crypto economic calendar
description: FOMC, CPI, NFP, options expiry and crypto milestones with exact UTC timestamps. Omit params for the upcoming window; pass year for a full year incl. history.
parameters:
- name: year
in: query
required: false
description: Full year 2023-2027 for the whole year incl. past events. Omit for the upcoming window.
schema:
type: string
example: '2026'
responses:
'200':
description: ok
operationId: getApiV1Calendar
x-operation-id-source: derived
/api/v1/fear-greed:
get:
tags:
- Macro
summary: Fear & Greed index
description: Current crypto Fear & Greed value (0-100) and classification.
responses:
'200':
description: ok
operationId: getApiV1FearGreed
x-operation-id-source: derived
/api/v1/coins:
get:
tags:
- Macro
summary: Top coins by market cap
description: 'Top ~250 coins: price, market cap, 1h/24h/7d change, sparkline. Optional category filter.'
parameters:
- name: cat
in: query
required: false
description: CoinGecko category id, e.g. layer-1, decentralized-finance-defi, meme-token, artificial-intelligence.
schema:
type: string
example: layer-1
responses:
'200':
description: ok
operationId: getApiV1Coins
x-operation-id-source: derived
/api/v1/global:
get:
tags:
- Macro
summary: Global market stats
description: Total market cap, 24h volume, BTC dominance.
responses:
'200':
description: ok
operationId: getApiV1Global
x-operation-id-source: derived
/api/v1/trending:
get:
tags:
- Macro
summary: Trending coins
description: Currently trending coins (CoinGecko search trending).
responses:
'200':
description: ok
operationId: getApiV1Trending
x-operation-id-source: derived
/api/v1/defi:
get:
tags:
- Macro
summary: DeFi TVL overview
description: Total DeFi TVL, top chains, biggest protocols, largest stablecoins (DefiLlama-aggregated).
responses:
'200':
description: ok
operationId: getApiV1Defi
x-operation-id-source: derived
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Required for paper-trading endpoints; OPTIONAL on /api/v1/* data endpoints, where sending it moves the call from the 60/minute per-IP limit to the key’s own budget (120/minute on Free, 600 on API Pro, 2000 on Max, 5000 on Business). Mint a key at POST /api/bot/key while signed in, or on https://marginpad.io/trading-api/.
externalDocs:
description: Full manual with curl / JS / Python examples
url: https://marginpad.io/free-crypto-api/