How to get e list of sectors available in IEX cloud

Solution 1:

The URL appears to be incorrect - it should not contain /stock/market/.

Here is a working request example:

batch_api_call_url = f'https://cloud.iexapis.com/stable/ref-data/sectors?token={IEX_CLOUD_API_TOKEN}'
data = requests.get(batch_api_call_url)