Alphabet Inc.’s Google is buying software company Apigee Corp. for roughly $625 million, the latest move to bolster its offerings to corporate customers.

Google will pay $17.40 a share for Apigee—a 6.5% premium to Wednesday’s closing price. Apigee shares have more than doubled in value this year.

Apigee specializes in Application Programming...