Add code to generate API search url