DEVELOPERS

Loops API Docs

Full API Reference
RESOURCE

Account

Represents a Loops account. Returned by account endpoints and embedded wherever an author or user is referenced. Serialized by AccountResource.

Fields

FieldTypeDescription
idstringUnique identifier for the account.
namestringDisplay name shown on the profile. Falls back to the username when unset.
avatarstringURL of the account avatar.
usernamestringThe account handle.
is_ownerbooleanWhether the authenticated user owns this account.
localbooleanWhether the account is hosted on this instance.
bionullablestringProfile bio text.
post_countintegerNumber of posts published by the account.
follower_countintegerNumber of accounts following this account.
following_countintegerNumber of accounts this account follows.
urlstringCanonical profile URL.
remote_urlnullablestringProfile URL on the origin instance for remote accounts; null for local accounts.
is_blockingnullablebooleanWhether the authenticated user is blocking this account. null when not applicable, e.g. your own account.
manually_approves_followersbooleanWhether follow requests must be approved manually (private account).
linksarrayProfile links. Each entry is a Link object (see below).
has_playlistsbooleanWhether the account has any playlists.
is_adminbooleanWhether the account is an instance administrator.
created_atstringISO 8601 timestamp of account creation.
likes_countintegerTotal likes received on posts by this account.

Example

Account
{
  "data": {
    "id": "1",
    "name": "dansup",
    "avatar": "https://loopsusercontent.com/avatars/1/y6i8g7330.jpg",
    "username": "dansup",
    "is_owner": true,
    "local": true,
    "bio": "Currently building @pixelfed, @loops, @supapp, @fedidb, and more.",
    "post_count": 96,
    "follower_count": 3610,
    "following_count": 83,
    "url": "https://loops.video/@dansup",
    "remote_url": null,
    "is_blocking": null,
    "manually_approves_followers": false,
    "links": [
      {
        "url": "apps.apple.com/us/app/loops",
        "link": "https://loops.video/link/...",
        "is_verified": false
      },
      {
        "url": "joinloops.org/team",
        "link": "https://loops.video/link/...",
        "is_verified": false
      }
    ],
    "has_playlists": true,
    "is_admin": true,
    "created_at": "2024-06-06T10:20:02+00:00",
    "likes_count": 4361
  }
}

Link object

Each entry in the links array has this shape:

FieldTypeDescription
urlstringThe destination URL as entered by the account owner.
linkstringLoops redirect URL that wraps the destination for click-through.
is_verifiedbooleanWhether the link has been verified as owned by the account.
Some fields are relative to the viewer.is_owner and is_blocking describe the relationship between the authenticated request and this account, so they change depending on who is asking.