---
updatedAt: 2026-07-29T09:33:51.000Z
---

# Get offers statistics

Returns general statistics over offers.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "CantonView Public API",
    "description": "Public API for accessing Canton Network explorer data through CCView",
    "contact": {
      "name": "API Maintainer",
      "email": "cantonview@pixelplex.io"
    },
    "license": {
      "name": ""
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://ccview.io",
      "description": "Production HTTPS server"
    }
  ],
  "paths": {
    "/api/offers/stats": {
      "get": {
        "tags": [
          "Transfers, Offers & Preapprovals"
        ],
        "summary": "Get offers statistics",
        "description": "Returns general statistics over offers.",
        "operationId": "offers_stats_v1",
        "responses": {
          "200": {
            "description": "Offers statistics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OffersStat"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "timestamp"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Detailed message description.",
                      "example": "message error"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "HTTP status code.",
                      "maximum": 599,
                      "minimum": 400
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp of error occurrence."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "timestamp"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Detailed message description.",
                      "example": "message error"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "HTTP status code.",
                      "maximum": 599,
                      "minimum": 400
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp of error occurrence."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "timestamp"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Detailed message description.",
                      "example": "message error"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "HTTP status code.",
                      "maximum": 599,
                      "minimum": 400
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp of error occurrence."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "timestamp"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Detailed message description.",
                      "example": "message error"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "HTTP status code.",
                      "maximum": 599,
                      "minimum": 400
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp of error occurrence."
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not Implemented",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "message",
                    "timestamp"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Detailed message description.",
                      "example": "message error"
                    },
                    "status": {
                      "type": "integer",
                      "format": "int32",
                      "description": "HTTP status code.",
                      "maximum": 599,
                      "minimum": 400
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Timestamp of error occurrence."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "OffersStat": {
        "type": "object",
        "description": "General statistics over offers.",
        "required": [
          "total_count",
          "pending_count",
          "completed_count",
          "expire_count",
          "rejected_count",
          "withdrawn_count",
          "failed_count",
          "preapproval_count"
        ],
        "properties": {
          "completed_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `completed`.",
            "example": "66",
            "minimum": 0
          },
          "expire_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `expired`.",
            "example": "77",
            "minimum": 0
          },
          "failed_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `failed`.",
            "example": "3",
            "minimum": 0
          },
          "pending_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `pending`.",
            "example": "12",
            "minimum": 0
          },
          "preapproval_count": {
            "type": "integer",
            "format": "integer",
            "description": "Active preapprovals count.",
            "example": "23484",
            "minimum": 0
          },
          "rejected_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `rejected`.",
            "example": "33",
            "minimum": 0
          },
          "total_count": {
            "type": "integer",
            "format": "integer",
            "description": "Total offers count in history.",
            "example": "134",
            "minimum": 0
          },
          "withdrawn_count": {
            "type": "integer",
            "format": "integer",
            "description": "Offers count in history in status `withdrawn`.",
            "example": "56",
            "minimum": 0
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Transfers, Offers & Preapprovals",
      "description": "Token transfers, offers, and preapprovals"
    }
  ],
  "externalDocs": {
    "url": "https://swagger.io/resources/open-api/",
    "description": "OpenAPI Documentation Reference"
  }
}
```