How to scan only certain sector stocks?

Hi say for example i only want to scan oil sector stocks? How do i scan these? Right now the asset information doesnot have any information on the sector or anything.

image

Alpaca API doesn’t provide sector information as part of it yet, but you can find other data sources such as IEX Cloud to map each symbol to sectors.