Is there a way to use an API script to build dropdown options?