scratch-api-unofficial-docs

Activity Event Object

An activity event object looks like this:

{
    "actor": {
        "admin": /* If the user is an admin or not */
        "pk": /* User's ID */
        "thumbnail_url": /* URL to the user's thumbnail */
        "username": /* User's username */
    }
    "datetime_created": /* Date of the event */
    "extra_data": /* Data object specific to the type of event - see below */
    "message": /* HTML display message */
    "obj_id": /* Message ID */
    "pk": /* ??? */
    "type": /* Numeric type of event - see below */
} ...

Note that actor isn’t a User Object.

Event Types

0 - User follow
{
    "followee_username": /* Username of the user who was followed */
}
1 - Studio follow
{
    "studio_title": /* The title of the studio that was followed */
}
2 - Project love
{
    "project_title": /* Title of the loved project */
}
3 - Project favorite
{
    "project_title": /* Title of the favorited project */
}
9 - Studio curation
{
    "invitor_username": /* Username of the user who invited the new curator */
    "studio_title": /* Title of the studio the new curator was invited to */
}
10 - Project shared
{
    "project_title": /* Title of the shared project */
}
11 - Project remixed
{
    "parent_id": /* ID of the project that got remixed */
    "parent_title": /* Title of the project that got remixed */
    "project_title": /* Title of the remix project */
}
22 - Studio promotion
{
    "invited_username": /* Username of the promoted user */
    "invitor_username": /* Username of the user who promoted the promoted user */
    "studio_title": /* Title of the studio the user was promoted in */
}