{"openapi":"3.1.0","info":{"title":"ChainCensus Data API","version":"1.0.0","description":"Public crypto datasets with timestamps, source pages and attribution. No API key required.","license":{"name":"Free with attribution","url":"https://chaincensus.com/terms"}},"servers":[{"url":"https://chaincensus.com"}],"externalDocs":{"description":"Human-readable API documentation","url":"https://chaincensus.com/api-docs"},"paths":{"/api/data/fees":{"get":{"operationId":"getLatestFees","summary":"Latest Crypto Fees Index reading","responses":{"200":{"description":"Latest stored reading","content":{"application/json":{"schema":{"type":"object","required":["dataset","updatedAt","snapshotUrl","data","attribution"],"properties":{"dataset":{"const":"fees"},"updatedAt":{"type":"string","format":"date-time"},"snapshotUrl":{"type":"string","format":"uri"},"data":{"$ref":"#/components/schemas/FeesSnapshot"},"attribution":{"type":"string","description":"Visible attribution required when data is republished."}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/data/fees/snapshots/{id}":{"get":{"operationId":"getFeesSnapshot","summary":"Immutable Fees Index reading","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1},"description":"Use the snapshot id supplied by the latest fees response."}],"responses":{"200":{"description":"Exact stored reading","content":{"application/json":{"schema":{"type":"object","required":["dataset","snapshotId","immutable","updatedAt","data","attribution"],"properties":{"dataset":{"const":"fees"},"snapshotId":{"type":"integer"},"immutable":{"const":true},"updatedAt":{"type":"string","format":"date-time"},"data":{"$ref":"#/components/schemas/FeesSnapshot"},"attribution":{"type":"string","description":"Visible attribution required when data is republished."}}}}}},"404":{"description":"Snapshot not found"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/data/dead-coins":{"get":{"operationId":"getDeadCoins","summary":"Curated Dead Coins Database","responses":{"200":{"description":"Documented cases with evidence URLs","content":{"application/json":{"schema":{"type":"object","required":["dataset","version","stats","coins","attribution"],"properties":{"dataset":{"const":"dead-coins"},"version":{"type":"string"},"stats":{"type":"object"},"coins":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string","description":"Visible attribution required when data is republished."}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/data/government-holdings":{"get":{"operationId":"getGovernmentHoldings","summary":"Government Crypto Holdings records","responses":{"200":{"description":"Confirmed, estimated and disputed records","content":{"application/json":{"schema":{"type":"object","required":["dataset","version","stats","holdings","attribution"],"properties":{"dataset":{"const":"government-holdings"},"version":{"type":"string"},"stats":{"type":"object"},"holdings":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string","description":"Visible attribution required when data is republished."}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"schemas":{"FeesSnapshot":{"type":"object","required":["index","chains","collectedAt","medianSendCostUsd"],"properties":{"index":{"type":"number","minimum":0,"maximum":100},"chains":{"type":"array","items":{"type":"object","required":["id","name","sendCostUsd"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"estimate":{"type":"boolean"},"sendCostUsd":{"type":"number","minimum":0},"swapCostUsd":{"type":["number","null"],"minimum":0}}}},"collectedAt":{"type":"string","format":"date-time"},"medianSendCostUsd":{"type":"number","minimum":0}}}},"responses":{"Unavailable":{"description":"Dataset is temporarily unavailable","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}}