The article 'an' is used before singular nouns that start with a vowel sound. 'Apple' starts with an 'a' sound, which is a vowel sound, so 'an' is the correct article.
It's an apple.