You can use "Get-TeamsApp" powershell command which returns app information from the Teams tenant app store. https://learn.microsoft.com/en-us/powershell/module/teams/get-teamsapp?view=teams-ps
Below is an example for your reference.
# Connect to Microsoft Teams
Connect-MicrosoftTeams
# Get the list of apps
$apps = Get-TeamsApp
# Export the list to a CSV file
$apps | Select-Object DisplayName, Id | Export-Csv -Path "C:\Users\YourUsername\Documents\TeamsApps.csv" -NoTypeInformation
Alternatively, you can use this Graph API as well - https://learn.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0&tabs=http
Thanks,
Meghana Peddamma
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.