{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:blockchain-info/chart":{"get":{"operationId":"finance_blockchain_info_chart","summary":"Chart","description":"Time series for a Bitcoin network metric.","tags":["finance"],"parameters":[{"name":"chart","in":"query","required":false,"schema":{"type":"string","enum":["mempool-size","mempool-count","mempool-growth","transactions-per-second","utxo-count","avg-confirmation-time","median-confirmation-time","market-price","market-cap","trade-volume","total-bitcoins","avg-block-size","blocks-size","n-transactions","n-transactions-total","n-transactions-per-block","n-transactions-excluding-popular","n-unique-addresses","hash-rate","difficulty","miners-revenue","transaction-fees","transaction-fees-usd","cost-per-transaction","cost-per-transaction-percent","output-volume","estimated-transaction-volume","estimated-transaction-volume-usd","my-wallet-n-users"],"default":"mempool-size"}},{"name":"timespan","in":"query","required":false,"description":"e.g. 7days, 1year, all","schema":{"type":"string","description":"e.g. 7days, 1year, all"},"example":"30days"},{"name":"start","in":"query","required":false,"description":"Start date (YYYY-MM-DD)","schema":{"type":"string","description":"Start date (YYYY-MM-DD)"}},{"name":"rollingAverage","in":"query","required":false,"schema":{"type":"string"},"example":"7days"},{"name":"sampled","in":"query","required":false,"schema":{"type":"string","enum":["true","false"],"default":"false"}},{"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":900,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:blockchain-info/stats":{"get":{"operationId":"finance_blockchain_info_stats","summary":"Stats","description":"Snapshot of Bitcoin price, hash rate, difficulty, fees and volume.","tags":["finance"],"parameters":[],"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":300,"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"}}}}}}}