Showing data from external API in modal

I want to show a button on an edit page of a resource which when clicked takes the current resource id (user) and queries and external API and shows the data in a modal. How can I achieve this in filament?
Was this page helpful?