Table: mastodon_my_following - Query Mastodon Following using SQL
Mastodon is a decentralized, open-source social network. It provides a user-friendly, ethical, and effective platform for social networking free from commercial influence. The platform allows users to follow each other, creating a network of connections.
Table Usage Guide
The mastodon_my_following
table provides insights into the Mastodon users that the authenticated user is following. As a social media manager, explore user-specific details through this table, including user profiles, follower counts, and associated metadata. Utilize it to uncover information about user relationships, such as those with a large following, the relationships between users, and the verification of user profiles.
Examples
List the accounts I follow
Explore which users you are following on Mastodon, gaining insights into their popularity and activity levels based on the number of followers they have, the number of users they are following, and the number of statuses they have posted.
select acct, username, display_name, followers_count, following_count, statuses_countfrom mastodon_my_following;
select acct, username, display_name, followers_count, following_count, statuses_countfrom mastodon_my_following;
Count my followers by the servers they belong to
Determine the distribution of your followers across various servers on Mastodon. This aids in understanding your follower demographics and their server preferences.
select server, count(*)from mastodon_my_followinggroup by serverorder by count desc;
select server, count(*)from mastodon_my_followinggroup by serverorder by count(*) desc;
Count how many of the accounts I follow are assigned (and not assigned) to lists
This query is useful for analyzing your social media engagement on Mastodon. It allows you to identify the number of accounts you follow that are grouped into lists versus those that aren't, providing insights into your interaction patterns and potential areas for improved engagement.
with list_account as ( select a.id, l.title as list from mastodon_my_list l join mastodon_list_account a on l.id = a.list_id),list_account_follows as ( select list from mastodon_my_following left join list_account using (id))select 'follows listed' as label, count(*)from list_account_followswhere list is not nullunionselect 'follows unlisted' as label, count(*)from list_account_followswhere list is null;
with list_account as ( select a.id, l.title as list from mastodon_my_list l join mastodon_list_account a on l.id = a.list_id),list_account_follows as ( select list from mastodon_my_following left join list_account on mastodon_my_following.id = list_account.id)select 'follows listed' as label, count(*)from list_account_followswhere list is not nullunionselect 'follows unlisted' as label, count(*)from list_account_followswhere list is null;
Schema for mastodon_my_following
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The account ID. |
acct | text | username@server for the account. | |
created_at | timestamp with time zone | Timestamp when the account was created. | |
display_name | text | Display name for the account. | |
followers_count | bigint | Number of followers for the account. | |
following_count | bigint | Number of accounts this account follows. | |
id | text | ID of the account. | |
instance_qualified_account_url | text | Account URL prefixed with my instance. | |
note | text | Description of the account. | |
server | text | Server for the account. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
statuses_count | bigint | Toots from this account. | |
url | text | URL for the account. | |
username | text | Username for the account. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- mastodon
You can pass the configuration to the command with the --config
argument:
steampipe_export_mastodon --config '<your_config>' mastodon_my_following