use api (samples) url not global search_endpoint