Added searching posts to the API