I want a drupal form which has a dropdown field called appointment time. I would like this field to be prepopulated from an external api call. What approach should I take?
Custom module/Webform?

Thank you!