REST API for dropdown menu

I’m making an application where the dropdown menu list items have to be imported from a firestore database

I tried to use the normal method, but this is what I get:

Any workaorunds for this?