add rep_lookup function to query sunlight api.