{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:defillama/chains":{"get":{"operationId":"finance_defillama_chains","summary":"Chain TVL","description":"Current TVL of every chain, largest first.","tags":["finance"],"parameters":[{"name":"length","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"minTvl","in":"query","required":false,"schema":{"type":"number","minimum":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:defillama/stablecoins":{"get":{"operationId":"finance_defillama_stablecoins","summary":"Stablecoins","description":"Stablecoins ranked by circulating supply.","tags":["finance"],"parameters":[{"name":"length","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"peg","in":"query","required":false,"description":"Peg type, e.g. peggedUSD, peggedEUR","schema":{"type":"string","description":"Peg type, e.g. peggedUSD, peggedEUR"},"example":"peggedUSD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:defillama/stablecoin-chains":{"get":{"operationId":"finance_defillama_stablecoin_chains","summary":"Stablecoin Chains","description":"Stablecoin supply held on each chain.","tags":["finance"],"parameters":[{"name":"peg","in":"query","required":false,"schema":{"type":"string"},"example":"peggedUSD"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"minCirculating","in":"query","required":false,"schema":{"type":"number","minimum":0}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:defillama/protocols":{"get":{"operationId":"finance_defillama_protocols","summary":"Protocols","description":"DeFi protocols with TVL and recent change, filterable by category or chain.","tags":["finance"],"parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string"},"example":"Dexs"},{"name":"chain","in":"query","required":false,"schema":{"type":"string"},"example":"Ethereum"},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"minTvl","in":"query","required":false,"schema":{"type":"number","minimum":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"minimum":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"minimum":1,"maximum":500}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:defillama/chain-tvl-history":{"get":{"operationId":"finance_defillama_chain_tvl_history","summary":"Chain TVL History","description":"Daily historical TVL for all chains combined or one chain.","tags":["finance"],"parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string"},"example":"Ethereum"},{"name":"from","in":"query","required":false,"description":"Unix seconds or ISO date","schema":{"type":"string","description":"Unix seconds or ISO date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Keep only the latest N points","schema":{"type":"integer","minimum":1,"description":"Keep only the latest N points"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:defillama/stablecoin-history":{"get":{"operationId":"finance_defillama_stablecoin_history","summary":"Stablecoin History","description":"Daily total stablecoin market cap, overall or on one chain.","tags":["finance"],"parameters":[{"name":"peg","in":"query","required":false,"description":"Only sum this peg type, e.g. peggedUSD","schema":{"type":"string","description":"Only sum this peg type, e.g. peggedUSD"}},{"name":"chain","in":"query","required":false,"schema":{"type":"string"},"example":"Ethereum"},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}