fetchAnnotations function

Fetch annotations (generic)