Securities - LSE - AIM vs Main

is it possible to distinguish AIM from Main securities?
when I collect the securities of LSE, it seems to retrieve "all" securities in both the main and aim markets.