Yes, Plivo has an API to search and buy numbers. You can visit our PhoneNumber API doc for all the details.

You can also search and purchase phone numbers through the Plivo User Interface. To learn about all the methods, check out our FAQ on How do I search for Phone numbers?

Please note that you need to have enough credits in your account to buy the numbers depending on the monthly rental charges.