Barcode lookup with external API

Hi,

I have a barcode in my form and I’m looking for a way to retrieve information from an external API using this barcode and then update the record.
Is that possible?