Search api wrapper

This should do #5 #2 #3.