Find ID variables for API calls