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?