# Activity feed

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

Activity feed

## GET /api/activity

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

## Authentication

This operation's specification permits a request without authentication.

[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/activity": {
      "get": {
        "summary": "Activity feed",
        "operationId": "getActivity",
        "security": [],
        "description": "The 15 most recent public events, newest first: approved submissions, artists' own profile edits and new artists. Pass `since` to get only events after a timestamp. Unmoderated submissions never appear.",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Only events after this moment. Any string `Date.parse` accepts (ISO 8601 recommended).",
            "schema": {
              "type": "string"
            },
            "example": "2026-10-20T00:00:00.000Z"
          }
        ],
        "responses": {
          "200": {
            "description": "The events, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityFeed"
                },
                "example": {
                  "status": "ok",
                  "events": [
                    {
                      "type": "ugc_approved",
                      "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3",
                      "artistName": "Bio Ritmo",
                      "platform": "bandcamp",
                      "createdAt": "2026-10-20 18:41:07.512+00"
                    },
                    {
                      "type": "self_edit_updated",
                      "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3",
                      "artistName": "Bio Ritmo",
                      "platform": "instagram",
                      "createdAt": "2026-10-20 17:02:55.118+00"
                    },
                    {
                      "type": "artist_added",
                      "artistId": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
                      "artistName": "Celia Cruz",
                      "platform": null,
                      "createdAt": "2026-10-20 15:12:40.771+00"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`since` is not a date.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Invalid since parameter"
                }
              }
            }
          },
          "500": {
            "description": "The feed couldn't be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Failed to fetch activity"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActivityFeed": {
        "type": "object",
        "required": [
          "status",
          "events"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "events": {
            "type": "array",
            "maxItems": 15,
            "description": "Newest first.",
            "items": {
              "$ref": "#/components/schemas/ActivityEvent"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      },
      "ActivityEvent": {
        "type": "object",
        "required": [
          "type",
          "artistId",
          "artistName",
          "platform",
          "createdAt"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ugc_approved",
              "self_edit_added",
              "self_edit_updated",
              "artist_added"
            ],
            "description": "`ugc_approved`: an admin approved a submitted link. `self_edit_added` / `self_edit_updated`: the artist added or changed one of their own links. `artist_added`: a new artist."
          },
          "artistId": {
            "type": "string",
            "format": "uuid"
          },
          "artistName": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": [
              "string",
              "null"
            ],
            "description": "The platform the event concerns, or null for a new artist."
          },
          "createdAt": {
            "type": "string",
            "description": "When it happened, in UTC, as Postgres timestamp text (`2026-10-20 18:41:07.512+00`)."
          }
        }
      }
    }
  }
}
```
