List activity

Read activities from a user or from the people you follow.

GET https://cotlet.dev/api/v1/anilist/activities

read

Returns newest first, with activity ID, type, author, text or the list change, like count and replies. Messages are returned only when you are the sender or recipient. It changes nothing.

Parameters

Parameters: list_activity
NameTypeDescription
username string string Only activity from this user. Leave out for people you follow.
type string string TEXT, ANIME_LIST, MANGA_LIST or MESSAGE.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/anilist/activities \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("anilist", "list_activity")
Node.js
const result = await cotlet.call('anilist', 'list_activity');
CLI
cotlet call anilist list_activity

Example response

JSON

{
  "items": [
    {
      "activity_id": 912345678,
      "type": "TEXT",
      "author": "yourname",
      "text": "Episode 9 of Frieren hit hard.",
      "likes": 3,
      "replies": [
        {
          "author": "friend42",
          "text": "Same, the music!"
        }
      ]
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.