# Submission count

Source: https://docs.musicnerd.net/api-reference/activity/ugc-count

Submission count

## GET /api/ugcCount

Full OpenAPI specification: https://docs.musicnerd.net/spec/activity.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://docs.musicnerd.net/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: activity and contributions",
    "version": "1.0.0",
    "description": "The public activity feed and a signed-in user's own contributions: their recent edits, profile edits, submission counts and submissions."
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/api/ugcCount": {
      "get": {
        "summary": "Submission count",
        "operationId": "getUgcCount",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "How many links the signed-in user has submitted, approved or not. Without a valid token, or when the count can't be read, the count is 0 rather than an error.",
        "responses": {
          "200": {
            "description": "The user's submission count.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Count"
                },
                "examples": {
                  "signedIn": {
                    "summary": "A contributor",
                    "value": {
                      "status": "ok",
                      "count": 42
                    }
                  },
                  "signedOut": {
                    "summary": "No token",
                    "value": {
                      "status": "ok",
                      "count": 0
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Count": {
        "type": "object",
        "required": [
          "status",
          "count"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "count": {
            "type": "integer",
            "minimum": 0
          }
        }
      }
    },
    "securitySchemes": {
      "privyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in."
      }
    }
  }
}
```
