Run API from admin action

Hi ,
I am trying to execute and admin action that after selecting records from the list view of a model, executes an external API (each one with the id of the model as parameter). I see examples of update database or redirect to a form…but can you help me to find an example of a external api call from django admin?
Thanks

Don’t let the fact that you’re running this as an admin command confuse you. How would you call this external API from any Python program?
That’s the code that you would execute within your admin step.