Skip to content



This command will search through a list of Twitter User objects and Tweet objects for any Mastodon account references.


Find-TwitterMastodonLinks [-TwitterObject] <TwitterObject[]> [-IgnoreDomain <String[]>] [<CommonParameters>]


This command will search through a list of Twitter User objects and Tweet objects for any Mastodon account references.

For Users, matches will be discovered in any part of the Name, Description, or included Urls. For Tweets, matches will be discovered in the Tweet Text or included Urls.

The output of this command can be saved to a CSV that can be used to import discovered Mastodon accounts into your instances following list.


Example 1

PS > Get-TwitterUser | Find-TwitterMastodonLinks
TwitterUserName        : thedavecarroll
TwitterUser            : Dave Carroll
TwitterUrl             :
TwitterElement         : UrlEntity
MastodonUser           : @thedavecarroll
MastodonInstance       :
MastodonAccountAddress :
MastodonUrl            :
IsValidDomain          : True

Retrieve the authenticated user and search for Mastodon account references.

Example 2

PS > Get-TwitterFriends |
    Find-TwitterMastodonLinks -IgnoreDomain @('','','','','') |
    Select-Object @{l='Account address';e={$_.MastodonAccountAddress}},@{l='Show boosts';e={$true}} |
    Export-Csv -NoTypeInformation -Path .\MastodonImport.csv

Retrieves the following list of the authenticated user, searches for Mastodon account references, formats the output to what is required for Mastodon import, and saves the output to a CSV file.



A list of Twitter Users or Tweets.

For Tweets, whatever command you use to get the list of Tweets, using -IncludeExpansions will include the Tweet author User object which will be used to correlate the Tweet to a specific User.

Type: BluebirdPS.TwitterObject[]
Parameter Sets: (All)

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False


Some Urls are similar to Mastodon account references. You can use this parameter to include a list of domains to ignore.

This parameter is often used to ignore domains that use a similarly structured URI as a Mastodon URL. If the following domains are not ignored, you will receive errors when you import them into your Mastodon account.


Additionally, you may want to ignore valid Mastodon instances that are not part of the Fediverse, such as, or those that have been defederated.

Type: System.String[]
Parameter Sets: (All)
Aliases: IgnoreUrl

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False


This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.






Online Version