Api url should be more generic