# /forms/{formId}/submissions/count

Counting form submissions

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/forms/{formId}/submissions/count": {
      "get": {
        "tags": [
          "Submissions",
          "Classic"
        ],
        "description": "Counting form submissions",
        "operationId": "countFormSubmissions",
        "parameters": [
          {
            "name": "formId",
            "in": "path",
            "description": "The ID of the form",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "description": "When to start submission count from.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CountFormSubmissionsApiDto/properties/startDate"
            }
          },
          {
            "name": "lookbackPeriod",
            "in": "query",
            "description": "How many days to count backwards from (maximum is 7 days).",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CountFormSubmissionsApiDto/properties/lookbackPeriod"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormSubmissionCountApiDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FormSubmissionCountApiDto": {
        "title": "Form Submission Count",
        "description": "Form submission count response",
        "properties": {
          "totalSubmissions": {
            "description": "Total submissions",
            "type": "integer",
            "nullable": false
          },
          "totalSubmissionsByDay": {
            "description": "Total submissions by day",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormSubmissionCountByDayApiDto"
            },
            "nullable": false
          }
        },
        "type": "object"
      },
      "FormSubmissionCountByDayApiDto": {
        "title": "Form Submission Count By Day",
        "description": "Form submission count by day response",
        "properties": {
          "total": {
            "description": "Total",
            "type": "integer",
            "nullable": false
          },
          "date": {
            "description": "Date",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      },
      "CountFormSubmissionsApiDto": {
        "title": "Count Form Submissions",
        "description": "Count form submissions data",
        "properties": {
          "startDate": {
            "description": "When to start submission count from.",
            "type": "string",
            "nullable": true
          },
          "lookbackPeriod": {
            "description": "How many days to count backwards from (maximum is 7 days).",
            "type": "integer",
            "nullable": true
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Submissions",
      "description": "Submissions are the entries collected by your forms. Use these endpoints to create a submission, list submissions across all forms or for a specific form, count submissions, retrieve a single submission's data, edit or delete a submission, download uploaded files, and generate presigned URLs for direct file uploads. Results support pagination, date ranges, and field-level search."
    },
    {
      "name": "Classic",
      "description": "Classic"
    }
  ]
}
```